Celeb Glow
updates | March 29, 2026

403 forbidden to my apache server

I set up an apache sever, this is my conf file in "sites-availiable":

<VirtualHost *:80> ServerName myhostname.com ServerAdmin webmaster@localhost DocumentRoot /home/cock/phpmyadmin/ ErrorLog /var/log/apache2/phpmyadmin-error.log LogLevel warn CustomLog /var/log/apache2/phpmyadmin-access.log combined <Directory /home/cock/phpmyadmin> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny # add here your IP addresses allow from all </Directory>
</VirtualHost>

` I changed that directory mode to 777, but still can't access the homepage.

1

1 Answer

Apache now needs Require all granted under <Directory>, so edit like this :

....
<Directory /home/cock/phpmyadmin> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny # add here your IP addresses allow from all Require all granted
</Directory>
...

Then reload config apache with

sudo service apache2 reload

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy