lkpwealth.blogg.se

Mac os x apache server root
Mac os x apache server root





mac os x apache server root

It is important to remember Mac OS X runs atop UNIX. Personally, the choice to do it myself has proven invaluable. But they forego the learning experience and, as most developers report, eventually break. These packages help get you started quickly. I am aware of the several packages available, notably MAMP. This post serves as much for my own record as to outline how to install Apache, MySQL, and PHP for a local development environment on Mac OS X Mountain Lion Mavericks.

mac os x apache server root

Each version of Mac OS X having some minor difference. I have installed Apache, PHP, and MySQL on Mac OS X since Leopard. Edit host file for your sever name, open /etc/hosts and add this line to itġ0.MacOS Update: While these instructions still work, there are new posts for recent versions of macOS, the latest being Install Apache, PHP, and MySQL on macOS Mojave. SSLCertificateKeyFile /etc/apache2/ssl/server.keyĨ. SSLCertificateFile /etc/apache2/ssl/server.crt SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL Replace the value for ServerName, DocumentRoot and Directory path to yours.

mac os x apache server root

Configure vhosts to enable https 443, open /etc/apache2/extra/nf and the below to it. SSLCertificateKeyFile "/etc/apache2/ssl/server.key"ħ.

mac os x apache server root

SSLCertificateFile "/etc/apache2/ssl/server.crt" Open /etc/apache2/extra/nf search for lines with SSLCertificateFile and SSLCertificateKeyFile, update them to the below LoadModule ssl_module libexec/apache2/mod_ssl.so If there is but with # sign at the beginning, remove the # sign. Open /etc/apache2/nf, make sure you have these 3 lines in it. Sudo openssl x509 -req -days 99999 -in request.csr -signkey server.key -out server.crtĥ. Create SSL certificate file from the request file. Sudo openssl req -new -key server.key -out request.csrĤ. Enter info or leave blank when asked various questions. Create server key, just press enter when asked for password.ģ.







Mac os x apache server root