(bringing the discussion here for php.general)
I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL
5.0.51b. http://localhost/ is E:\wamp\www\
I have put the first php script to hello.php file:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Putting the above file to E:\wamp\www\php _ex but giving
http://localhost/php_ex/hello.php shows a blank screen
I have forgotten some previous situation where it had appeared as
Hello World
'; ?>
on the browser.
E:\wamp\bin\apa che\apache2.2.8 \conf\httpd.con f file has the lines:
LoadModule php5_module "e:/wamp/bin/php/php5.2.6/php5apache2_2.d ll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
My Computer
manage
Services and Applications
Services
shows that Apache is running
wampapache, Apache/2.2.8 (Win32) PHP/5.2.6, started, manual, local
system, and
wampmysqld, started, manual, local system, and
I restarted all services from the wamp systray icon. That gave the
following entries in apache_error.lo g
[Wed Aug 06 19:06:57 2008] [notice] Parent: Received shutdown signal
--
Shutting down the server.
[Wed Aug 06 19:06:57 2008] [notice] Child 3072: Exit event signaled.
Child process is ending.
[Wed Aug 06 19:06:58 2008] [notice] Child 3072: Released the start
mutex
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: All worker threads
have
exited.
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: Child process is
exiting
[Wed Aug 06 19:06:59 2008] [notice] Parent: Child process exited
successfully.
[Wed Aug 06 19:06:59 2008] [notice] Apache/2.2.8 (Win32) PHP/5.2.6
configured -- resuming normal operations
[Wed Aug 06 19:06:59 2008] [notice] Server built: Jan 18 2008 00:37:19
[Wed Aug 06 19:06:59 2008] [notice] Parent: Created child process 1872
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Child process is
running
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Acquired the start
mutex.
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting 64 worker
threads.
so, that means apache is running.
I gave, check port 80. The dos window that opened said "your port 80
is
not used" and the following entry got added in error_log:
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting thread to
listen on port 80.
The file E:\wamp\bin\apa che\apache2.2.8 \conf\httpd.con f has
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory,
but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "e:/wamp/www/"
What is stopping it?
Thanks.
--
V
I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL
5.0.51b. http://localhost/ is E:\wamp\www\
I have put the first php script to hello.php file:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Putting the above file to E:\wamp\www\php _ex but giving
http://localhost/php_ex/hello.php shows a blank screen
I have forgotten some previous situation where it had appeared as
Hello World
'; ?>
on the browser.
E:\wamp\bin\apa che\apache2.2.8 \conf\httpd.con f file has the lines:
LoadModule php5_module "e:/wamp/bin/php/php5.2.6/php5apache2_2.d ll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
My Computer
manage
Services and Applications
Services
shows that Apache is running
wampapache, Apache/2.2.8 (Win32) PHP/5.2.6, started, manual, local
system, and
wampmysqld, started, manual, local system, and
I restarted all services from the wamp systray icon. That gave the
following entries in apache_error.lo g
[Wed Aug 06 19:06:57 2008] [notice] Parent: Received shutdown signal
--
Shutting down the server.
[Wed Aug 06 19:06:57 2008] [notice] Child 3072: Exit event signaled.
Child process is ending.
[Wed Aug 06 19:06:58 2008] [notice] Child 3072: Released the start
mutex
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: All worker threads
have
exited.
[Wed Aug 06 19:06:59 2008] [notice] Child 3072: Child process is
exiting
[Wed Aug 06 19:06:59 2008] [notice] Parent: Child process exited
successfully.
[Wed Aug 06 19:06:59 2008] [notice] Apache/2.2.8 (Win32) PHP/5.2.6
configured -- resuming normal operations
[Wed Aug 06 19:06:59 2008] [notice] Server built: Jan 18 2008 00:37:19
[Wed Aug 06 19:06:59 2008] [notice] Parent: Created child process 1872
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Child process is
running
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Acquired the start
mutex.
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting 64 worker
threads.
so, that means apache is running.
I gave, check port 80. The dos window that opened said "your port 80
is
not used" and the following entry got added in error_log:
[Wed Aug 06 19:07:00 2008] [notice] Child 1872: Starting thread to
listen on port 80.
The file E:\wamp\bin\apa che\apache2.2.8 \conf\httpd.con f has
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory,
but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "e:/wamp/www/"
What is stopping it?
Thanks.
--
V
Comment