Monthly Archives: October 2016

Installing WP with command line

So when FileZilla created havoc with the file permissions of my WP script, and VestaCP doesn’t have a File Manager or a script installer, I went for installing WP with the command line instead.

I thought I would record the steps I followed here in case this will be the route I follow in future.

Step 1: Change directory to public_html

cd /home/admin/web/

Step 2: Download WordPress Script


Step 3: Unzip WordPress Script

unzip latest unzip

Step 4: Move content of WordPress folder up one folder into public_html

cd wordpress
mv * .[^.]* ..

Step 5: Remove empty WordPress folder and index.html file

rmdir wordpress
rm index.html

Step 6: Edit WP-Config.php file

mv wp-config-sample.php wp-config.php
nano wp-config.php

Save (Ctrl+O) and Exit (Ctrl+X)

SSH FileZilla Zip and UnZip Challenge

So learned through really hard experience that if one uploaded individual files of a script from a local  computer to a server with FileZilla that it creates a problem with the file permissions.  Previously, on shared hosting, I had used FileManager in cPanel to upload zipped scripts to the File Directory.  With VestaCP and Webuzo I’m using SSH with FileZilla instead.  Felt quite good about using it, until I realized that it was creating a problem with my WordPress script.  I’d get the white screen of death when I used it.

How I discovered this is that when I was using Webuzo CP a few days ago on another server, I used FileZilla to upload a WP script with individual files vs zipped.  I then received the white screen of death.  Later on I used the softaculous installer in WordPress to upload the script.  And it then worked perfect. At the time I concluded Webuzo was the problem.  Then more recently when I started a new server with VestaCP exactly the same thing happened.  I tried to upload an unzipped WP script with FileZilla SSH and the very same thing happened.  White screen of death.  This time round I installed WordPress using the command line. And it worked. Refer my post about how to install WordPress with using the command line.

So now we have a nice challenge on hand.  How to zip and unzip files while using FileZilla OR where can one find a free FTP client that has a zip and unzip capability?  I’ve done extensive searches and found nothing so far.  Think I may now explore the possibility of adding a File Manager of VestaCP instead.  Only negative of course is that the script is paid.  I’ll check also with Webuzo whether the FileManager has a Zip and Unzip tool.

VestaCP 502 Bad Gateway!

So this was an interesting experience.  I’d been away from too long.  Then tried to get VestaCP up and it came up with this error:

502 Bad Gateway

This was a completely new experience to me.  My WP site worked.  Even my phpmyadmin worked, but I couldn’t get the VestCP login to work.

So I went to the VestaCP Forum – and posted my problem.  Then started searching on it, and found the solution quite easy:

service vesta restart

This is the thread that sorted it out for me – Imperio to the rescue!

VESTA Forum – Imperio to the Rescue

The VestaCP Forum is  a great source of documentation for VestaCP and it really works. Plenty of solutions there and looks as though this Nginx problem is one that is quite common. Glad it got resolved!