playgerma.blogg.se

Mac os x apache forbidden
Mac os x apache forbidden










mac os x apache forbidden
  1. #Mac os x apache forbidden mac os
  2. #Mac os x apache forbidden download

There are so many Mac OS softwares that you can use for MySql database management but I liked SequelPro most, its easy to install and use and uses very less memory.

  • Start the MySql server if its not running and optionally you can select the checkbox to automatically start MySql server on startup.
  • Open the DMG file and install MySql server and Preference Pane for starting and stopping MySql server easily.
  • #Mac os x apache forbidden download

    Download the MySql DMG file from MySql Download Website.Lets move now to install MySql database server on Mac OS X. If the request is still going to the Internet, try flushing your DNS cache using command dscacheutil -flushcache. Just put a simple HTML file (abc.html) in the server directory and try to access it in the browser.

    mac os x apache forbidden

    Our virtual hosts setup is done now, just restart the apache with command apachectl restart Pankajs-MacBook-Pro:~ root# vi /etc/hosts

    mac os x apache forbidden

    The next thing we need to do is add the server URL to known hosts file, else it will go to DNS server and the request will be redirected to Internet rather than loading it from the local machine. The Directory directive is added to avoid any permission issues. Make sure to change the DocumentRoot, ServerName and Directory location according to your needs. ServerAlias ErrorLog "/private/var/log/apache2/-error_log"ĬustomLog "/private/var/log/apache2/-access_log" common Pankajs-MacBook-Pro:~ root# vi /etc/apache2/extra/nfĪdd following configuration for a new VirtualHost and save it. We can proceed now to HTTPD virtual hosts file. Now when Apache will load the configuration file, it will also load the virtual hosts configuration file. Pankajs-MacBook-Pro:~ root# vi /etc/apache2/nf To enable VirtualHosts, we need to make some changes in Apache Configuration file (nf). Default location for Apache web server project files is /Library/WebServer/Documents/ which is not a convenient place to keep our project files, also we will have to access it in browser with localhost, so I decided to create my own virtual host pointing to my development directory.












    Mac os x apache forbidden