I've installed WampServer so many times, and everytime i face this problem.
The wamp tray icon is orange :
and i get this errors in the Apache Error Log :
[Sun May 31 07:29:32.246382 2015] [mpm_winnt:notice] [pid 2972:tid 376] AH00455: Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Sun May 31 07:29:32.246382 2015] [mpm_winnt:notice] [pid 2972:tid 376] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sun May 31 07:29:32.246382 2015] [core:notice] [pid 2972:tid 376] AH00094: Command line: 'f:\wamp\bin\apache\apache2.4.9\bin\httpd.exe -d F:/wamp/bin/apache/apache2.4.9'
[Sun May 31 07:29:32.527182 2015] [mpm_winnt:notice] [pid 2972:tid 376] AH00418: Parent: Created child process 2700
[Sun May 31 07:29:59.421630 2015] [mpm_winnt:crit] [pid 2972:tid 376] AH00419: master_main: create child process failed. Exiting.
When i test the port 80 it says :
Checked the System Environment Variables for errors and understood nothing there :
What Causes this problem?
Please check that you have the Visual C++ Redistributable for Visual Studio 2012 Update 4 installed on this computer.
Apache 2.4.9 requires this library to be installed.
Click the download button and then select either the X86(32bit) or X64(64bit) link to match the version of WAMPServer(32 or 64) that you installed.
If you are running on a 64bit Windows, its a good idea to download and install both the 64 and 32 bit libraries, as something somewhere you use in the future will also require the library.
Related
All of the sudden, Apache in Ampps won't start anymore. Of course, I have tried checking port 80, but nothing is listening/running on port 80. Please help, thank you. Also, I have checked the Apache logs and according to the logs everything is fine. But, in the Ampps UI, it says next to Apache, "Stopped."
Here is a part of the logs:
[Sun Jun 24 07:04:14.190632 2018] [core:notice] [pid 19300:tid 712] AH00094: Command line: 'apache\\bin\\httpd.exe -d C:/Program Files (x86)/Ampps/apache'
[Sun Jun 24 07:04:14.190632 2018] [mpm_winnt:notice] [pid 19300:tid 712] AH00418: Parent: Created child process 23216
[Sun Jun 24 07:04:14.910118 2018] [mpm_winnt:notice] [pid 23216:tid 724] AH00354: Child: Starting 64 worker threads.
[Sun Jun 24 07:04:27.659321 2018] [mpm_winnt:notice] [pid 21360:tid 680] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/5.6.31 configured -- resuming normal operations
[Sun Jun 24 07:04:27.659321 2018] [mpm_winnt:notice] [pid 21360:tid 680] AH00456: Apache Lounge VC15 Server built: Jul 7 2017 11:43:51
I fixed it! I just had to replace all the PHP files with new ones!
I have been working with PHP 5.xx for years but recently updated to PHP 7. I can't create sessions.
I have read the documentation.
In earlier PHP, you just have to do:
session_start();
to start session, but this doesn't work with PHP 7 and my page keeps loading. I provided the array in the parameter too as documented on the PHP website but still it keeps loading the page.
I have tried this:
session_start([
'cache_limiter' => 'private',
'read_and_close' => true,
]);
But my browser keeps loading and after few seconds it displays 'This webpage is not available'
Apache restart errors:
[Wed Dec 30 00:45:16.470001 2015] [mpm_winnt:notice] [pid 2384:tid 376] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.0 configured -- resuming normal operations
[Wed Dec 30 00:45:16.470001 2015] [mpm_winnt:notice] [pid 2384:tid 376] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 10:17:39
[Wed Dec 30 00:45:16.470001 2015] [core:notice] [pid 2384:tid 376] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
[Wed Dec 30 00:45:16.470001 2015] [mpm_winnt:notice] [pid 2384:tid 376] AH00418: Parent: Created child process 1716
[Wed Dec 30 00:45:17.172064 2015] [ssl:warn] [pid 1716:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 00:45:17.343941 2015] [ssl:warn] [pid 1716:tid 384] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 00:45:17.375192 2015] [mpm_winnt:notice] [pid 1716:tid 384] AH00354: Child: Starting 150 worker threads.
I found its a bug related to xampp version i.e. x86 or x64 bit.
I have a system with x64 bit windows and i installed a xampp with php7 but it was x86 bit. This was a reason for that error apache crashes.
Now i separately installed apach2.4 (x64) and PHP7.0.1 which is working perfect now.
I have a problem with WAMP becouse that dont want to start, icon stay orange all the time.
What I try:
I change Skype port to :88 (dont work)
I change port on httpd.conf:
Listen 12.34.56.78:8080listen 0.0.0.0:8080 Listen [::0]:
8080
Dont Work
I run at CMD: iisreset /stop and then try to run WAMP (dont work)
WHen I run Test port 80 I get message: Your port is not actually used.
I really dont know what is a problem here! Please help!
My apache error log say:
[Sat Dec 05 14:23:40.045710 2015] [mpm_winnt:notice] [pid 1936:tid 396] AH00455: Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Sat Dec 05 14:23:40.061311 2015] [mpm_winnt:notice] [pid 1936:tid 396] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sat Dec 05 14:23:40.061311 2015] [core:notice] [pid 1936:tid 396] AH00094: Command line: 'D:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d D:/wamp/bin/apache/apache2.4.9'
[Sat Dec 05 14:23:40.061311 2015] [mpm_winnt:notice] [pid 1936:tid 396] AH00418: Parent: Created child process 2748
[Sat Dec 05 14:23:40.716512 2015] [mpm_winnt:notice] [pid 2748:tid 328] AH00354: Child: Starting 64 worker threads.
[Sat Dec 05 23:24:18.242493 2015] [mpm_winnt:notice] [pid 1936:tid 396] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sat Dec 05 23:24:20.270497 2015] [mpm_winnt:notice] [pid 2748:tid 328] AH00364: Child: All worker threads have exited.
[Sat Dec 05 23:24:20.395297 2015] [mpm_winnt:notice] [pid 1936:tid 396] AH00430: Parent: Child process 2748 exited successfully.
It is not Apache that is the issue.
You probably have a database corruption.
Look at your mysql error log using the wampmanager menus like this
wampmanager -> MySQL -> MySQL Log
First things first.
Close WAMP and try netstat -a or use CurrPorts.
Check which process is using the same port that WAMP uses, 80? 443?
Kill the process with taskkill /T /F /IM name_of_process.exe
Try to run WAMP again.
Repeat the process and make sure that Apache is on port 80/443.
Problem: Apache keeps crashing if I try to update the global $_SESSION variable in PHP. These are the entries added to error.log in case of a crash.
From apache\logs\error.log:
[Mon Jun 29 14:10:34.142373 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00428: Parent: child process 1440 exited with status 3221225477 -- Restarting.
[Mon Jun 29 14:10:34.262613 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00455: Apache/2.4.12 (Win32) PHP/5.6.8 configured -- resuming normal operations
[Mon Jun 29 14:10:34.262613 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Mon Jun 29 14:10:34.262613 2015] [core:notice] [pid 6644:tid 316] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Jun 29 14:10:34.266524 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00418: Parent: Created child process 6376
[Mon Jun 29 14:10:35.026097 2015] [mpm_winnt:notice] [pid 6376:tid 428] AH00354: Child: Starting 150 worker threads.
Windows Event viewer
About my source code: I have a php script and intend to add variables to an existing session. For that matter, I use $_SESSION and set some keys to arrays, i.e. $_SESSION['foo'] = bar, where bar is an array containing objects of a very simple class having only some string attributes.
If I do that the first time, I'm fine. If I re-assign a value to $_SESSION['foo'] after reloading the page, Apache crashes and immediately restarts. I was able to isolate the crash to this very line, as commenting it out turned out to prevent the crash. First, I assumed my session is somehow corrupted or I use it incorrectly. But if I manually set $_SESSION['foo'] = "", instead of assigning an array, no crash occurs.
Similar reports I found in the web had different error sources, so I tried a few things, e.g.:
Run XAMPP as administrator
Increase the thread stack size in httpd.conf
Deactivate unused php-extensions
Switched to different ports, etc.
Turned off SSL
Unfortunately, nothing helped in my case.
PS: I use XAMPP v.3.2.1 with PHP 5.6.8 on Windows 8.1 (64bit).
EDIT: As suggested by donald123, I turned off SSL. The error persists, but I posted a cleaner log snippet.
I installed PHP 5.2.17 as per the following tutorial
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204
apt-get installed PHP5.5 and apache 2.4.7
PHPINFO reports that the php version of the set host is still 5.5.9
when I restart apache2 service, I get the following in error.log.
[Thu Mar 19 14:18:53.648697 2015] [mpm_prefork:notice] [pid 23518] AH00169: caught SIGTERM, shutting down
[Thu Mar 19 14:18:54.741836 2015] [:notice] [pid 5543] FastCGI: process manager initialized (pid 5543)
[Thu Mar 19 14:18:54.754243 2015] [mpm_prefork:notice] [pid 5541] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.5.9-1ubuntu4.6 configured -- resuming normal operations
[Thu Mar 19 14:18:54.754317 2015] [core:notice] [pid 5541] AH00094: Command line: '/usr/sbin/apache2'
Removing php5.5 solved the problem.
The problem probably was a conflict between the two PHP versions, using same fastcgi implementation.