Page 1 of 1
apache-php taking me forever...
Posted: Fri Apr 15, 2005 5:26 am
by pleigh
i installed apache, mysaql, php....installation were successful...except that i can't see the output of my php codes....i already configured the httpd.conf of apache, placing these at the bottom of the text file
Code: Select all
ScriptAlias /php/ "e;c:/server/php/"e;
AddType application/x-httpd-php .php
Action application/x-httpd-php "e;/server/php/php-cgi.exe"e;
i don't know what the problem is, i installed this as a cgi binary because when i install this as a module, then i restart apache, it won't connect...
help...
thanks
Posted: Fri Apr 15, 2005 7:09 am
by feyd
pleigh, seriously... use the correct board for your questions..
Moved to
Web servers.

Posted: Fri Apr 15, 2005 11:00 am
by Chris Corbyn
Are you wanting to use CGI? I'd just use SAPI...
Change to....
Code: Select all
Action application/x-httpd-php "e;/server/php/php.exe"e;
You may also need to load the php4apache2.dll (or whatever its called) module if that isn't working for you...

Posted: Fri Apr 15, 2005 12:44 pm
by timvw
these are the lines that are related to php (php5) in my httpd.conf (apache2)
Code: Select all
(174) LoadModule php5_module "e;C:/Program Files/php-5.0.4-Win32/php5apache2.dll"e;
(175) PHPIniDir "e;C:/Program Files/php-5.0.4-Win32/"e;
(328) DirectoryIndex index.php index.html index.html.var
(794) AddType application/x-httpd-php .php
Posted: Fri Apr 15, 2005 7:58 pm
by thegreatone2176
Not sure of your OS but when you install apache on linux if you just give it php options at ./configure you dont have to even touch the httpd.conf and it works alot easier
Posted: Fri Apr 15, 2005 9:38 pm
by infolock
along with what tim said, could point me to say "you didn't load the php module using LoadModule"
at least it wasn't shown in your first statement pleigh.
Posted: Sat Apr 16, 2005 9:52 am
by Chris Corbyn
thegreatone2176 wrote:Not sure of your OS but when you install apache on linux if you just give it php options at ./configure you dont have to even touch the httpd.conf and it works alot easier
If you read the original statemtn by pleigh you will see that he is using windows.
Hence the path C:/.... and the executable php.exe
