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 am trying to create a local host with apache and php I also installed MySql

Instalation folders are :

c:\Apache
c:\PHP
c:\MySQL

I added or activated this lines to the php.ini and put it on my windows directory:

doc_root = "C:\Apache\htdocs"

extension_dir = "C:\php\ext"

extension = "php_mysql.dll"

Untill this point everything is good apache works and is all peachy...

*****now i added this lines to my apache htppd.cnfg file....

LoadModule php_module php/php5apache.dll

AddModule mod_php5.c

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

*****and now pache won't start and php is still not working and am I missing something I try the documentation from apache but it dosen't report any of this mistakes.

All I want is a localhost server with php to test my script before put it on the actual server


can someone help :-[



Share this post


Link to post
Share on other sites
I checked around and try using this  but still not working

LoadModule php5_module "C:/php/php5apache2.dll" PHPIniDir "C:/WINDOWS"

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

AddType application/x-httpd-phps .phps

Just for your FYI

Share this post


Link to post
Share on other sites
If I comment that out Apache works, PHP still not working do but I figure is more information

:P

#LoadModule php5_module "C:/php/php5apache2.dll" PHPIniDir "C:/WINDOWS"

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

AddType application/x-httpd-phps .phps

Share this post


Link to post
Share on other sites
PHPIniDir needs to be on its own line:
[code]LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/WINDOWS"[/code]

Share this post


Link to post
Share on other sites
The Apache API was changed in Apache 2.2+ and the php5apache handler will not work.  There are custom fixes however PHP will introduce the php5apache2 handler in the PHP 5.2 branch so I would wait until then.

Share this post


Link to post
Share on other sites
XAMPP 

I found this tool call XAMPP that will do everything .... very nice and simple google it and you will save your self a lot of time....

I wonder why SQL, PHP, Apache haven't sponsor this tool to their audience....???

HUMMM  ::)

Anyway best soluction I have found so far.... ;D ;D ;D :D ;D :D ;D ;)

Share this post


Link to post
Share on other sites

×

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.