![]() Select from the list the Mac OS X (x86, 64-bit) DMG archive version. Here the very first step would be to download MySQL as it’s not shipped with the OS. Next open and replace the ‘username’ with the account name. Save with Ctrl(⌃) + O, and exit Ctrl(⌃) + X to exit. Search with Ctrl(⌃) + W, save the file with Ctrl(⌃) + O, and exit with Ctrl(⌃) + X. LoadModule php5_module libexec/apache2/libphp5.so or just press ⌘ + Space and type Terminal. The PHP open Terminal is found in /Applications/Utilities/Terminal. Here also you start with setting up open Terminal. Restart Apache again: sudo apachectl restart 2. Search with Ctrl(⌃) + W, save file with Ctrl(⌃) + O, and exit with Ctrl(⌃) + X. Go to nf and Allow Override to All: sudo nano /etc/apache2/nf htaccess files used to override the default settings when using system level root. You now are ready to use your Sites folder that you created in the previous step: Replace the username with your account name. Include /private/etc/apache2/users/*.confĪnd now, Restart the Apache: sudo apachectl restart Open nf file: sudo nano /etc/apache2/extra/nf Use Ctrl(⌃) + W for searches, Ctrl(⌃) + O for file save and Ctrl(⌃) + X to exit. LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule include_module libexec/apache2/mod_include.so LoadModule userdir_module libexec/apache2/mod_userdir.so LoadModule authz_host_module libexec/apache2/mod_authz_host.so LoadModule authz_core_module libexec/apache2/mod_authz_core.so Open the main nf: sudo nano /etc/apache2/nf Use Ctrl(⌃) + O to save the file, press Ctrl(⌃) + X to exit and run the following command. Options Indexes MultiViews FollowSymLinks Now add the following content and replace the ‘username’ with the account name. In Apache user directory: cd /etc/apache2/users Now go the Terminal and enter following commands. The best tool for this can be the text editor nano. The locations and permissions can be undertaken using the Terminal. You can create it with a short username of your account followed by the suffix. Now add “nf? filed under: /etc/apache2/users/. ![]() Create the folder and proceed to set up user configuration file. After making the folder, you’ll see that it has an unusual icon. ![]() You need to make “Sites? at the root level of your account. User level root: The other root directory that’s missing by default is Sites folder in the User account. System level root: You will find the default root at The files are shared in the file sharing system at /Library/WebServer/Documents/. Using user level is easier as it doesn’t need to authenticate as admin repeatedly. System level is global for all users while the user level will allow multiple accounts having their own web roots. One is at the system level and another at the user level. On OS X El Capitan, you have two web roots. This is the place where the files from the file system are shared. The next step is to make a document Root or a Web Root. In case you don’t want to run the above test you can rather troubleshoot Apache to detect any issue within it. The version that accompanies OS X El Capitan is Apache 2.4.16. You now need to test whether the web server is working in the browser In your browser, you need to see the “It Works!? text. For others, you will get proper feedback. There won’t be any response to some commands, and that means that the command is done. Type or paste commands directly there and hit enter.Ĭommands with their applications protected in certain folders need to be entered with the prefix ‘sudo.’ You’ll also need to confirm with your admin password in such cases. Get that in Applications/Utilities/Terminal or just press ⌘ + Space and type Terminal.ĭone with that, you’ll get to see a command prompt. The action starts with launching the Apache Open Terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |