Panel allows you to start/stop each of these servers: Apache HTTP Server, MySQL Database Server. There should also be a backup in /etc called sudoers~orig. The XAMPP (stands for Cross-platform, Apache, MySQL. If nothing else works, reboot to single user mode and repair the file. If something goes wrongĭelete all your entries in the sudoers or the new file, or comment them with double # so sudo will ignore them. use by web servers built into Win- dows and Mac workstations and servers. In a Termin to start xampp and you don't have to enter your password. By default, XAMPP configures the Apache web server to use TCP port 80 for HTTP. Now you can run sudo /Applications/XAMPP/xamppfiles/xampp start This suggests that the MySQL daemon might not actually be running. The response you get when running ps only shows the grep process running, it doesn't show the actual mysqld process running. Here is some info: Using Max Osx 10.6 Have XAMPP up and running for separate projects (Not sure if thats relevant). Content of the new file: username ALL = NOPASSWD: /Applications/XAMPP/xamppfiles/xampp Try stopping mysql using the mysqld command itself ( pathtomysqld stop) rassa45. I'm receiving the message 'The Mysql Server Instance has stopped' above when I try to run mysql server (system preferences/MySQL). This didn't work for me and every call of sudo took a long time before asking the password. In this new file create only the needed entries, but DON'T add a % in front of your username. sudo service mysqld start older versions sudo service mysql start latest versions And use service mysql status to check the status. Asking for help, clarification, or responding to other answers. No extension needed.įilename doesn't really matter, but it must not cotain a ~ at end or a dot (. Thanks for contributing an answer to Stack Overflow Please be sure to answer the question.Provide details and share your research But avoid. Name the file like your username (for example). Better approachĬreate a new file in the directory /etc/sudoers.d. MacOS also will not allow to use vim sudoers (you cannot save), at least with activated SIP. In High Sierra I couldn't get the new control app manager-osx working without entering password, even when adding it in sudoers.īut you can run xampp from command line to start and stop xampp (or only apache) without password, if you add it to the sudoers file.īut: The solutions above made problems for me, so here what I did:ĭo not edit /etc/sudoers/ file, many things can go wrong! If you really want, use sudo visudo
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |