Page 1 of 1

[NEWBIE] PHP/Apache integration problems

Posted: Wed Sep 08, 2010 2:32 am
by walcurayfort
Hello, PHP developers! I tried to start learning a bit of PHP/Apache/SQL. Unfortunately, I seem to have stumbled across my first obstacle - integrating PHP into my PC's Apache server. Upon installing Apache and SQL, in that order, my httpd.conf file already had the following lines placed, presumably for Apache to use PHP:

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

But when I try restarting my Apache Server, I get this error message:

Image

Followed by this, after I closed the 'encountered a problem and needs to close' window.
Image

I'm currently using Windows XP Professional(Service Pack 3), Apache 2.2.16 win32 OpenSSL server and PHP 5.3.3 Win32 VC6. Might some kind developers give further advice as to what I might have done wrong? I'm stumped as only a true newbie can be.

Re: [NEWBIE] PHP/Apache integration problems

Posted: Wed Sep 08, 2010 3:15 am
by requinix
Probably would get more help with an Apache forum...

Have you checked Apache's error log for any information? It's %wherever you installed apache%\logs\error.log by default.

Re: [NEWBIE] PHP/Apache integration problems

Posted: Wed Sep 08, 2010 3:57 am
by walcurayfort
I'll try asking them, then. I came here first because when I commented out the above three lines, Apache was able to restart successfully.

Re: [NEWBIE] PHP/Apache integration problems

Posted: Wed Sep 08, 2010 7:57 am
by requinix
walcurayfort wrote:I'll try asking them, then. I came here first because when I commented out the above three lines, Apache was able to restart successfully.
Right. But if Apache is crashing then maybe troubleshooting Apache... Most of the times I've seen PHP problems Apache is able to recover somewhat gracefully. Not trying to drive you away.

Anything in the error logs? In your php.ini, if you set display_startup_errors=on do you get any popup messages when restarting? Have you enabled any PHP extensions?