Change localhost directory for Yosemite Apache 2.4

I’ve just installed Yosemite and I managed to change the DocumentRoot without any problems. First I modified the following lines in /private/etc/apache2/httpd.conf: DocumentRoot “/Library/WebServer/Documents” <Directory “/Library/WebServer/Documents”> Options FollowSymLinks Multiviews AllowOverride None </Directory> to: DocumentRoot “<CUSTOM_PATH>” <Directory “<CUSTOM_PATH>”> Options Indexes FollowSymLinks Multiviews AllowOverride All </Directory> The above will set a custom DocumentRoot, enable directory listing and … Read more

Apache2: ‘AH01630: client denied by server configuration’

If you are using Apache 2.4 You have to check allow and deny rules Check out http://httpd.apache.org/docs/2.4/upgrading.html#access In 2.2, access control based on client hostname, IP address, and other characteristics of client requests was done using the directives Order, Allow, Deny, and Satisfy. In 2.4, such access control is done in the same way as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)