![]() Normally this will be added to php.ini zend_extension="xdebug. #Mac apache restart install#Normally, you can just install the native mysqld service pecl install xdebug You can change the MySQL socket from the php.ini Default socket name for local MySQL connects. 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 WSGIScriptAlias /devsiteWsgiApp "/Users/123/Dropbox/hosts/devsite/wsgiapp.py" ![]() 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. Make sure DirectoryIndex includes php Add a virtual host LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so Install php brew unlink php & brew link -overwrite -force this in your conf file LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so Start the server /opt/homebrew/bin/httpd -k start Server's Module Magic Number: 20120211:105Ĭompiled using: APR 1.7.0, APR-UTIL 1.6.1Ī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 To restart the Apache service, run: sudo systemctl restart apache2. Then you can do $/opt/homebrew/opt/httpd/bin/httpd -V Whenever you make changes to the Apache configuration, you need to restart the server processes. 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 #Mac apache restart mac os x#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 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |