Jump to content

installing php


Recommended Posts



JJ


You need configure the apache (httpd.conf) for php.

Open the file httpd.conf and finds these places:

...
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
--> LoadModule php5_module php/sapi/php5apache2.dll <--
...
<IfModule mime_module>
    --> AddType application/x-httpd-php .php <--
    --> AddType application/x-httpd-php-source .phps <--
</IfModule>
...

Link to comment
https://forums.phpfreaks.com/topic/16342-installing-php/#findComment-67914
Share on other sites

They can go anywhere. However this line:
[code]LoadModule php5_module php/sapi/php5apache2.dll[/code]
Should be:
[code]LoadModule php5_module C:/php/php5apache2.dll[/code]
Change C to the letter of your drive.

Just add them to the bottom of the httpd.conf.

Now save the httpd.conf and restart Apache. To restart Apache look at the bottom right of the screen next to the clock. Look for the Apache taskbar icon, whcih has a green triange pointing to the right, which is inside a white circle and a purple feater pointing to top left. If you left click that icon and select Apache2 then restart from the menu that appears. Wait 30 secounds. Now goto http://localhost/ and Apache should be configured to parse PHP files wth the PHP Intepreter.
Link to comment
https://forums.phpfreaks.com/topic/16342-installing-php/#findComment-68020
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.