![]() However it didn't work, I wanted to test to see if MySQL is running however nothing returned. I tried typing in this command "sudo lsof -i -P | grep 3306" in Terminal. I have tried following this Tutorial on fixing port conflicts. ![]() (XAMPPErrorDomain error 1.)"Īny ideas on how to stop other MySQL processes. The error message shows "The operation couldn't be completed. I have set the permissions to Read/Write for everyone and every file in the XAMPP folder. httpd.worker is like httpd but with the worker module enabled.I'm on a Mac OSX Mountain Lion. Remember to add your entry to /private/etc/hosts 127.0.0.1 devsite devsite.localįAQ: What is the difference between apachectl and httpd ?Īpachectl is a wrapper over httpd and just sets some environment variables and adds further functionality, like configtest, more in detail here. If you add multiple hosts, you can use the Tehnique Using XDebug 3 – for phpstorm, you would also need to add Normally this will be added to php.ini zend_extension="xdebug.so" Normally, you can just install the native mysqld service pecl install xdebug This is how to check for available users: MariaDB > SELECT user,host FROM er Add XDebug You can change the MySQL socket from the php.ini ( write php -ini in Terminal to find ) Default socket name for local MySQL connects. If you installed MySql via another method, you can use mysql_config -socket You can use a tool like MySQL Workbench to see currently running mysqlĬheck currently running mysql instances with $ps aux | grep mysql You will find it in system preferences > mysql Normally, you can just install the native mysqld service WSGIDaemonProcess devsite processes=2 threads=15 Options Indexes FollowSymLinks Includes ExecCGI XSendFilePath "/Users/123/Dropbox/hosts/devsite" ![]() You can just access /private/etc/apache2/nf and add: ĭocumentRoot "/Users/123/Dropbox/hosts/devsite" You can add unlimited virtual hosts just like MAMP adds them. You can for example first edit the config upload_max_filesize = 32M Make sure DirectoryIndex includes php php config If you are not allowed to add modules -> create signing authority -> create code signing authority -> codesign -sign "Mohd Shakir" -force -keychain ~/Library/Keychains/login.keychain-db /opt/homebrew/opt/php/lib/httpd/modules/libphp.so ![]() Remember to uncomment LoadModule rewrite_module libexec/apache2/mod_rewrite.so and add AddType application/x-httpd-php. LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so Start the server /opt/homebrew/bin/httpd -k start install php brew unlink php & brew link -overwrite -force this in your conf file inside apache configuration ( use /opt/homebrew/bin/httpd -V to find the configuration file ) LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so You can check the config syntax with httpd -tĬheck which services use port 80 sudo lsof -i -P | grep LISTENĪccess the config from /private/etc/apache2/nf # /opt/homebrew/etc/httpd/nf ( homebrew ) -> remember to change the User and Group to your user and group settingsĪlso, remember to allow vhost_alias_module LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so Then you can do $/opt/homebrew/opt/httpd/bin/httpd -V To check if you have httpd running you can do ps -ef |grep httpd ps -ef |grep httpdĠ 4182 1 0 Mon01PM ? 0:01.16 /Applications/MAMP/Library/bin/httpd -f /Library/Application Support/appsolute/MAMP PRO/conf/nf -k startĥ01 4183 4182 0 Mon01PM ? 0:00.00 /Applications/MAMP/Library/bin/httpd -f /Library/Application Support/appsolute/MAMP PRO/conf/nf -k startĥ01 4189 4182 0 Mon01PM ? 0:00.02 /Applications/MAMP/Library/bin/httpd -f /Library/Application Support/appsolute/MAMP PRO/conf/nf -k startĥ01 24659 24648 0 12:33AM ? 0:00.00 /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUNDĥ01 24661 24648 0 12:33AM ? 0:00.01 /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUNDĥ01 24662 24648 0 12:33AM ? 0:00.00 /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUND Sudo launchctl unload -w /System/Library/LaunchDaemons/ 2>/dev/null Optional, if you are on Mac OS X Monterey you might need to uninstall the default Apache 2.4 sudo apachectl stop You just need to start it: sudo apachectl start restart: sudo apachectl restart check config: apachectl configtest You should already have Apache installed on mac Install Apache
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |