I just recently moved from a shared host to a VPS. My shared hosting plan runs out on the 10th and I have been having issues with them for awhile now so had to move. I was going to go with another shared hosting plan but found a really good deal here: http://cloudatcost.com/
Whats great about shared hosts is everything is setup for you. All you need to do is upload your site. It's good in that way but you are limited on what you can do with it. You have no options to be able to install what you like on it and you are stuck with what they give you. Sometimes very dated software that isn't secure anymore.
Most people like the idea of a VPS but are scared of the idea of setting one up, but with this guide I will make it very simple.
To start with install Ubuntu 12.04. Once it's installed use this to login. Replacing "IP" with the server IP.
then enter your password. To change the password run:
Next run this:
Next thing to do is install Zpanel.
The script is pretty straightforward. Just make sure you pick Phoenix/Arizona/Mountain Standard Time so you don't have issues with daylight saving.
Once the script finishes do not reboot (but make note of passwords).
Next we are going to install Memcached. This will greatly improve the speed of your websites and can be used with Wordpress with the W3 Total Cache plugin and forum software like MyBB.
The next part is to edit the php.ini.
Change these values to what you want them. If you are going to use phpMyAdmin to upload a database make sure upload_max_filesize is larger than your database:
memory_limit should be about quarter of your total memory. So if your server has 1GB give it 256M, for 512M give it 128M.
F3 will save the file and Ctrl+X will exit nano.
Next update the kernel to the latest version:
Once installed just type reboot to reboot.
Once rebooted run this to remove unused kernels.
Then this to clean out the downloaded packages:
Next enable all the Apache modules:
Then reboot Apache.
To repair Webalizer Stats not working in Zpanel run:
and replace the 10th line:
With:
That should be it. You should have a server setup so you can run any website and easily manage it with Zpanel.
For my guide on how to speed up a website look here: http://forum.pinguyos.com/Thread-How-to-...-a-Website
Whats great about shared hosts is everything is setup for you. All you need to do is upload your site. It's good in that way but you are limited on what you can do with it. You have no options to be able to install what you like on it and you are stuck with what they give you. Sometimes very dated software that isn't secure anymore.
Most people like the idea of a VPS but are scared of the idea of setting one up, but with this guide I will make it very simple.
To start with install Ubuntu 12.04. Once it's installed use this to login. Replacing "IP" with the server IP.
Code:
ssh -l root "IP"
then enter your password. To change the password run:
Code:
passwd
Next run this:
Code:
apt-get install sudo
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install zend-framework zram-config preload
Next thing to do is install Zpanel.
The script is pretty straightforward. Just make sure you pick Phoenix/Arizona/Mountain Standard Time so you don't have issues with daylight saving.
Code:
wget https://raw.github.com/zpanel/installers/master/install/Ubuntu-12_04/10_1_1.sh
chmod +x 10_1_1.sh
sudo ./10_1_1.sh
Once the script finishes do not reboot (but make note of passwords).
Next we are going to install Memcached. This will greatly improve the speed of your websites and can be used with Wordpress with the W3 Total Cache plugin and forum software like MyBB.
Code:
sudo apt-get install memcached php-pear build-essential mysql-server php5-mysql php5 php5-memcache php5-dev
sudo pecl install memcache
echo "extension=memcache.so" | sudo tee /etc/php5/conf.d/memcache.ini
The next part is to edit the php.ini.
Code:
sudo nano /etc/php5/apache2/php.ini
Change these values to what you want them. If you are going to use phpMyAdmin to upload a database make sure upload_max_filesize is larger than your database:
Code:
post_max_size = 8M
upload_max_filesize = 2M
memory_limit = 64M
F3 will save the file and Ctrl+X will exit nano.
Next update the kernel to the latest version:
Code:
sudo apt-get install linux-headers-generic-lts-trusty linux-image-generic-lts-trusty linux-generic-lts-trusty
Once installed just type reboot to reboot.
Code:
reboot
Once rebooted run this to remove unused kernels.
Code:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
Then this to clean out the downloaded packages:
Code:
sudo apt-get clean
Next enable all the Apache modules:
Code:
a2enmod actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex bw cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias
Then reboot Apache.
Code:
service apache2 restart
To repair Webalizer Stats not working in Zpanel run:
Code:
sudo nano /etc/zpanel/panel/modules/webalizer_stats/module.zpm
and replace the 10th line:
Code:
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ Description @></div>
With:
Code:
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>
That should be it. You should have a server setup so you can run any website and easily manage it with Zpanel.
For my guide on how to speed up a website look here: http://forum.pinguyos.com/Thread-How-to-...-a-Website