how to fix xampp apache can't run after copy php_pthreads.dll on windows 7 - xampp

how to fix my apache after copy file php_pthreads.dll for activate phpthreads in php 7.2.9 but pthreads is run, this error
5:06:34 PM [Apache] Error: Apache shutdown unexpectedly.
5:06:34 PM [Apache] This may be due to a blocked port, missing
dependencies,
5:06:34 PM [Apache] improper privileges, a crash, or a shutdown by another
method.
5:06:34 PM [Apache] Press the Logs button to view error logs and check
5:06:34 PM [Apache] the Windows Event Viewer for more clues
5:06:34 PM [Apache] If you need more help, copy and post this
5:06:34 PM [Apache] entire log window on the forums

If you check the error logs, it may have something like this:
"The apache2handler SAPI is not supported by pthreads".
If that's the case, don't use pthreads in combination with Apache. Try use php command line interface(cli), because pthreads is cli only.

Related

xampp apache not starting at all

I did get this error before, that the host was wrong. I did change httpd-sll.conf
#ServerName www.example.com:443
ServerName localhost
12:51:21 PM [Apache] Status change detected: stopped
12:51:21 PM [Apache] Error: Apache shutdown unexpectedly.
12:51:21 PM [Apache] This may be due to a blocked port, missing dependencies,
12:51:21 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:51:21 PM [Apache] Press the Logs button to view error logs and check
12:51:21 PM [Apache] the Windows Event Viewer for more clues
12:51:21 PM [Apache] If you need more help, copy and post this
12:51:21 PM [Apache] entire log window on the forumster code here
But now when I start apache, it only give this error, and there is nothing in the logs.
I did try to see what is in Windows Event Viewer, but do not know what to look for.
The apache port is 80 and ssl port 8080
Got it working.
Did uninstall xampp and re install it.

Xampp installation difficulty

I keep on getting the following error message each time I try to install XAMPP on PC:
11:15:57 PM [Apache] Problem detected!
11:15:57 PM [Apache] Port 443 in use by ""C:\Program Files\VisualSVN Server\bin\VisualSVNServer.exe" -k runservice -C "LoadModule log_visualsvn_module bin/mod_log_visualsvn.so" -E nul" with PID 8608!
11:15:57 PM [Apache] Apache WILL NOT start without the configured ports free!
11:15:57 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
11:15:57 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
Can someone help me please.
If Xampp isn't installing due to the in-use port, you can open Task Manager, then go to the services tab, sort by PID and then find the PID as mentioned in the error message. Right-click on the matching service, then select stop from the context menu. Once the service is stopped, then try installing Xampp again.
If Xampp has installed, but won't start a server due to an in-use port, you can configure Xampp to use a different port. You can do so by following the instructs found here in the top answer on this Stackoverflow.

Apache is not starting After upgrading PHP 7.0.9 to PHP 7.0.30 in XAMPP

Right now, my xampp has php 7.0.9 version. Now, I want to upgrade it to php 7.0.30. So, as per guidelines and tutorials shared on internet, I have download thread safe 64 bit php 7.0.30 from below URL:
Downloaded PHP 7.0.30 from Here
And put this folder into xampp folder. After this, I have updated xampp configuration file.
After doing all of the above steps, when I am trying to restart/start apache it is not starting and showing me below error:
Error: Apache shutdown unexpectedly.
5:47:27 PM [Apache] This may be due to a blocked port, missing dependencies,
5:47:27 PM [Apache] improper privileges, a crash, or a shutdown by another method.
5:47:27 PM [Apache] Press the Logs button to view error logs and check
5:47:27 PM [Apache] the Windows Event Viewer for more clues
5:47:27 PM [Apache] If you need more help, copy and post this
5:47:27 PM [Apache] entire log window on the forums
I have also tried to start Apache even after shutting down my SKYPE but still not starting.
Can anyone please help me on this?
Instead of downloading from php.net I've had better luck downloading the portable version of XAMPP directly from sourceforge. You can then take the php directory from the downloaded zip and (after renaming your current php directory) copy it into the xampp directory.
I found that I also had to copy over the ng2http2.dll and libssh2.dll from the (new) php directory to the xampp/apache/bin directory (again after renaming old files).
After a quick check of the new php.ini file and starting the XAMPP server, my local sites loaded the new version.
The above worked for me upgrading from PHP 7.0.x to 7.1.x on Windows 10.

error in installing xampp in windows environment

i used to get this error when running xampp . I had already installed MYSQL in my laptop
10:08:05 AM [mysql] Error: MySQL shutdown unexpectedly.
10:08:05 AM [mysql] This may be due to a blocked port, missing dependencies,
10:08:05 AM [mysql] improper privileges, a crash, or a shutdown by another method.
10:08:05 AM [mysql] Press the Logs button to view error logs and check
10:08:05 AM [mysql] the Windows Event Viewer for more clues
10:08:05 AM [mysql] If you need more help, copy and post this
10:08:05 AM [mysql] entire log window on the forums
how can i overcome this thing?????

XAMPP Not Starting

I have just installed XAMPP on my PC and it doesn't seem to sart. I am getting this error:
21:34:50 [Apache] Attempting to start Apache app...
21:34:50 [Apache] Status change detected: running
21:34:51 [Apache] Status change detected: stopped
21:34:51 [Apache] Error: Apache shutdown unexpectedly.
21:34:51 [Apache] This may be due to a blocked port, missing dependencies,
21:34:51 [Apache] improper privileges, a crash, or a shutdown by another method.
21:34:51 [Apache] Press the Logs button to view error logs and check
21:34:51 [Apache] the Windows Event Viewer for more clues
21:34:51 [Apache] If you need more help, copy and post this
21:34:51 [Apache] entire log window on the forums
Try to change listen port of Apache, open "httpd.conf" file (C:\xampp\apache\conf\httpd.conf), then change line:
#Listen 12.34.56.78:80
Listen 80 to
#Listen 12.34.56.78:80
Listen 9000 or other number
Save and restart Apache Server. It works for me.
Other programs like Skype use the same ports. If you usually use Skype and you dont want to change "httpd.conf" try to unmark the option in options->advanced configuration-> connections that allows Skype, to use these ports .
This was the solution in my case.
two methods:
1-Try to change the default listen port of Apache from 80 to 81, open "httpd.conf" who is in (C:\xampp\apache\conf\httpd.conf)
#Listen 12.34.56.78:80
Listen 81
2-on windows try to stop service IIS-2, to do it open terminal with privileges and type thoses commands to stop and start it
net stop WAS
net start W3SVC

Resources