Jump to content

Archived

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

Jay2391

PHP 5.1.6 and Apache 2.2.3

Recommended Posts

I try to explain this in another session but no one reply so I will try it here...

I am trying to set up a localhost for testing on my machine, I use the following installs...

mysql-5.0.24a-win32.zip

apache_2.2.3-win32-x86-no_ssl.msi

php-5.1.6-Win32.zip

MySQL seems to be fine
apache starts and seems to be fine

but PHP is not working whe I am going to test <?php   phpinfo(); ?>


I try configuring the httpd file like a module that made Apache crash.. so I tried CGI but that let apache work but PHP is not working...


This is the module configs...

   For PHP 5:
# Add to the end of the LoadModule section
LoadModule php5_module "C:/php/php5apache.dll"

# Add to the end of the AddModule section
AddModule mod_php5.c

# Add this line inside the <IfModule mod_mime.c> conditional brace
AddType application/x-httpd-php .php

# For syntax highlighted .phps files, also add
AddType application/x-httpd-php-source .phps
     _________________________________________________________________

CGI Configs..

# For PHP 5
Action application/x-httpd-php "/php/php-cgi.exe"

# specify the directory where php.ini is
SetEnv PHPRC C:/php


Note I also move the "libmysql.dll" to the windows system files folder

and I copy "PHP.ini recomended" to the Windows folder as "PHP.ini"


can some one help, also where to put this lines, The instructions are not clear on that and do we leave the quotes on the lines for example:

LoadModule php5_module "C:/php/php5apache.dll"

Should i modify the line like this ???

LoadModule php5_module C:/php/php5apache.dll



Thanks
Jay
:P



Share this post


Link to post
Share on other sites
You might want to just search for and install something like XAMPP. Its an all in one install.

Share this post


Link to post
Share on other sites
Thread closed. YOu already asked this in the correct forum which is the PHP Installation forum.

Please do not double post threads around the forum thank you.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

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.