|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Problem implementing Apache/PHP connection
Hi,
I'm just getting into MySQL and PHP, and I just got around to trying out Ben Rowe's suggestions in his excellent article in the Sept 19 issue of Devnewz on installing Apache/PHP/MySql on my Windows PC desktop as a test and development arena. All went well until I tried to set up the test index.php page. Ben suggests adding the text "LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php" to the end of the Apache httpd.conf file. I did that, but when I go to reboot Apache I get the following error message: "Syntax error... LoadModule takes two arguments, a module name and the name of a shared object file to load it from." OK, I'm in waaay over my head here. Obviously something in the text I added to the httpd.conf file isn't correct or I implemented it oddly. Does this error message suggest anything to anyone more experienced? I'd sure appreciate any suggestions. David |
|
#2
|
|||
|
|||
|
Got it!
OK, I've got it working now. I didn't clue in to the obvious - I needed to completely close down Apache and start it up again to get it to work. So far so good :-)
![]() |
|
#3
|
|||
|
|||
|
yes, when you change anything in the php.ini file or the conf.httpd file you will need to restart apache in order to apply the changes.
Also please dont post multiple threads on the same subject, they just get deleted |
|
#4
|
|||
|
|||
|
Hello all I followed the instillation provided on this website and everything went will till I addedthis line to the httpd.
LoadModule php4_module C:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php I restarted my entire computer like others had to and now help. I keep getting this error Cannot load C:/php/sapi/php4apache.dll into server: <126> the specific module could not be found. What did I do wrong? How can I fix this? I am running Windows XP. Thanks. Attila ![]()
__________________
Thanks, Attila http://www.glorynaspiration.com http://www.abitofthings.com |
|
#5
|
|||
|
|||
|
Attila,
What version of Apache are you running? Also, did you install your PHP to "C:\PHP"? If not, you need to replace the directory in that statement with the location of your PHP installation.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#6
|
|||
|
|||
|
The Apache Version is 1.3.27 It is the one I think I needed. If I need a newer one let me know.
And yes I did install my PHP to C:\PHP Although their is no install you just copy and past it into that folder right? Thanks Attila ![]() |
|
#7
|
|||
|
|||
|
Ok I went and looked at teh Apache website again...Boy confusing no order there what so ever so I downloaded this file.
apache_2.0.43-win32-x86-no_ssl I then uninstalled 1.3.27 rebooted cleared the left over apache folders re-installed apache_2.0.43-win32-x86-no_ssl Server is running....Do the adjsutments for the PHP to this file httpd and all the changes work till I do this line of code. LoadModule php4_module C:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php Then the service will not start. Take that line out service runs great but with no PHP support. Here are a few more questions in the file httpd This line DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs" I change to this c:/public_html/ That above line apears twice I have tried all different combinations and all works good as long as the above 3 lines are out. (LoadModule lines) This line DirectoryIndex index.html index.php default.html is actually like this. DirectoryIndex index.html index.php default.html.var do I need to do the .var at the end. I do know that the tutorial was written for Apache version 1.3. Can anyone help...Once again I am using windows XP. Thanks, Attila ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Problem implementing Apache/PHP connection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|