How to install Laravel application?




  • Avatar
    Mark Tierney

    This is no good for a production site as the url requires /public

  • Avatar
    Ivan Postnikov

    Hello @Mark,

    Thanks for the feedback.

    To avoid using /public you may configure a redirect to this page and use another URL, which is more comfortable for you.



  • Avatar
    Mark Tierney


    I have kept httpdocs as the web root folder but uploaded the app source code in a folder at the same level as httpdocs, then made httpdocs a symlink to the public folder in my app. Seems to work OK, the main issue is having to type in the full path to php and composer everytime I need to run commands as the OS php is recognised outside of the httpdocs folder.

  • Avatar
    Alexandr Redikultsev

    Hi @Mark!

    You can use full path to CLI of Plesk PHP version, here are all of them (that are installed of course):

    # ls -l /opt/plesk/php/*/bin/php
    -rwxr-xr-x 1 root root 4402920 Sep 14 11:53 /opt/plesk/php/5.6/bin/php
    -rwxr-xr-x 1 root root 4613136 Sep 14 13:20 /opt/plesk/php/7.0/bin/php
    -rwxr-xr-x 1 root root 4761744 Sep 14 13:19 /opt/plesk/php/7.1/bin/php
    -rwxr-xr-x 1 root root 5020880 Sep 14 11:36 /opt/plesk/php/7.2/bin/php

    And if you do not want to use a full path, and want shell 'php' to be  '/opt/plesk/php/5.6/bin/php', not /usr/bin/php, you can create a shell alias for that.

  • Avatar
    Mark Tierney

    Thanks, this is my next step I think, I'm just waiting to hear from tech support to see if it's safe to update the OS php version. If not I'll do as you said :)

Please sign in to leave a comment.

Have more questions? Submit a request