Stopping Apache...fail. apachectl returned 1. The status of the lampp is ok but the localhost is not opening,while stopping,it fails and the above error is shown.how to solve this problem? what are the commands for that ?
Asked
Active
Viewed 1.8k times
5
3 Answers
8
I had the exact same issue. Since you are getting an error stopping Apache and ProFTP only, you need to delete these two files:
/opt/lampp/logs/httpd.pid
and
/opt/lampp/var/proftpd.pid
When you delete the httpd.pid, Apache is automatically killed. And similar happens when you remove the proftpd.pid.
So now you can go ahead and restart the server and new fresh files will be created. :)
-
I followed it. But still it is not solving my issue in Ubuntu 10.04 – Gunaseelan Feb 24 '15 at 13:23
-
What error are you getting? I tried the solution on 14.04 only. – Muhammad bin Yusrat Feb 26 '15 at 03:41
-
Showing "The webpage is not available" when I tried this url.
localhost/phpmyadmin
. I am using Ubuntu 10.04 – Gunaseelan Feb 26 '15 at 05:10 -
This is not an issue with Apache (or the one being discussed in this page). If you are able to open http://localhost/ and you see something there, it means that apache is running fine. – Muhammad bin Yusrat Feb 27 '15 at 14:39
5
Delete the following files:
$XAMPP_ROOT/logs/httpd.pid
$XAMPP_ROOT/var/mysql/$(hostname).pid
$XAMPP_ROOT/var/proftpd.pid

Eliah Kagan
- 117,780

Opacum
- 59
- 1
- 3
-
-
If this files exists XAMPP thinks that Apache,MySQL and ProFTPD already running. Its can happens if you hard reboot your PC when XAMPP is running. – Opacum Mar 04 '15 at 09:15
-
0
When you see Stopping Apache...fail. apachectl returned 1
while starting lampp then Run Following command:
sudo rm -f /opt/lampp/logs/httpd.pid
After running above command restart lampp, it will work definitely.

Haritsinh Gohil
- 101
stop)
. – Jos May 12 '14 at 08:59>/dev/null 2>&1
part from the start/stop script, try to stop the service again, and post the output above. – Jos May 12 '14 at 10:10