Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bbparis's avatar

Laravel 5, Plesk 12, PHP 5.6, Ubuntu 14 and Forbidden 403 PHP [[[ RESOLVED ]]]

Hello all,

I really wast a lot of time to resolve this issue. I want to install laravel on my dedicated server to be able to learn it, so always I get a forbidden page :

http://demo.beginfromhere.com/

I have Plesk 12, PHP 5.6, Ubuntu 14 and this is my .conf file :

<VirtualHost *:80> ServerName 85.25.139.98 DocumentRoot /var/www/vhosts/beginfromhere.com/demo/public/ # Alias / "/var/www/vhosts/beginfromhere.com/demo/public" <Directory /var/www/vhosts/beginfromhere.com/demo/public/> Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted

ErrorLog ${APACHE_LOG_DIR}/myproject-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/myproject-access.log combined

Can you please help me to resolve this issue ?

Best regards

0 likes
16 replies
bashy's avatar

What does the error log say for the request? It should have a path for the requested file. Permissions will cause a 403 or maybe no directory index is set so it's also not loading the index.php file.

bbparis's avatar

Thank you for your interest, check this : http://demo.beginfromhere.com/

you will get the following :

Forbidden You do not have permission to access this document.

Web Server at beginfromhere.com

bashy's avatar

Yeah I can't tell much from that. You need to supply (or look at) the logs for that error request.

bbparis's avatar

I think the problem is with the virtualHost, I kno wit is hard to find this kind of solutions. By the way, I don't have any logs concerning this issue inside my logs folder

bbparis's avatar

I don't know...also I don't know why Laravel is so complicated to be ready to use. I'm trying to learn it but the to get it work, it is not an easy issue at all

jjosephs's avatar

Try removing all the laravel files and uploading a simple index.html file. If you can't access this file, you know it's a server issue. If you can, you know the issue is with laravel.

bbparis's avatar

it is a Laravel Issue, I just test your solution with index.html includes "Hello World" and get it

bashy's avatar

Oh wait, you have ServerName as the IP?

http://85.25.139.98/ is your site?

If you want demo.domain.com you need to put that there without http(s):// etc.

bbparis's avatar

yes it is mine, but I want to use it also for the subdomain

demo.beginfromhere.com

bashy's avatar

I stated that above. Replace the ServerName to be this

ServerName demo.beginfromhere.com
bbparis's avatar
bbparis
OP
Best Answer
Level 1

Hello,

I just resolved this issue. I want to say very important point if you are PLESK.

Apache comes inside Plesk, for that, you can't do anything concerning the configuration of Virtual Host inside :

/etc/apache2/sites-available

If you want to configure a website, you should go to here :

/var/www/vhosts/system/yourwebsite.com/conf/vhost.conf

or if you want to configure a subdomain, go to here :

/var/www/vhosts/system/subdomain.yourwebsite.com/conf/vhost.conf

Voilà

@bashy : Thank you dear for your help, I appreciate your efforts.

Please or to participate in this conversation.