Page 1 of 1

install laravel 5.3 in vestacp ?

Posted: Thu Dec 01, 2016 2:36 am
by lovevestacp
hello, i'm using centos 7
how to install laravel 5.3 in vestacp ? laravel 5.3 need php 5.6.4 vestacp not support php 5.6.4
thank you

Re: install laravel 5.3 in vestacp ?

Posted: Sat Jul 22, 2017 12:46 pm
by areoid
Can you show the error message? or something..

I think, you need to setup the root directory of your laravel within httpd.conf and nginx.conf

for example, your laravel is in public_html/laravel/
so, in httpd.conf you must like this

httpd.conf
DocumentRoot /home/admin/web/domain.com/public_html/laravel/public
and
<Directory /home/admin/web/domain.com/public_html/laravel>

nginx.conf
in location / {} section, you must setup the root directory and try_files config

Code: Select all

location / {
        proxy_pass	http://23.95.29.130:8080;
        location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|t$
            root           /home/admin/web/domain.com/public_html/laravel/public;
            access_log     /var/log/httpd/domains/domain.com.log combined;
            access_log     /var/log/httpd/domains/domain.com.bytes bytes;
            expires        max;
            try_files	   $uri $uri/ /index.php?$query_string @fallback;
        }
    }
I hope useful