|
-
Jun 11th, 2010, 04:52 AM
#1
Thread Starter
Hyperactive Member
PHP 5 and Apache 2.2
staring in the face of going completely bald and broke i once again come in need of help.
i can for the fricken life of me get PHP 5 and Apache to communicate. i can install Apache 2.2 and it runs fine, but when i go to my browser and put in the localhost it returns an error. i have added the required LoadModule code to get Apache and PHP to talk, but still the browser returns an error. i have tried just about everything i can find from googling and am going crazy. over 2 weeks i have spent trying to get this happening!!
OS-Vista
PHP-5
Apache 2.2
Followed complete word for word instructions from PHP and MySQL Web Development - Devolpers Library Manual and still no luck.
the error log from Apache looks like this (with the PHP Load Module section commented out at the moment, it starts but im not sure it is correct)
[Fri Jun 11 19:50:04 2010] [notice] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Fri Jun 11 19:50:04 2010] [notice] Server built: Jun 13 2008 04:04:59
[Fri Jun 11 19:50:04 2010] [notice] Parent: Created child process 4988
[Fri Jun 11 19:50:04 2010] [notice] Child 4988: Child process is running
[Fri Jun 11 19:50:04 2010] [notice] Child 4988: Acquired the start mutex.
[Fri Jun 11 19:50:04 2010] [notice] Child 4988: Starting 64 worker threads.
[Fri Jun 11 19:50:04 2010] [notice] Child 4988: Starting thread to listen on port 80.
[Fri Jun 11 19:50:08 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Jun 11 19:50:08 2010] [notice] Child 4988: Exit event signaled. Child process is ending.
[Fri Jun 11 19:50:09 2010] [notice] Child 4988: Released the start mutex
[Fri Jun 11 19:50:10 2010] [notice] Child 4988: All worker threads have exited.
[Fri Jun 11 19:50:10 2010] [notice] Child 4988: Child process is exiting
[Fri Jun 11 19:50:10 2010] [notice] Parent: Child process exited successfully.
then when i add the PHP load module part
[Fri Jun 11 19:36:03 2010] [notice] Apache/2.2.9 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Fri Jun 11 19:36:03 2010] [notice] Server built: Jun 13 2008 04:04:59
[Fri Jun 11 19:36:03 2010] [notice] Parent: Created child process 5080
[Fri Jun 11 19:36:03 2010] [notice] Child 5080: Child process is running
[Fri Jun 11 19:36:03 2010] [notice] Child 5080: Acquired the start mutex.
[Fri Jun 11 19:36:03 2010] [notice] Child 5080: Starting 64 worker threads.
[Fri Jun 11 19:36:03 2010] [notice] Child 5080: Starting thread to listen on port 80.
[Fri Jun 11 19:36:06 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Jun 11 19:36:06 2010] [notice] Child 5080: Exit event signaled. Child process is ending.
[Fri Jun 11 19:36:07 2010] [notice] Child 5080: Released the start mutex
[Fri Jun 11 19:36:08 2010] [notice] Child 5080: All worker threads have exited.
[Fri Jun 11 19:36:08 2010] [notice] Child 5080: Child process is exiting
[Fri Jun 11 19:36:08 2010] [notice] Parent: Child process exited successfully.
-
Jun 11th, 2010, 04:57 AM
#2
Thread Starter
Hyperactive Member
Re: PHP 5 and Apache 2.2
ok sorry, localhost works
opening a .php page does not, it just displays the code on the screen in the browser as if i was looking at it in the text file.
crap. i must add this has been the most unsettling experience for a programmer. What ever happened to quality and integrity in software these days??
still i am told that this is a language i need to master, which im looking forward to, if i can get the bloody thing going!
-
Jun 11th, 2010, 08:05 AM
#3
Re: PHP 5 and Apache 2.2
show us your loadmodule part (for PHP) of httpd.conf.
-
Jun 14th, 2010, 07:40 PM
#4
Thread Starter
Hyperactive Member
Re: PHP 5 and Apache 2.2
LoadModule php5_module C:/PHP/php5apache2_2.dll
PHPIniDir "c:/php/"
AddType application/x-httpd-php .php
AcceptPathInfo on
i managed to get it running to the point that i can view the PHP details screen now from the local host in the web browser. however i have created a simple 'test' php pahe to see if i can load that, but it simply sends my browser in a crazy fit of opening window after window until i cancel out of it.
-
Jun 14th, 2010, 08:52 PM
#5
Re: PHP 5 and Apache 2.2
err. opening this test script makes your browser open a bunch of new browser windows..? can you post the entire httpd.conf file?
-
Jun 14th, 2010, 08:57 PM
#6
Re: PHP 5 and Apache 2.2
 Originally Posted by aztrix
i must add this has been the most unsettling experience for a programmer. What ever happened to quality and integrity in software these days??
Nothing happened to it. Software is software. As a programmer you get used to things like this.
Your log is all correct until the "Received shutdown signal" message. Did you trigger this by stopping Apache, or did that happen by itself?
Did you edit anything in php.ini? Did you enable any extensions?
however i have created a simple 'test' php pahe to see if i can load that, but it simply sends my browser in a crazy fit of opening window after window until i cancel out of it.
This indicates a more general problem with your system, not with Apache or PHP.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|