[NEWBIE] PHP/Apache integration problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
walcurayfort
Forum Newbie
Posts: 2
Joined: Wed Sep 08, 2010 2:09 am

[NEWBIE] PHP/Apache integration problems

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: [NEWBIE] PHP/Apache integration problems

Post 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.
walcurayfort
Forum Newbie
Posts: 2
Joined: Wed Sep 08, 2010 2:09 am

Re: [NEWBIE] PHP/Apache integration problems

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: [NEWBIE] PHP/Apache integration problems

Post 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?
Post Reply