baraxil Posted April 2, 2007 Share Posted April 2, 2007 i put this in my httpd.conf file.. ScriptAlias /php/" C:/Program Files/php" AddType application/x-httpd-php .php Action application/x-httpd-php "C:/Program Files/PHP/php.exe" and i get an error that says.. Link to comment https://forums.phpfreaks.com/topic/45325-solved-installing-php-on-apache/ Share on other sites More sharing options...
wildteen88 Posted April 2, 2007 Share Posted April 2, 2007 Load it as a Module instead of cgi (script alias) Apache module lines: LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll" AddType application/x-httpd-php .php Note: if you are using apache2.2.x then replace php5apache2.dll with php5apache2_2.dll, or if you are using PHP4 then replace php5 with php4 Save the httpd.conf and restart Apache. Link to comment https://forums.phpfreaks.com/topic/45325-solved-installing-php-on-apache/#findComment-220079 Share on other sites More sharing options...
baraxil Posted April 2, 2007 Author Share Posted April 2, 2007 wow thanks Link to comment https://forums.phpfreaks.com/topic/45325-solved-installing-php-on-apache/#findComment-220082 Share on other sites More sharing options...
wildteen88 Posted April 2, 2007 Share Posted April 2, 2007 As a side note I would not recommend installing anything server related in C:\program files. I prefer to install these in C:\server instead. This keeps everything centralised and keeps paths short and space free. Having spaces involved in paths may cause problems. Link to comment https://forums.phpfreaks.com/topic/45325-solved-installing-php-on-apache/#findComment-220088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.