Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

HELP: Can't get Apache and/or PHP to work

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  problem accessing uploaded images  
Author Message
whiter

External


Since: Aug 30, 2004
Posts: 2



(Msg. 1) Posted: Mon Aug 30, 2004 7:59 pm
Post subject: HELP: Can't get Apache and/or PHP to work
Archived from groups: alt>apache>configuration (more info?)

After a break of a few months, I'm trying to revive my Apache/PHP/MySQL configuration on my PC so I
can start a tutorial programme.

Unfortunately, since I last used it, the evironment no longer seems to work. These programs were
*never* deleted or meddled with - it's just I haven't started the Apache server for a few months.

I've been testing a basic PHP script to make sure all is OK, but can't get it to work properly.

The script is
"<HTML>
<HEAD>
<TITLE>Today's Date</TITLE>
</HEAD>
<BODY>
<P>Today's Date (according to this Web server) is
<?php
echo( date("l, F dS Y.") );
?>
</BODY>
</HTML>"

The result I get is just
"Today's Date (according to this Web server) is"
ie. the date itself isn't displayed!

I've Started Apache in 'Console Mode' and also started the 'Apache Service Monitor' (which fails to
find any services).

I've checked that the http.conf file still has specified:
"LoadModule php4_module C:\PHP\sapi\php4apache2.dll
AddType application/x-httpd-php .php"

I'm running Apache on my own PC (listening on address 127.0.0.1:80). This is unchanged from before.

All seems ok - except that PHP doesn't seem to run properly. (Date not displayed in the test
script).

I seem to be getting Apache error log msgs, but no Access log msgs. The error log has like:-
"[Mon Aug 30 16:22:51 2004] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon Aug 30 16:22:51 2004] [notice] Child 3436: Exit event signaled. Child process is ending.
[Mon Aug 30 16:22:52 2004] [notice] Child 3436: Released the start mutex
[Mon Aug 30 16:22:53 2004] [notice] Child 3436: Waiting for 250 worker threads to exit.
[Mon Aug 30 16:22:53 2004] [notice] Child 3436: All worker threads have exited.
[Mon Aug 30 16:22:53 2004] [notice] Child 3436: Child process is exiting
[Mon Aug 30 16:22:53 2004] [notice] Parent: Child process exited successfully.
[Mon Aug 30 16:37:44 2004] [notice] Parent: Created child process 2092
[Mon Aug 30 16:37:44 2004] [notice] Child 2092: Child process is running
[Mon Aug 30 16:37:44 2004] [notice] Child 2092: Acquired the start mutex.
[Mon Aug 30 16:37:44 2004] [notice] Child 2092: Starting 250 worker threads."

The server log has nothing added since a few months ago.

QUESTION also --- how can I tell that the Apache server really is serving ????? (ie. that I'm not
just seeing normal IE disply of web pages on the PC without any local web server running???)

Is Apache more likely the problem here than the PHP config??

Any ideas???

 >> Stay informed about: HELP: Can't get Apache and/or PHP to work 
Back to top
Login to vote
whiter

External


Since: Aug 30, 2004
Posts: 2



(Msg. 2) Posted: Mon Aug 30, 2004 8:42 pm
Post subject: Re: noHELP: previous reply was no help! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Richard White" <whiter.DeleteThis@gmx.co.uk> wrote in message news:2ph1a0Fkir5sU1@uni-berlin.de...
Just in case someone thought that the previous reply to the OP actually answered it - it didn't.

How do I tell if my Apache server is actually *working*. (Not just running, but working and serving
the pages!).??

This may be the problem, as I can't see anything wrong with the PHP config. But can't tell whether
Apache is having any effect or not?

 >> Stay informed about: HELP: Can't get Apache and/or PHP to work 
Back to top
Login to vote
dgmacd2002nosp

External


Since: Sep 16, 2004
Posts: 6



(Msg. 3) Posted: Fri Sep 17, 2004 3:08 am
Post subject: Re: noHELP: previous reply was no help! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Richard

You say you started the Apache Service monitor and it says no services are
running? sounds to me like the problem is apache isn't actually running. Are
you able to see any files when you try to load localhost?

Daryl


"Richard White" <whiter RemoveThis @gmx.co.uk> wrote in message
news:2ph3qdFkqp22U1@uni-berlin.de...
 >
 > "Richard White" <whiter RemoveThis @gmx.co.uk> wrote in message
news:2ph1a0Fkir5sU1@uni-berlin.de...
 > Just in case someone thought that the previous reply to the OP actually
answered it - it didn't.
 >
 > How do I tell if my Apache server is actually *working*. (Not just
running, but working and serving
 > the pages!).??
 >
 > This may be the problem, as I can't see anything wrong with the PHP
config. But can't tell whether
 > Apache is having any effect or not?
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HELP: Can't get Apache and/or PHP to work 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Trying to get php and apache to work together - Using php 4.3.x and apache (both 1.3.x and 2). I am trying to get them built on Linux. Have followed the very good site of dan.drydog.com/apache2php.html and have been able to build both apaches with no errors. Can start apache and have no errors and....

apache 2.0 - cant get vhosts to work - I just installed mandrake 9.2, i was running 9.0 and using apache 1.3.27 I backed up all the files and reformatted the drive to mdk 9.2 Now I'm configuring the apache 2.0.47 stuff it installed. I used the original httpd.conf vhost.conf and..

website does not work under apache ssl - Dear all, I wrote a php-site to set up a vacation note under linux using procmail mechanism. This website is written in php4 and uses session-cookies in the very easiest manner. I programmed it under Debian Linux 3.0 sid (unstable) with apache 1.3.xx....

How to configure Apache to work with ISS - I've installed Apache 2 on Windows 2000 Professional and it's called alpha (my computer name) and I can also access it via http://localhost Now I want to install IIS 5 on the same machine, so it can work together with Apache, so that I can access Apache...

Does apache/mod_ssl need to be configured to work with PHP? - I am running Apache 2.x and now I wanted to set up SSL by setting up the paths (eg. ServerName, DocumentRoot) in ssl.conf. The non-secure PHP page is parsed correctly, but the secure version (https) doesn't show up correctly. Am I missing some..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]