Jump to content


Photo

installing php


  • Please log in to reply
6 replies to this topic

#1 PHP Man

PHP Man
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 02 August 2006 - 04:21 PM

i know that after installing php you need to modify the "httpd" file for the apache server but i was wondering where to put the following 3 things in it:

LoadModule php5_module php/sapi/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

???

#2 PHPSpirit

PHPSpirit
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 02 August 2006 - 04:39 PM



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>
...



#3 PHP Man

PHP Man
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 02 August 2006 - 04:42 PM

thnx very much

#4 PHP Man

PHP Man
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 02 August 2006 - 04:46 PM

i just added the lines to the places where you told me but when i go to start the apache server and says that the operation has failed and won't start

#5 PHP Man

PHP Man
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 02 August 2006 - 04:56 PM

nvm i forgot to add the indents in the lines so now it works. but after i start the server it won't show the php things as the instalation website says "http://www.php-mysql...-mysql.php#php"

nothing apears only white screen

#6 PHPSpirit

PHPSpirit
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 02 August 2006 - 05:12 PM



Read the file "install.txt" in the directory of PHP, all information is there.




#7 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 02 August 2006 - 06:38 PM

They can go anywhere. However this line:
LoadModule php5_module php/sapi/php5apache2.dll
Should be:
LoadModule php5_module C:/php/php5apache2.dll
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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users