Yesterday I upgraded to Yosemite, and now my local configuration for web development no longer works.
I managed to configure userdir under /Users/user/public_html , and I could access all websites through localhost/~user/websitename . Nothing special, but it took me a while to set up.
Having looked in the apache directory, I saw that many files were replaced, keeping a backup. I tried to return the files with my settings again, but still not working. I may be missing a file that I donβt remember.
This is httpd-userdir.conf:
# Settings for user home directories
Then in http.conf I included some modules:
Include /private/etc/apache2/extra/httpd-userdir.conf LoadModule userdir_module libexec/apache2/mod_userdir.so
and this:
DocumentRoot "/ Users / user / public_html"
Directory "/Users/user/public_html">
If I'm just trying to access localhost , it displays the message "It works!". If I switch to localhost/user , it just does not load, and the same thing if I try to access one of the sites.
Am I missing a file? The apache logs do not even display any errors.
php apache osx-yosemite macos
Carlo
source share