cannot install wordpress, appache2 shows me errors - php

I'm using OpenSuse as OS and I want to setup wordpress,
When i go to the URL: localhost/wp-admin/install.php to install it, it shows me a blank web page.
a tail -f /var/log/apache2/error_log shows me the following:
[Thu Mar 09 09:42:19.791559 2017] [ssl:warn] [pid 1453] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Mar 09 09:42:19.905721 2017] [mpm_prefork:notice] [pid 1453] AH00163: Apache/2.4.10 (Linux/SUSE) OpenSSL/1.0.1i-fips PHP/5.6.30 configured -- resuming normal operations
[Thu Mar 09 09:42:19.905770 2017] [core:notice] [pid 1453] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Thu Mar 09 19:52:23.863004 2017] [ssl:warn] [pid 1318] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1k 8 Jan 2015, version currently loaded is OpenSSL 1.0.1i-fips 6 Aug 2014) - may result in undefined or erroneous behavior AH00557: httpd2-prefork: apr_sockaddr_info_get() failed for linux-kny7 AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Thu Mar 09 19:52:33.915213 2017] [ssl:warn] [pid 1318] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1k 8 Jan 2015, version currently loaded is OpenSSL 1.0.1i-fips 6 Aug 2014) - may result in undefined or erroneous behavior
[Thu Mar 09 19:52:33.915299 2017] [ssl:warn] [pid 1318] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Mar 09 19:52:35.175637 2017] [mpm_prefork:notice] [pid 1318] AH00163: Apache/2.4.10 (Linux/SUSE) OpenSSL/1.0.1i-fips PHP/5.6.30 configured -- resuming normal operations [Thu Mar 09 19:52:35.175813 2017] [core:notice] [pid 1318] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D
I need help please.

Related

Cannot get Fedora 35 to log errors

I recently got myself a Fedora VM to do coding with and I cannot get Apache to log errors
My httpd.conf is still pretty default and so is my PHP.
sudo tail -f /var/log/httpd/error_log output:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ef21:ea50:d362:afe9%ens33. Set the 'ServerName' directive globally to suppress this message
[Tue Aug 30 18:06:08.311018 2022] [lbmethod_heartbeat:notice] [pid 5172:tid 5172] AH02282: No slotmem from mod_heartmonitor
[Tue Aug 30 18:06:08.316093 2022] [mpm_event:notice] [pid 5172:tid 5172] AH00489: Apache/2.4.54 (Fedora Linux) configured -- resuming normal operations
[Tue Aug 30 18:06:08.316107 2022] [core:notice] [pid 5172:tid 5172] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Aug 30 18:14:21.328254 2022] [mpm_event:notice] [pid 5172:tid 5172] AH00492: caught SIGWINCH, shutting down gracefully
[Tue Aug 30 18:14:22.415182 2022] [suexec:notice] [pid 5669:tid 5669] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ef21:ea50:d362:afe9%ens33. Set the 'ServerName' directive globally to suppress this message
[Tue Aug 30 18:14:22.422270 2022] [lbmethod_heartbeat:notice] [pid 5669:tid 5669] AH02282: No slotmem from mod_heartmonitor
[Tue Aug 30 18:14:22.425068 2022] [mpm_event:notice] [pid 5669:tid 5669] AH00489: Apache/2.4.54 (Fedora Linux) configured -- resuming normal operations
[Tue Aug 30 18:14:22.425082 2022] [core:notice] [pid 5669:tid 5669] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
I already set Apache LogLevel to info and in php.ini I set it to log errors and not output them and also enabled HTML errors
Please let me know if you need anything else.

Localhost doesnt show my files in /var/www/html

When i try to get into my localhost folder I get this
I tried to uninstall and reinstall apache2 but nothing changed
i restarted apache2 and reloaded it nothing
i can access php myadmin and also mysql
however localhost stays 'empty' but i have folders in var/www/html
http://local.server.ip gives me this error
bash: http://local.server.ip: No such file or directory
[Fri Nov 22 00:07:53.655847 2019] [mpm_prefork:notice] [pid 21559] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Nov 22 00:07:53.655912 2019] [core:notice] [pid 21559] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 22 01:15:05.406145 2019] [mpm_prefork:notice] [pid 21559] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Nov 22 01:15:05.436629 2019] [mpm_prefork:notice] [pid 21559] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Nov 22 01:15:05.436640 2019] [core:notice] [pid 21559] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 22 01:16:52.092655 2019] [mpm_prefork:notice] [pid 21559] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Nov 22 01:16:52.129474 2019] [mpm_prefork:notice] [pid 21559] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Nov 22 01:16:52.129490 2019] [core:notice] [pid 21559] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 22 01:30:50.708402 2019] [mpm_prefork:notice] [pid 21559] AH00169: caught SIGTERM, shutting down
[Fri Nov 22 01:31:02.848171 2019] [mpm_prefork:notice] [pid 27340] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Nov 22 01:31:02.848207 2019] [core:notice] [pid 27340] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 22 01:31:20.409265 2019] [mpm_prefork:notice] [pid 27340] AH00169: caught SIGTERM, shutting down
[Fri Nov 22 01:34:21.641232 2019] [mpm_prefork:notice] [pid 28568] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Nov 22 01:34:21.641268 2019] [core:notice] [pid 28568] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 22 01:34:46.704722 2019] [mpm_prefork:notice] [pid 28568] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Nov 22 01:34:46.725762 2019] [mpm_prefork:notice] [pid 28568] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Nov 22 01:34:46.725772 2019] [core:notice] [pid 28568] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 22 02:08:30.892405 2019] [mpm_prefork:notice] [pid 28568] AH00169: caught SIGTERM, shutting down
[Fri Nov 22 02:08:30.984621 2019] [mpm_prefork:notice] [pid 30975] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Fri Nov 22 02:08:30.984671 2019] [core:notice] [pid 30975] AH00094: Command line: '/usr/sbin/apache2'
grep -inRH "ServerName " /etc/apache2/ | grep "\s#"*
I added
ServerName = Localhost
and
grep -inRH "ServerName " /etc/apache2/ | grep "\s#"*
gives me this output
i used a virtuell host before
You need to put a file, not just folders in /var/www/html. Make sure the file is readable by the Apache process too. Try putting a file named index.html there, run chmod a+r /var/www/html/index.html and then browse to localhost again - you should see the contents of your file then

Debian 8: Restarting apache2 failed

I'm trying to Configure timezone for PHP and after setting that, I have a set of commands to execute provided,
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/rewrite.load .
ln -s ../mods-available/headers.load .
ln -s ../mods-available/expires.load .
ln -s ../mods-available/ssl.load .
ln -s ../mods-available/ssl.conf .
ln -s ../mods-available/php5* .
ln -s ../mods-available/socache_shmcb.load .
/etc/init.d/apache2 restart
When I run the last command with sudo, I get the following error,
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
failed!
When I type in the terminal,
systemctl status apache2.service
I get the output of,
​● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Drop-In: /lib/systemd/system/apache2.service.d
└─forking.conf
Active: failed (Result: exit-code) since Fri 2017-12-08 12:57:08 CET; 5min ago
Process: 23298 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 23587 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
What should I do in this case?
Upadte
The output of the command of sudo cat /var/log/apache2/error.log is provided,
​[Fri Dec 08 11:58:17.392972 2017] [mpm_event:notice] [pid 12892:tid 140108409681792] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Dec 08 11:58:17.393055 2017] [core:notice] [pid 12892:tid 140108409681792] AH00094: Command line: '/usr/sbin/apache2'
[Fri Dec 08 11:58:36.585248 2017] [mpm_event:notice] [pid 12892:tid 140108409681792] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Fri Dec 08 11:58:36.588582 2017] [mpm_event:notice] [pid 12892:tid 140108409681792] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Dec 08 11:58:36.588590 2017] [core:notice] [pid 12892:tid 140108409681792] AH00094: Command line: '/usr/sbin/apache2'
[Fri Dec 08 11:58:39.747035 2017] [mpm_event:notice] [pid 12892:tid 140108409681792] AH00491: caught SIGTERM, shutting down
[Fri Dec 08 11:58:40.816350 2017] [mpm_prefork:notice] [pid 15087] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Dec 08 11:58:40.816435 2017] [core:notice] [pid 15087] AH00094: Command line: '/usr/sbin/apache2'
[Fri Dec 08 11:58:42.228275 2017] [mpm_prefork:notice] [pid 15087] AH00169: caught SIGTERM, shutting down
[Fri Dec 08 11:58:43.344556 2017] [mpm_prefork:notice] [pid 15186] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Dec 08 11:58:43.344605 2017] [core:notice] [pid 15186] AH00094: Command line: '/usr/sbin/apache2'
[Fri Dec 08 12:40:45.121960 2017] [mpm_prefork:notice] [pid 15186] AH00169: caught SIGTERM, shutting down​
The output of command /usr/sbin/apache2 is provided,
[Fri Dec 08 13:30:36.877713 2017] [core:warn] [pid 23750] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Fri Dec 08 13:30:36.879775 2017] [core:warn] [pid 23750] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Fri Dec 08 13:30:36.879827 2017] [core:warn] [pid 23750] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Fri Dec 08 13:30:36.879865 2017] [core:warn] [pid 23750] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Fri Dec 08 13:30:36.879905 2017] [core:warn] [pid 23750] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/php5.load: No such file or directory​
You haven't properly enabled the PHP 5 module by the looks of it. Try running a2enmod php5, if it fails you might not have the module installed, in which case try: apt-get install libapache2-mod-php5 and then a2enmod php5 again.

xamp error apache dont want start no matter what

[ssl:warn] [pid 6880:tid 288] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Nov 17 22:05:26.009909 2017] [ssl:warn] [pid 6880:tid 288] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Nov 17 22:05:26.033911 2017] [mpm_winnt:notice] [pid 6880:tid 288] AH00455: Apache/2.4.29 (Win32) OpenSSL/1.0.2l PHP/7.1.11 configured -- resuming normal operations
[Fri Nov 17 22:05:26.033911 2017] [mpm_winnt:notice] [pid 6880:tid 288] AH00456: Apache Lounge VC14 Server built: Oct 22 2017 11:52:30
[Fri Nov 17 22:05:26.033911 2017] [core:notice] [pid 6880:tid 288] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Nov 17 22:05:26.034911 2017] [mpm_winnt:notice] [pid 6880:tid 288] AH00418: Parent: Created child process 544
[Fri Nov 17 22:05:26.046911 2017] [:crit] [pid 544] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
[Fri Nov 17 22:05:26.048911 2017] [mpm_winnt:crit] [pid 6880:tid 288] AH00419: master_main: create child process failed. Exiting.
I tried skype not working kill process skype also
I changed port to like 10 different ports not working
I don't have IIS
I tried to run the batch file via cmd
I did try reinstall clean install nothing change
Whatever I do I am getting same error.
I FIXED , i reinstall xampp so many times that I had like x6 allowed apache and mysql in the windows firewall. I removed them all did a clean install and now all works like charm !

Problems in setting up PHP, Apache and MySQL Dev Environment on Windows 8

My first post, hope someone can help......!
Firstly the context & my situation: I've worked in IT since 1972 (so can guess my age!), started off programming in COBOL & Assembler. My career progressed through development roles into IT management (Project/Programme/IT Director). Became unemployed in 2012 and have not been able to land a job in IT management role, so have decided to explore other avenues - return to my developer roots and update my skills & self-learn web technologies. After a bit of research, decided that PHP, Apache and MYSQL was the most cost-effective & opportunity enhancing way to go. Now I mention my background to make readers aware that although I have a good understanding of most IT Concepts and techniques my specific tech skills are very out of date, having been a driver rather than a mechanic for at least the last 25 years!.
So armed with lots of books on the subject borrowed from the library and several viewed youtube videos, I am trying to set up a PHP/Apache/MYsQL dev environment on my Windows 8 PC to learn and develop a proof-of-concept app for an idea that I have.
So here's the problem that I has stumped me:
- I have installed Apache 2.4.9, PHP 5.4 and Mysql 5.6 on my windows 8 pc
- I have edited the php.ini and httpd.conf file as per instructions
- I have created an index.php which contains phpinfo () surrounded by the php tags
- I Enter localhost in to browser (chrome) and phpinfo executes OK
- I create a .php file and put in phpinfo () surrounded by the php tags and it finds the file and executes OK
- Now If I edit said .php and put some valid php echo statements in before the phpinfo, they display OK, along with the phpinfo output
- but if I edit said .php file and remove the phpinfo () statement, the browser returns ...the requested web page is not available!
- if I edit the said .php file to put some valid php echo statements in after the phpinfo, the phpinfo output appears but not the php echo outputs
- NB Browser executes an html_test.htm file OK
- same occurs if I substitute phpcredits () for phpinfo ()
- I 've tried putting in an mysqli statement in a file with a phpinfo () and that returned web page is not available (i'm sure the Mysql integration will present another challenge!)
I checked / rechecked the basics of the set up and tried everything I know to get it working but to no avail - I'm sure its something quite simple and obvious but it's escaping me (suspect that it might be something to do with the php error handling but just don't know how to check)
Happy to provide more detailed info on request...
Can any young-gun help the old dinosaur out of the swamp?
Rgds
OK - Here's the code for file a) php_name_with_phpinfo.php:
$surname = "Mysurname";
$firstname = "Myfirstname";
echo $firstname . " " . $surname;
phpinfo ();
and here's the code for file b) php_name_without_phpinfo.php:
$surname = "Mysurname";
$firstname = "Myfirstname";
echo $firstname . " " . $surname;
Assure you that the php start and end tags are around both these bits of code but I can get them to apopear in this question (despite trying to enclose in " or 's)
file a) outputs
Myfirstname Mysurname and then the PHP Version 5.5.8 table
file b) outputs:
This web page is not available
I'm mystified
Here's the Apache logs from the last test:
[Sun Apr 13 19:32:15.005429 2014] [:error] [pid 6472:tid 1180] [client ::1:49856] PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\Apache24\htdocs\index.php on line 5
[Sun Apr 13 19:32:15.671297 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00428: Parent: child process 6472 exited with status 255 -- Restarting.
[Sun Apr 13 19:32:15.809554 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00455: Apache/2.4.9 (Win32) configured -- resuming normal operations
[Sun Apr 13 19:32:15.809554 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00456: Apache Lounge VC9 Server built: Mar 17 2014 19:17:53
[Sun Apr 13 19:32:15.809554 2014] [core:notice] [pid 1932:tid 416] AH00094: Command line: 'C:\Apache24\bin\httpd.exe -d C:/Apache24'
[Sun Apr 13 19:32:15.810555 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00418: Parent: Created child process 3440
[Sun Apr 13 19:32:16.169793 2014] [mpm_winnt:notice] [pid 3440:tid 684] AH00354: Child: Starting 64 worker threads.
[Sun Apr 13 19:32:39.679326 2014] [:error] [pid 3440:tid 1160] [client ::1:49860] PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\Apache24\htdocs\php_name_with_phpinfo.php on line 8
[Sun Apr 13 19:32:39.998571 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00428: Parent: child process 3440 exited with status 255 -- Restarting.
[Sun Apr 13 19:32:40.080627 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00455: Apache/2.4.9 (Win32) configured -- resuming normal operations
[Sun Apr 13 19:32:40.080627 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00456: Apache Lounge VC9 Server built: Mar 17 2014 19:17:53
[Sun Apr 13 19:32:40.080627 2014] [core:notice] [pid 1932:tid 416] AH00094: Command line: 'C:\Apache24\bin\httpd.exe -d C:/Apache24'
[Sun Apr 13 19:32:40.081628 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00418: Parent: Created child process 3500
[Sun Apr 13 19:32:40.463914 2014] [mpm_winnt:notice] [pid 3500:tid 372] AH00354: Child: Starting 64 worker threads.
[Sun Apr 13 19:32:50.459089 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00428: Parent: child process 3500 exited with status 255 -- Restarting.
[Sun Apr 13 19:32:50.548148 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00455: Apache/2.4.9 (Win32) configured -- resuming normal operations
[Sun Apr 13 19:32:50.549151 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00456: Apache Lounge VC9 Server built: Mar 17 2014 19:17:53
[Sun Apr 13 19:32:50.549151 2014] [core:notice] [pid 1932:tid 416] AH00094: Command line: 'C:\Apache24\bin\httpd.exe -d C:/Apache24'
[Sun Apr 13 19:32:50.550149 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00418: Parent: Created child process 6552
[Sun Apr 13 19:32:50.885418 2014] [mpm_winnt:notice] [pid 6552:tid 388] AH00354: Child: Starting 64 worker threads.
[Sun Apr 13 19:32:51.031514 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00428: Parent: child process 6552 exited with status 255 -- Restarting.
[Sun Apr 13 19:32:51.181935 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00455: Apache/2.4.9 (Win32) configured -- resuming normal operations
[Sun Apr 13 19:32:51.181935 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00456: Apache Lounge VC9 Server built: Mar 17 2014 19:17:53
[Sun Apr 13 19:32:51.181935 2014] [core:notice] [pid 1932:tid 416] AH00094: Command line: 'C:\Apache24\bin\httpd.exe -d C:/Apache24'
[Sun Apr 13 19:32:51.183934 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00418: Parent: Created child process 6580
[Sun Apr 13 19:32:51.532238 2014] [mpm_winnt:notice] [pid 6580:tid 668] AH00354: Child: Starting 64 worker threads.
[Sun Apr 13 19:32:53.098367 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00428: Parent: child process 6580 exited with status 255 -- Restarting.
[Sun Apr 13 19:32:53.185426 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00455: Apache/2.4.9 (Win32) configured -- resuming normal operations
[Sun Apr 13 19:32:53.185426 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00456: Apache Lounge VC9 Server built: Mar 17 2014 19:17:53
[Sun Apr 13 19:32:53.185426 2014] [core:notice] [pid 1932:tid 416] AH00094: Command line: 'C:\Apache24\bin\httpd.exe -d C:/Apache24'
[Sun Apr 13 19:32:53.187427 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00418: Parent: Created child process 6820
[Sun Apr 13 19:32:53.567752 2014] [mpm_winnt:notice] [pid 6820:tid 676] AH00354: Child: Starting 64 worker threads.
[Sun Apr 13 19:32:53.712849 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00428: Parent: child process 6820 exited with status 255 -- Restarting.
[Sun Apr 13 19:32:53.823924 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00455: Apache/2.4.9 (Win32) configured -- resuming normal operations
[Sun Apr 13 19:32:53.823924 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00456: Apache Lounge VC9 Server built: Mar 17 2014 19:17:53
[Sun Apr 13 19:32:53.823924 2014] [core:notice] [pid 1932:tid 416] AH00094: Command line: 'C:\Apache24\bin\httpd.exe -d C:/Apache24'
[Sun Apr 13 19:32:53.824925 2014] [mpm_winnt:notice] [pid 1932:tid 416] AH00418: Parent: Created child process 4068
[Sun Apr 13 19:32:54.201196 2014] [mpm_winnt:notice] [pid 4068:tid 640] AH00354: Child: Starting 64 worker threads.
More info from testing for anyone who is listening:
- syntactically correct php statements appearing before phpinfo () in file process OK
- syntactically correct php statements appearing after phpinfo () in file don't process, just the table is output
- a file that contains syntactically correct php statements but no phpinfo () returns The Web Page is not available'
- a file that contains syntactically incorrect php statements (e.g eco) and a phpinfo () returns the Web page is unavailable.
- Firefox and IE seem to process a valid php file containing phpinfo () but it quickly disappears from the screen and returns the server not found page (is this a clue?)
Still feel its something to with handling of errors but can't see anything in php.ini or apache 2.4 settings that would help me diagnose further.
Shall I give up and use XAMPP?
I tried to de/then reinstall Apache 2.4 and PHP 5.4 but it only made things worse!, so after a few more days of messing around, I deinstalled the lot and went with XAMPP which was quite straightforward to set up and seems to be working well....anyway, as far as my limited knowledge can tell. In hindsight I wish I had known about and used XAMPP from the start and saved myself alot of anguish, frustration and wasted time!.
Thanks & Rgds.
Most likely you spoiled some PHP syntax while removing phpinfo call.
Edit your php.ini again and set display_errors to on - this way you will see a syntax error message instead of generic error page.
Try to use the below code and check for error if there is any. It should work as shown below :
<?php
error_reporting(E_ALL);
$surname = "Mysurname"; $firstname = "Myfirstname";
echo $firstname . " " . $surname;
?>

Categories