Jump to content


Photo

PHP 5.1.6 and Apache 2.2.3


  • Please log in to reply
6 replies to this topic

#1 Jay2391

Jay2391
  • Members
  • PipPipPip
  • Advanced Member
  • 167 posts
  • LocationMichigan

Posted 25 September 2006 - 08:30 PM

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 :-[





#2 Jay2391

Jay2391
  • Members
  • PipPipPip
  • Advanced Member
  • 167 posts
  • LocationMichigan

Posted 25 September 2006 - 08:45 PM

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

#3 Jay2391

Jay2391
  • Members
  • PipPipPip
  • Advanced Member
  • 167 posts
  • LocationMichigan

Posted 25 September 2006 - 08:54 PM

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

#4 wildteen88

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

Posted 26 September 2006 - 10:00 AM

PHPIniDir needs to be on its own line:
LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/WINDOWS"


#5 phporcaffeine

phporcaffeine
  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 26 September 2006 - 07:58 PM

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

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com

#6 wildteen88

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

Posted 27 September 2006 - 08:21 AM

Yeah downgrad Apache to Apache2.0.x

I forgot to mention that.

#7 Jay2391

Jay2391
  • Members
  • PipPipPip
  • Advanced Member
  • 167 posts
  • LocationMichigan

Posted 27 September 2006 - 07:52 PM

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 ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users