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

jackylara's avatar

Moving Laravel project between servers, Help!

I am a newbie of laravel.

I have been working on a laravel5 project on a ubuntu server, but now I want to continue on another server, but don't know how .

I'm just copy and paste on the another server, and the project is in the "/var/www/html" folder, but the webpage always show the original page "LARAVEL5", I can't see my project on the webpage.

How can I solve this problem?

Thank you

0 likes
4 replies
petrit's avatar

After copied you files to your new server take these steps:

  1. Go to your destination folder and run composer update
  2. Run this command
php artisan cache:clear
MaverickChan's avatar

painless way is copy all file of your project to new server , remember , including your vender folder,ALL files needed. then do step 2 like @petrit says : php artisan cache:clear

of course , check your file permissions.

jackylara's avatar

Thank you for you guys. I have load the main page of my project, but there have another problem.

I can load the main page but I can go to other page (ex. domainname/about )

Not Found The requested URL main/about was not found on this server.

MaverickChan's avatar

@jacklara it is your Apache Vhost setup.

<VirtualHost *:80>
    DocumentRoot "/Library/WebServer/Documents/{your project name}/public"
    ServerName localhost
    <Directory />
        Options FollowSymLinks Multiviews
        MultiviewsMatch Any
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

assume you install your project in the local host of course you can change it in you apache conf file as well.

Please or to participate in this conversation.