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 ?
I had the exact same issue. Since you are getting an error stopping Apache and ProFTP only, you need to delete these two files:
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. :)