http://localhost/ is not available - php

I have downloaded xampp-win32-5.6.11-0-VC11-installer
I have Windows 8.1 Single Language (Also sure to be up to date)
XAMPP is in **C:\xampp**
I run the XAMPP Control Panel as a Adminstrator
I installed Apache, MySQL, and FileZilla as a Windows Service from the XAMPP Control Panel
I pressed start for Apache and MySQL and the both are running.
The problem is: http://localhost/ is not available AND http://localhost/phpmyadmin/ is not available
Neither is 127.0.0.1
[Sat Aug 08 10:31:12.646044 2018] [ssl:warn] [pid 4780:tid 476]
Ans1909: www.example.com:443:0 server certificate does NOT include an
ID which matches the server name
This the only warning I get. The rest is just normal notifications.
[Sat Aug 08 10:31:13.646094 2018] [mpm_winnt:notice] [pid 4780:tid
476] Ans00455: Apache/2.4.12 (Winc32) OpenSSL/1.0.1m PHP/5.6.11
configured -- resuming normal operations [Sat Aug 08 10:31:13.646094
2018] [mpm_winnt:notice] [pid 4780:tid 476] Ans00456: Apache Lounge
VC11 Server built: Mar 20 2018 12:12:41 [Sat Aug 08 10:31:13.646094
2018] [core:notice] [pid 4780:tid 476] Ans00094: Command line:
'C:\xampp\apache\bin\httpd.exe -d C:/xampp/apache' [Sat Aug 08
10:31:15.083677 2018] [mpm_winnt:notice] [pid 4780:tid 476] Ans00418:
Parent: Created child process 4312
10:56:50 [main] Initializing Control Panel 10:56:50 [main] Windows
Version: Windows 8 64-bit 10:56:50 [main] XAMPP Version: 5.6.11
10:56:50 [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2018
] 10:56:50 [main] Running with Administrator rights - good! 10:56:50
[main] XAMPP Installation Directory: "c:\xampp\" 10:56:50 [main]
Checking for prerequisites 10:56:50 [main] All prerequisites found
10:56:50 [main] Initializing Modules 10:56:50 [mysql] XAMPP MySQL
Service is already running on port 3306 10:56:50 [main] Starting
Check-Timer 10:56:50 [main] Control Panel Ready 10:56:56 [Apache]
Attempting to start Apache service... 10:57:00 [Apache] Status change
detected: running 13:12:03 [main] Executing "services.msc"
Nothing else to report.
Any help is welcome. I'm a XAMPP virgin so please be gentle.

It's a strange behavior, it's seems you have any strange thing in your vhost or on you hosts file, i can't remember where is exactly the hosts file in windows i suspect it can be in system32/drivers/etc ...
Check the file and if you find a line where your host localhost is pointing to antoher place just point it to 127.0.0.1
That should work

Related

Need to update Xampp php 7.3 to 7.4. Shows Apache error

I need Xampp for Windows 32 bit with a php version of at least 7.4. I can only find a php version 7.3 which is too low. So I need to upgrade it.
I downloaded vc15 x86 threadsafe/zip from, php.net. I extracted it. Renamed xampp\php to xammp\php-old. I then copied php.ini-development to php.ini and made all the changes to php.ini as per this tutorial https://www.youtube.com/watch?v=ir_ZewB_PHY
I restarted Xampp but its giving the error message: Error: Apache shut down unexpectedly. This may be due to a blocked port, missing dependencies..."
I dont have Skype/ Team Viewer or Anydesk open.
I changed the port settings of the httpd.conf File to listen to port 8080 instead of port 80. In http-ssl.conf I changed listen 443 to listen 4433.
I restarted Xampp but I'm still having errors. The Apache (error.log) reflects there errors.
[Wed Aug 24 12:39:53.747228 2022] [ssl:warn] [pid 4220:tid 460] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Aug 24 12:39:53.922456 2022] [core:warn] [pid 4220:tid 460] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Aug 24 12:39:53.922456 2022] [ssl:warn] [pid 4220:tid 460] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Wed Aug 24 12:39:53.938089 2022] [:emerg] [pid 4220:tid 460] AH00020: Configuration Failed, exiting
I really dont know how to solve this and support will be greatly appreciated. My os is Windows 10 32 bit. I was told my laptop cant be upgraded to 64 bit.
Many thanks in advance.
Edit 24 August 2022 !7h30 Johannesburg
I checked PHP module lines in my httpd-xamp.conf is correct.
LoadFile "C:/xampp/php/php7ts.dll"
LoadFile "C:/xampp/php/libpq.dll"
`LoadModule php7_module "C:/xampp/php/php7apache2_4.dll"
I ran httpd.exe -t from the windows command prompt it it shows that the syntax is OK.
I ran httpd.exe -v and it shows Server version: Apache/2.4.38 (Win32)

Softaculous Ampps 3.8 Apache not starting if i change PHP version to 7.1

I have a recent problem in Ampps Software on Windows 10, Apache stopping automatically if PHP version is 7.1 but if I change back PHP Version to 5.6 it's working fine
and here's the error log for Apache
<pre>
[Mon Oct 22 10:28:12.413768 2018] [mpm_winnt:notice] [pid 12484:tid 684] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/5.6.31 configured -- resuming normal operations
[Mon Oct 22 10:28:12.413768 2018] [mpm_winnt:notice] [pid 12484:tid 684] AH00456: Apache Lounge VC15 Server built: Jul 7 2017 11:43:51
[Mon Oct 22 10:28:12.413768 2018] [core:notice] [pid 12484:tid 684] AH00094: Command line: 'apache\\bin\\httpd.exe -d D:/Ampps/apache'
[Mon Oct 22 10:28:12.417758 2018] [mpm_winnt:notice] [pid 12484:tid 684] AH00418: Parent: Created child process 5924
[Mon Oct 22 10:28:13.307885 2018] [mpm_winnt:notice] [pid 5924:tid 740] AH00354: Child: Starting 64 worker threads.
[Mon Oct 22 10:28:45.068164 2018] [mpm_winnt:notice] [pid 9816:tid 700] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/7.1.8 configured -- resuming normal operations
[Mon Oct 22 10:28:45.068164 2018] [mpm_winnt:notice] [pid 9816:tid 700] AH00456: Apache Lounge VC15 Server built: Jul 7 2017 11:43:51
[Mon Oct 22 10:28:45.068164 2018] [core:notice] [pid 9816:tid 700] AH00094: Command line: 'apache\\bin\\httpd.exe -d D:/Ampps/apache'
[Mon Oct 22 10:28:45.070158 2018] [mpm_winnt:notice] [pid 9816:tid 700] AH00418: Parent: Created child process 15180
[Mon Oct 22 10:28:47.563384 2018] [mpm_winnt:crit] [pid 9816:tid 700] AH00419: master_main: create child process failed. Exiting.
</pre>
I didn't change anything or install anything new, and I reinstalled it many times and tried XAMPP it's working fine
Thank you.
Its solved by disabling Ioncube loader extension for me, Thanks for all replies
Try changing the php version used by AMPPS by following their guide here ->
http://www.ampps.com/wiki/How_to_change_php_version
In the AMPPS control panel, select options and then select change php version. The changed version should now be displayed in the control panel.
Try run httpd.exe with as administrator and it worked.
C:\Program Files (x86)\Ampps\apache\bin
I know this is 4 months old, but I have had significant problems with PHP on windows and today I got this problem fixed.
AMPPS - It won’t run PHP 7.1 with out changing the executables to run as administrator mode. Apache will terminate without an error. I believe this is because even if AMPPS is running in admin priviledges these are not granted to the php.exe when it is run. Go to the file location of php.exe, right click and click on properties, click the compatibility tab and select the check box for ‘run as administrator’. Do the same for the httpd.exe under apache->bin->httpd.exe. (Not sure if the httpd priviledge change matters but I did it and it worked.)
Run AMPPS and hopefully like me, your php/apache problems are gone.
i solved mine following steps below:
i switched PHP version to 5.6 which everything works normally,
then went to this URL:
http://localhost/ampps/index.php?
there i found some updates available
notification on top of the page below url bar on the page
if you see updates available for your php 7.0 7.1 ...
90% you will resolve this issue like mine
i tried update all available updates
then restart the ampps app
now working with PHP 7.1 great.
i hope it works for you as well.
A bit late but since i've been using Ampps for 5 years , i provide similar solutions for my common errors maybe someone find it useful .
If you changed Document Root path in "httpd.conf" , make sure that folder still exists.
If you see the logs about InnoDB files, follow the path and delete that dump files and logs.
If you got this error "master_main: create child process failed" in log files :
Change PHP version to 7.1 and Try this:
Open AMPPS panel --> PHP --> Configuration.
Search for the following line and comment it by adding ';' at the beginning of the line: zend_extension="{$path}\php-7.1\ioncube_loader_win_7.1.dll"

XAMPP on windows. Apache Shutdown Unexpectedly. Apache not starting

This is a common issue where the port is already in use by other applications. But I have corrected the issue from skype where it was using port 80 and 443. But I am not sure what else application might be preventing apache from running.
Here is the error log
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash or a shutdown by another method.
Press the Logs button to view error logs and check.
the Windows Event Viewer for more clues.
IF you need more help,
copy and post this entire log window in the forum
I have checked the error log file. It would be nice if anyone would kindly explain me the issue. I am new in using xampp
[Mon Jan 11 15:41:31.711045 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:33.542795 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:37.708844 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00455: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15 configured -- resuming normal operations
[Mon Jan 11 15:41:37.709343 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00456: Apache Lounge VC11 Server built: Oct 13 2015 10:54:13
[Mon Jan 11 15:41:37.709343 2016] [core:notice] [pid 6344:tid 768] AH00094: Command line: 'D:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Mon Jan 11 15:41:37.963876 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00418: Parent: Created child process 5008
[Mon Jan 11 15:41:44.877326 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.246564 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.644423 2016] [mpm_winnt:notice] [pid 5008:tid 688] AH00354: Child: Starting 150 worker threads.
Well if you read the messages from Apache it is quite obvious you have tried to activate SSL and there is a problem with what you have done.
I think this part of the error message from XAMPP is most relevant a crash or a shutdown by another method.
Assuming you did this by uncommenting the Include conf/extra/httpd-ssl.conf line in httpd.conf then just comment that line out again and then try and fix your SSL config.
As suggested by the error message, look at the Windows Event Viewer. Apache writes there as well as its log file. SOmetimes the errors shown in Event Viewer are very descriptive and will identify a line number in a config file where the error exists
RE Your comment :
I had previous installation of xamp on my system. I had deleted the source folder of xampp and reinstalled xampp
Its possible that as you did not uninstall the old version of XAMPP something from the old version is still registered with your system and that is what is causing this odd situation.
I would uninstall this XAMPP (properly) and then check if you still have an Apache and/or MYSQL service registered, look using the services snapin.
If they are still there you can remove them like this (sc delete ) :-
Start command window using "Run as Administrator"
sc delete MYSQL
sc delete Apache
Make sure you have backed up any databases, although it may already be to late for this.
Then you can re-install the version of XAMPP you want to use.

Apache Not working in xampp version 3.2.2

When I start the apache server using XAMPP v3.2.2, it comes with an error saying:
18:30:18 [Apache] Error: Apache shutdown unexpectedly.
18:30:18 [Apache] This may be due to a blocked port, missing dependencies,
18:30:18 [Apache] improper privileges, a crash, or a shutdown by another method.
18:30:18 [Apache] Press the Logs button to view error logs and check
18:30:18 [Apache] the Windows Event Viewer for more clues
18:30:18 [Apache] If you need more help, copy and post this
18:30:18 [Apache] entire log window on the forums
So then I go into the error file bit and it says:
[Wed Dec 30 18:12:12.892830 2015] [ssl:warn] [pid 11372:tid 512] AH01909: www.example.com:443:0 server certificate does NOT include anID which matches the server name
[Wed Dec 30 18:12:13.066839 2015] [ssl:warn] [pid 11372:tid 512] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 18:12:13.134845 2015] [mpm_winnt:notice] [pid 11372:tid 512] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.0 configured -- resuming normal operations
[Wed Dec 30 18:12:13.134845 2015] [mpm_winnt:notice] [pid 11372:tid 512] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 10:17:39
[Wed Dec 30 18:12:13.134845 2015] [core:notice] [pid 11372:tid 512] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 30 18:12:13.142847 2015] [mpm_winnt:notice] [pid 11372:tid 512] AH00418: Parent: Created child process 4144
[Wed Dec 30 18:12:13.900887 2015] [ssl:warn] [pid 4144:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 18:12:14.074292 2015] [ssl:warn] [pid 4144:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 18:12:14.134295 2015] [mpm_winnt:notice] [pid 4144:tid 564] AH00354: Child: Starting 150 worker threads.
I am confused and not sure how to fix it.
If your skype is turned on - you might exit the program because skype is using port 80
After a little research I've found that Win 10 might have a service running at port 80, something named "World Wide Web Publishing Service". What you need to do is stop this service or change the Apache port, like below:
Try this:
Method 1. Changing Apache default port:
On a text or a code editor open the file httpd.config - it should be located at C:\xampp\apache\conf\httpd.conf
Search for "Listen 80".
Change 80 to any other port number e.g. – 9080
Start XAMPP.
To access your localhost, open your browser and type: localhost:9080/sitefolder/ instead of just localhost/sitefolder/
You should be ok then.
If it doesn't work, go over the same process to change the port to 80 again and proceed to Method 2.
Method 2: Stop World Wide Web Publishing Service.
Note: Unless you’re running some software that depends on the Microsoft IIS Web Server, you should be fine when stopping it.
To stop this service, you can follow this video tutorial.

WampServer Apache not starting

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.

Categories