Jump to content

[SOLVED] loadmodule will not load to server


Recommended Posts

Hey i need help getting php 5 to load into apache 2 i have php, apache, and mysql installed to c:/server folder in there own directories but when i try to configure php load module apache does not find it.  i have to look for this and have tried numerous different install methods can anyone help with an easy to follow steps.

Link to comment
Share on other sites

ok sorry frustrated and all, but anyway.  I have php 5.2 apache 2.2.4 and mysql 5.0. php is in the c:\ and apache and mysql are in c:\server in there own folder each. now the install i have tried putting the php.ini in the windows folder and in the apache root folder and the and i moved php5ts.dll to the system folder, then telling apache with the load module php5apache2.dll but that did not register. then i tried a different way which i wound up having to reinstall everything and start over and there was a few others that i walked through but they all gave the same error about the php5apache.dll which ever on i used

Link to comment
Share on other sites

You should use php5apache2_2.dll for using PHP with Apache2.2.x,

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

 

php5apache2.dll is for Apache2.0.x

php5apache.dll is for Apache1.3.x

 

Also do not move any files outside of the php installation folder. When you move files outside of the folder it can cause problems with configuration and  later on when you go to upgrade PHP.

 

You are better of adding C:/php to the Windows PATH (read this PHP FAQ). That way PHP can access itself and you do not need to move files around the file system.

 

The following few lines is what is needed to setup PHP with Apache:

LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php

 

Also note that whenever you make any changes to the http.conf that you must restart Apache in order for the changes to come into affect. This also applies to the php.ini too.

Link to comment
Share on other sites

ok i found i was just not using the right start tag lame i know but funny.

I guess you was using short tags (<? ?>). Short tags is disabled by default within the php.ini. I do recommend you to always use the full tags (<?php ?>). When you use the full tags it will allow for your code to be more compatible through different PHP setups.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.