php installtion

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lonewolf
Forum Commoner
Posts: 33
Joined: Tue May 06, 2003 9:36 pm

php installtion

Post by Lonewolf »

hi im installing PHP onto my apache web server and i have to do it manually, the version of apache is 1.3. it says this you need to insert these lines to your Apache configuration file to set up the CGI binary:


ScriptAlias /php/ "c:/php/"

AddType application/x-httpd-php .php .phtml

Action application/x-httpd-php "/php/php.exe"

which file is my apache config file
Lonewolf
Forum Commoner
Posts: 33
Joined: Tue May 06, 2003 9:36 pm

Post by Lonewolf »

and then where do my php files go
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

a win32-system?
When you install apache you chose an installation path (c:\program files\apache group\apache is default IIRC). There you have a directory conf containing httpd.conf.
Where to install php is up to you. The install.txt assumes you put it in c:\php, if you change this you have to substitute the new path.

btw: why cgi and not the apache-module. Just curious ;)
Gleeb
Forum Commoner
Posts: 87
Joined: Tue May 13, 2003 7:01 am
Location: UK
Contact:

Post by Gleeb »

A much friendlier way to get at APACHE without touching any command prompt or explorer is to use the Start Menu items created at install time. It has a link to open the httpd.conf, test it, and restart it, as well as start and stop it.

Also, the man makes a good point. Even the README state that they consider your chosen PHP installation method to be 'suicidal'.
Post Reply