Link to home
Start Free TrialLog in
Avatar of micromarch
micromarch

asked on

how do i configure php so it can run alongside with apache and posgresql?

same as question.
Avatar of jalilthe1
jalilthe1
Flag of Afghanistan image

Avatar of micromarch
micromarch

ASKER

i am using red hat linux. not windows.
Try These links for Linux PHP installation and configuration

Apache 2 and PHP 5 (mod_php) on Linux
http://dan.drydog.com/apache2php.html
----------------------------------------------------------------------------------
PHP installation and PHP Configuration on redhad website
http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/prog/c7773.html
-----------------------------------------------------------------------------------
Configure PHP on Linux Red Hat
http://webdesign.ittoolbox.com/groups/technical-functional/php-l/configure-php-on-linux-red-hat-federo-1219073
http://www.web-tech-india.com/articles/php/compiling_php_apache/


ASKER CERTIFIED SOLUTION
Avatar of jalilthe1
jalilthe1
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
what do they mean by --with-pgsql=share
what does share signify?
important is the apache configuration file, it must know that it must handle .php as php files.
It would be helpful if you name the php version and the apache version, and your linux installation, since most linux can do it automatically.
Probably xammp can resolve your problems.

http://www.apachefriends.org/en/xampp-windows.html
ok. i compiled php with this option.
./configure --with-apxs=/usr/local/apache/bin/apxs --with-pgsql=/usr/local/pgsql/bin
it compiles fine but when i give the make command i get error 1
ext/pgsql/pgsql.lo file not recognized: file truncated
make ** [libphp4.la] error 1
hello micromarch,

I also had same problem with configuring php on apache with sql,
Its tedious to do,
then i found this sweet application, that do everything for u without any configuration needed,

Try this, download is about 17 Mb, and is a sure solution to your problems
http://www.wampserver.com/en/download.php

Just start all the services by rightclick on tray bar icon for wamp

Good Luck!!
I am sure you will get it right
Amitoj