single
By:
single

How do I manual deploy website without Git?

March 22, 2018 531 views
Deployment Ubuntu 16.04

I'm trying to manual deploy my Symfony project to the server. I have installed all the softwares of LAMP, I have setup ssh connection to the server in both the console and filezilla, and I have installed the unzip package for unzipping.

My plan is to upload my project in a zip to the server, upzip it and start from there. But my problem is that I couldn't see those "/var/www" folders...I couldn't get into them on both the console nor filezilla. How do I do this?

1 Answer

Sounds like it might be permissions related.

You may need to add your user/group to the /var/www folder or add your user to the www group (not sure what best practice is now).

Also worth thinking about scp or rsync to get your project over.

  • I found the problem. It's because when I login with ssh, I was default in the /myusername/home/ folder as non-root user or /root/ folder as root user, so when I do the "cd" command, it shows nothing because those folders were empty.

    When I do "cd /var/www" then I can navigate to the upper level folders.

Have another answer? Share your knowledge.