

Test it! mkdir /Users/suvozit/Sites/welcome Uncomment LoadModule rewrite_module libexec/apache2/mod_rewrite.so # AllowOverride FileInfo AuthConfig Limit # It can be "All", "None", or any combination of the keywords: htaccess files used to override the default settingsĬhange AllowOverride None to AllowOverride All # AllowOverride controls what directives may be placed in. htaccess and allow URL Rewrites sudo nano /etc/apache2/nfĪllow any. Uncomment LoadModule php5_module libexec/apache2/libphp5.so Then this user level document root will be viewable at: Get php running sudo nano /etc/apache2/nf Restart Apache for the new file to be read: sudo apachectl restart Then open another Apache config file and uncomment another file: sudo nano /etc/apache2/extra/nfĪnd uncomment: Include /private/etc/apache2/users/*.conf LoadModule userdir_module libexec/apache2/mod_userdir.soĪnd Include /private/etc/apache2/extra/nf LoadModule authz_host_module libexec/apache2/mod_authz_host.so Make sure these 3 modules are uncommented (the first 2 should be on a clean install): LoadModule authz_core_module libexec/apache2/mod_authz_core.so Set permission sudo chmod 644 nfĪllow some modules: sudo nano /etc/apache2/nf

Options Indexes MultiViews FollowSymLinks System Level Web Root The files are shared in the filing system at – /Library/WebServer/Documents/ User Level Root ~/Sites

It works! troubleshooting Apache to see if there is anything wrong in its config file by running apachectl configtest
