You need to make a “ Sites” folder at the root level of your account and then it will work. This takes a bit longer to set up but some users are very accustomed to using it. The other web root directory which is missing by default is the ‘ ~/Sites’ folder in the User account. The files are shared in the filing system at – /Library/WebServer/Documents/ User Level Root – the default system document root is still found at – It is easier to use the user level one as you don’t have to keep on authenticating as an admin user. It seems there is less effort from Apple in continuing with the user level one but it still can be set up with a couple of extra tweaks in configuration files. Document Rootĭocument root is the location where the files are shared from the file system and is similar to the traditional names of ‘ public_html‘ and ‘ htdocs‘, OSX has historically had 2 web roots one at a system level and one at a user level – you can set both up or just run with one, the user level one allows multiple accounts to have their own web root whilst the system one is global for all users. This will give you an indication of what might be wrong. If you don’t get the localhost test, you can try troubleshooting Apache to see if there is anything wrong in its config file by running apachectl configtest The Apache version that comes in macOS Sierra is Apache/2.4.23Īfter starting Apache – test to see if the webserver is working in the browser – – you should see the “It Works!” text. To start Apache web sharing sudo apachectl start Using the prefix of sudo is required for commands that have their applications protected in certain folders – when using sudo you will need to confirm with your admin password or iCloud password if set up that way…. This needs to be done in the Terminal which is found at /Applications/Utilities/Terminalįor those not familiar with the Terminal, it really isn’t as intimidating as you may think, once launched you are faced with a command prompt waiting for your commands – just type/paste in a command and hit enter, some commands give you no response – it just means the command is done, other commands give you feedback. dmg and run the installer.ĭuring the MySQL process, you are prompted to choose between strong and legacy password encryptions, since version 8 is entirely new (some software like phpMyAdmin can’t connect with the newer encryptions) - so if you are going to use a GUI wrapper like phpMyAdmin I suggest you stick to legacy.Web serving is possible via the inbuilt Apache app, it is installed ready to be fired up. When you’re downloading, you don’t have to sign up - look for: “No thanks, just take me to the downloads!” Go straight to the download mirrors and download the software from a mirror that is closest to you. Before you upgrade to macOS Mojave make sure your MySQL server is not running. One thing with MySQL upgrades, always take a data dump of your database in case things go south. (MySQL 8 is relatively new and not present in many production setups). If you have a clean install and want the earlier MySQL version 5.7, you can still get this from the MySQL site - from the ‘Looking for previous GA versions’ link.If you are upgrading from a previous macOS and have an older MySQL version you do not have to update it.Use the macOS 10.13 (x86, 64-bit), DMG Archive version (works on macOS Mojave).The latest version of MySQL 8.0.12 does work with the public release of macOS.MySQL doesn’t come pre-loaded with macOS Mojave it needs to be dowloaded from the MySQL site. Include /private/etc/apache2/extra/nf Override. Now open nf, sudo nano /etc/apache2/nfĪnd uncomment the following module: LoadModule authz_core_module libexec/apache2/mod_authz_core.so LoadModule authz_host_module libexec/apache2/mod_authz_host.so LoadModule userdir_module libexec/apache2/mod_userdir.so LoadModule include_module libexec/apache2/mod_include.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so PHP moduleĪlso uncomment the PHP module: LoadModule php7_module libexec/apache2/libphp7.soĪnd uncomment this configuration file in nf - which the allows user home directories. AllowOverride All Options Indexes MultiViews FollowSymLinks Require all granted Open Apache folder and create nf in the /users directory: cd /etc/apache2/users sudo nano nfĪdd the text below in nf and save it ( CTRL+ O). Create /Sites folder in username: sudo mkdir ~/Sites
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |