Quantcast
Channel: ServerMom
Viewing all 159 articles
Browse latest View live

How to Install WordPress on Vesta CP

$
0
0

So here it is a step-by-step tutorial on how to install WordPress on VPS with Vesta CP, a great free control panel for every VPS that demands a free version of WHM/cPanel. I won’t talk much more detail about what Vesta CP is and what features this panel has it. But as a refresh, Vesta CP is shortly an open source hosting control panel offering easy focused web interface with main purpose is to improve the ergonomics of the control panel by reducing unnecessary movements and operations. The best part of Vesta CP that I really like is its simple two lines of command for installing it.

For your information, I tried this guide on CentOS 6.5 64-bit but I believe this also works on any Linux distro Vesta CP supports like Ubuntu and Debian.

1. Installing Vesta CP

Step 1 – Login to your VPS as root.

Step 2 – Remove apache2/httpd if any.

service httpd stop
yum remove httpd -y
yum clean all

Debian and Ubuntu please adjust the command above. You can use apt-get and apache2.

Step 3 – Download Vesta CP installer script:

curl -O http://vestacp.com/pub/vst-install.sh

Step 4 – Now issue this command to start installing:

bash vst-install.sh

Step 5 – Follow on-screen instruction and once done, you’ll see your login detail (username and password)

Where are the pics? You can find detailed information and pics at my previous post about how to install Vesta CP.

2. Basic Vesta CP Setup

Step 1 – Open up your favorite web browser and login to your Vesta CP page at:

https://vps-ip-address:8083

Step 2 – Once logged in, you may firstly perform some basic Vesta CP setups like changing your default admin password, adjusting hosting package configurations, and so on.

Please also refer to my previous post.

3. Adding New Website

Or should I say “adding new domain?”

Step 1 – In Vesta CP click on the WEB menu.

Step 2 – Now add our new website by clicking “Add Web Domain” button.

Step 3 – Then enter your domain name there. You can also assign custom IP address (if your vps has more than one IPs). For this tutorial I use servermomtest.com as an example:

2014-05-08_140712

Step 4 – Optional, you may also click the Advanced Options link if you wish to change some advanced configurations including Aliases, will you use Nginx or not, etc.

Step 5 – Finally click the “Add” button.

Step 6 – Click the big DNS menu in Vesta’s main navigation. From there, edit your DNS entries as necessary (if any).

Step 7 – Next, do not forget to also create your database and login credential. Your newly created MYSQL username and database name will have prefix which is your username. For example if your username is admin then your database name will be admin_databasename and so with your MYSQL username (e.g: admin_dbuser). In this tutorial I will create a database called admin_dbtest and MYSQL username called admin_dbusrtest.

2014-05-08_102957

Step 8 – That’s it

For more detailed information with pics please refer to my previous post.

4. Downloading Latest WordPress Package

Step 1 – Login to your vps back via SSH (Putty/Terminal) as root

Step 2 – Go to web directory (public_html folder) of your newly added domain in Vesta CP (Part 3 step 3 above). Where’s the web / publc_html directory located at Vesta CP? It is at:

/home/username/web/domain.tld/public_html/

So in my example it’ll be:

/home/admin/web/servermomtest.com/public_html/

Use cd to navigate there:

cd /home/admin/web/servermomtest.com/public_html/

2014-05-08_141542

Step 3 – Now download WordPress using wget command:

wget http://wordpress.org/latest.zip

2014-05-08_141838

Step 4 – Now extract latest.zip:

unzip latest.zip

2014-05-08_142022

Step 5 – Now all WordPress files have been extracted but it is in a single folder called wordpress. Now we need to move those files up:

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

2014-05-08_142715

Step 6 – Remove empty wordpress folder and unused index.html file

rmdir wordpress
rm index.html

2014-05-08_142856

Step 7 – Now edit wp-config.php file to adjust your database settings:

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

2014-05-08_143238

Step 8 – Now you can adjust all values in //** MySQL Settings…..

2014-05-08_143849

Once done editing, save it (Control+O) then exit the editor (Control+X)

Step 9 – Open up your favorite browser and open your blog for the very first time and you’ll see WordPress Installation Wizard. That’s it. From here on you should already knew how to process.

2014-05-08_144634

Just fill all required forms and hit the Install WordPress button.

That’s it. You can now login to administration dashboard page of your newly installed -shinny new- WordPress blog. Enjoy..

This post How to Install WordPress on Vesta CP is part of ServerMom.


Download Official ServerMom Android App

$
0
0

Finally I’d uploaded official Android app of ServerMom.org to Google Play Store and glad it is now officially listed and available for public download. The main purpose I created the Android app is of course to make a native app version of this beloved blog so my loyal readers (that have Android devices) can directly read new articles and get updated faster. The best part, Servermom is now more mobile-friendly and always available in readers’ pocket or bag via their smartphones or tablets.

servermomandroidappui

Key Features:

  1. Compatible with many Android devices, phone and tablet.
  2. Very lightweight
  3. User-friendly interface
  4. Auto notifications of new articles
  5. All latest articles of Servermom.org
  6. All new VPS deals available on the world web from your favorite sources like WebHostingTalk and LowEndTalk making it easy to shop low end boxes.
  7. Fetch article once and you can read it anytime, even when offline.
  8. 100% FREE and no in-app purchase.

Do you have an Android device? So go ahead give it a shot and tell me what do you think.

Update: My app has been removed due my friend’s Dev account was banned from Play Store. Uploaded to Box.net, download it now:

download

https://app.box.com/servermomapp

This post Download Official ServerMom Android App is part of ServerMom.

How to Upgrade PHP 5.3.x to 5.4.x or 5.5.x on CentOS

$
0
0

A guide to successfully upgrade PHP version from 5.3.x to 5.4.x or 5.5.x on CentOS using yum command (CLI). Tutorial with pics suitable for beginners. For your information, many default LAMP stack installations come with PHP v5.3.x as it’s known as most stable version (and it has reached end of life after getting last update). But recently, many want to upgrade to 5.4 which is known as newest stable version (with minimal memory footprint) or 5.5 which is known as bleeding-edge newest version.

Should I Upgrade to Latest PHP Version?

Newer is not always better (or faster) but newer version always offers new features, improvements and enhancements which are not always available in its old version. But again, even loaded with all those new stuff, it is not always better than its old one. So, which one is you?

I want to experience with latest newest features? Upgrade to 5.5.x

I want the most stable performance? Upgrade to 5.4.x

I want the stable version that’s always compatible with many PHP scripts? Stick with 5.3.x

According to this blog, PHP 5.3 is a bit faster than 5.4 and 5.5 (approximately 7% faster than 5.4). But, from version 5.4 and upwards, the memory consumption has dropped significantly. The benchmark was done with a conclusion that PHP version 5.4 and 5.5 are practically the same with regards to speed and memory consumption. So the decision is yours.

How to Upgrade on CentOS?

This tutorial was performed on CentOS 6.5 x86 (32-bit) vps.

What you’ll need:

  1. Proper knowledge to use Putty or Terminal
  2. Basic SSH command ability
  3. LAMP Stack (or at least Apache and PHP 5.3 are installed)

Step 1 – Login to your server via Command Line (Putty or Terminal)

Step 2 – Add EPEL and Remi repositories onto your system:

On CentOS 6.x 32-bit

wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

On CentOS 6.x x86_64 (64-bit)

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

screenshot:

upgrade-php-centos-1

Step 3 – Now enable your newly added Remi repo. Open the /etc/yum.repos.d/remi.repo repository file using a text editor of your choice – I use Nano:

nano /etc/yum.repos.d/remi.repo

Step 4 – Edit enabled=0 line to enabled=1:

4.a – Update to PHP 5.4, in [remi] section:

upgrade-php-centos-4

4.b – Update to PHP 5.5, in [remi-php55] section:

upgrade-php-centos-4b

4.c – Bonus – Update to PHP 5.6 (beta version), in [remi-php56] section:

upgrade-php-centos-4c

once done, Save changes (Control+O) and exit (Control+X)

Step 5 – Now update yum:

yum update -y

upgrade-php-centos-5

Step 6 – Done. Now you can check using this command:

php -v

In this example I got:

PHP 5.4.28

upgrade-php54-centos

PHP 5.5.12

upgrade-php55-centos

PHP 5.6.0 Beta 2

upgrade-php56-centos

Now you can test your PHP script on your browser and hope everything still runs smoothly.

Preventing The Mess

You may have to edit old httpd.conf and php.conf (if your srcipt went messed up).

Step 1 – Make backup of php.conf file:

mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.bak

Step 2 – Then edit httpd.conf  file:

nano /etc/httpd/conf/httpd.conf

Step 3 – You have to find every line with php_ in it, and remove it (or simply add #). If you have found out that there is at least one line per domain, so be sure to remove them all. Once done, save and exit.

Step 4 – Finally restart httpd service (Apache):

service httpd restart

Also, you may also want to upgrade MySQL using this command:

mysql_upgrade -u root -p

That’s it. Do not forget to follow me on Twitter @serveromdotcom or download ServerMom’s official Android app to get faster information update. adiós!

This post How to Upgrade PHP 5.3.x to 5.4.x or 5.5.x on CentOS is part of ServerMom.

$7/year INIZ 128MB RAM VPS

$
0
0

iniz vps provider

Iniz is one of my favorite VPS hosting providers because they are solid, have stable nodes, fast and they are really a pro. Currently, they are running special promo offering a 128MB RAM vps for as low as $7 per year and you’ll get a box with 128MB RAM, 64MB vSWAP, 10GB Disk space, 250GB bandwidth and 1 IPv4. Order link is here. This offer is available at both New York and Los Angeles.

Need more? It’s 256MB-version of the promo is available for $14/year and you’ll get a box with 20GB disk space and 500GB bandwidth available here. Read my short review about Iniz here.

This post $7/year INIZ 128MB RAM VPS is part of ServerMom.

$24/yr 512MB RAM Cloud VPS @ ArmorShark

$
0
0

Need some kind DigitalOcean alternative? Meet ArmorShark, another cloud server provider powered with Openstack technology. The provider claims that ArmorShark is the one of the first deploying this kind of infrastructure within low end box pricing. Every new server will be deployed on new hardware built with Intel Xeon E3-1245v2 CPU and SSDs in RAID10.

armorshark

PHO 512 VPS Plan:

  • 2 CPU cores
  • 512MB RAM
  • 20GB SSD space
  • 1TB bandwidth
  • 1Gbps uplink
  • 1x IPv4 address
  • KVM/Custom (Openstack based)
  • Coupon: LETBOOM
  • $4/month
  • $24/year
  • Order here

This offer was found at LowEndBox.

This post $24/yr 512MB RAM Cloud VPS @ ArmorShark is part of ServerMom.

$5/yr RIJX 128MB RAM VPS

$
0
0

Another interesting VPS offer is coming from RIJX, an Australia-based VPS provider aims to provide quality hosting services at extremely low prices, giving clients good value for money. They claims owning all their hardware, network gear & IPs ensuring costs are low and this is passed onto their clients, of course. They also have spent a lot of time building a nice custom panel with clients in mind. All nodes run on server grade HP & SuperMicro hardware with enterprise Seagate SAS drives and high end RAID Cards in RAID10 arrays with Flash caching for data protection in case of power loss.

rijx

Steal Deal:

  • OpenVZ
  • 128MB RAM
  • 64MB vSWAP
  • 10GB Storage
  • 250GB bandwidth
  • 2 usable IPV4
  • Only $5/year
  • Location: Los ANgeles (LA) @ Equinix DC
  • Order here.

They use a diverse range of Tier 1 providers with over 200+Gbps of transit and 100Gbps of local peering thru Any2Exchange and Equinix LA peering fabrics. Through CoreSite’s Any2Exchange VPLS has established numerous peers with over 300,000 combined routes or one third of the Internet routes.

This post $5/yr RIJX 128MB RAM VPS is part of ServerMom.

$11/yr DDOS-Protected 128MB Phase7 VPS

$
0
0

Commonly DDOS Protection service is usually offered as additional addon with of course additional charge. If not, the main price of that server should be not cheap. But then comes Phase7, a VPS provider which now offering cheap VPS starting at $11/year for OpenVZ box with 128MB RAM, 128 burstable RAM, 1x 3GHz CPU, 1 IPv4, plus Antiddos included.

phase7

15GB Space
Unlimited Bandwidth
128MB RAM
256MB Burstable RAM
3.0 GHz CPU
1 IPv4 Address
Uplink 1GB
OpenVZ – SolusVM
Antiddos
$11/Year – Order Link

Want more addon/resources?

  • 1$ per IP, Maximum 2000IP /Mo
  • Additional 1 Core 5$ /Mo
  • 10 GB Storage 2$ /Mo

Node info:

Xeon E31240 @ 3.30 GHz Quad Core Processors
CentOS 6.2 Enterprise Linux x86_64
32 GB DDR# RAM

Server seems located at Romania.

This post $11/yr DDOS-Protected 128MB Phase7 VPS is part of ServerMom.

42% Off RamNode Lifetime Discount Coupon Code

$
0
0

Looking for big discounted price to buy a VPS from RamNode? Here it is valid coupon code for April 2014 allows you to get 42% OFF lifetime / recurring. The coupon is TWOYEAR which is only valid for new product orders / upgrades which means you can’t use it for renewal. Can old RamNode’s customers use it? Obviously, as long as you/they are one of RamNode’s happy customers.

The 42% off lifetime promo is valid for limited time only. The TWOYEAR coupon is released to celebrate their 2nd anniversary as well as for the opening of their New York location.

For your information, RamNode is one of my favorite VPS providers. They have solid nodes, fast disk I/O, fast network speed, great uptime and solid customer support. Their node servers are located at 4 (four) locations: New York City – US, Atlanta – US, Seattle – US and Netherlands. Each VPS comes with the following features:

  • SolusVM control panel
  • 1Gbps fair share port speed
  • Automated backups
  • Free DNS hosting
  • INSTANT setup
  • Optional DDoS protection for ALL locations

In case if above coupon code won’t work, you can also use RN25OFF to get 25% Off lifetime and SB31 to get 31% OFF lifetime discount.

Do you one of RamNode’s happy customers? Yes I am.

This post 42% Off RamNode Lifetime Discount Coupon Code is part of ServerMom.


How to Build a VPS on Vultr

$
0
0

In this article I will not comparing Vultr vs DigitalOcean but simply giving short introduction (or may be review) about what Vultr.com is and what do they offer.

Meet Vultr! a cloud-like VPS hosting provider by Choopa. Its main virtualization technology is KVM and all their node servers are using SSD. The same as DigitalOcean. In fact, many says Vultr is just a copy of DigitalOcean by different company. Even its main web design is similar to old DO’s website.

The main part that makes me feel interested (besides it is new) is its competitive price. Its smallest plan is purchase-able at $5/month, the same as DO but Vultr offers bigger RAM (768MB). Also, while DO currently offer servers at 3 (three) different locations (US, Netherland, and Singapore), Vultr offer wider location including 6 locations in US, 1 in Netherland, 1 in UK, 1 in France, 1 in Australia, 1 in Japan and 1 in Germany.

vultr-location

Obviously that’s a plus one of Vultr while its competitors do not offer (including DO).

Vultr currently provides various .ISO image to boot your VPS to (or install on). Couldn’t find your favorite OS? Users of Vultr are also allowed to boot from Custom .ISO which can be uploaded via its remote upload interface with 5GB max file size.

vultr-iso

Even the price is monthly but its billing mechanism is hourly billing which means you’ll only pay as you go or pay only for the time you use and cancel any time. That’s just the same as DigitalOcean and like many other cloud providers.

How to Create a VPS on Vultr?

Your VPS in Vultr is called an Instance, the one that in DigitalOcean called a Droplet.

Building an instance (or a vps) is pretty easy. First, create an account at Vultr.com. Simply enter your email address and password. Once done, login to your account!

Step 1 – Obviously you’ll need to add fund in your account credit (balance). Simply click the billing tab and choose Paypal or Credit Card to make your payment. The last time I check they still run a promo offering double your balance for up to $100. For example, if you add $100 to your account it will be doubled so you’ll have $200 in your balance.

vultr-billing

Step 2 – Click on the Deploy tab.

Step 3 – Choose your server type: PERFORMANCE or LARGE STORAGE. Seeing its information you’ll exactly know what’s the difference among them.

vultr-servertype

Step 4 – Next, choose in which location you’ll deploy your server to.

vultr-choselocation

Step 5 – Do not also forget to choose the Operating System (OS) to run it on your deployed server:

vultr-choose-os

Step 6 – In the Server Size section, it is the place where you can choose how powerful your server’s specification will be. You can pick up to 8GB RAM, 4 CPU power, 120GB SSD and 5TB bandwidth.

vultr-server-spec

Step 7 – Once done, hit the big blue Deploy button.

Step 8 – You’ll be redirected to the My Servers page and you’ll see the success message there. Unlike DO, you’ll see no progress bar but just the action status.

vultr-pending-vps

It should be created within a minute.

Step 9 – Refresh that page and you should now see a green “running” text under the Status column. It means your server is ready to use.

vultr-running-instance

Step 10 – Next, grab your root password in the Instance’s management page. Simply click the “Manage” link for that instance (the link under Actions section).

vultr-detail-page

As you can see in that page you’ll find basic information of your server including Location, OS and Main IP Address. In the Server Info page you can also see your root password.

That’s it. Now you can bring up Putty or Terminal in your local PC and connect to your server via SSH at port 22 (default) using given IP address and given root password.

p.s: In that page you can also do some basic management tasks like to Stop, Reboot, Reinstall, Change OS and Destroy your vps.

Vultr VPS Review

Here it is my result of some basic benchmarking test on a Vultr instance.

Instance Specifications:

  • RAM : 768MB
  • CPU : 1 CPU
  • Storage: 15GB SSD
  • bandwidth: 1TB
  • Price : $0.007/hr or $5/month

FreeVPS.us Simple Benchmark Test

Script used:

wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash

This simple benchmark test script will scan for server specs like number of CPU cores, CPU frequency, total amount of RAM, SWAP and current system uptime. Once the scanning done and the result displayed, the benchmark script will test server’s Internet speed by downloading some test files from several location spread around the world from US, Japan, Netherland, and Singapore. Also, it will perform a simple DD test to find out current I/O speed. And my result is:

vultr-freevps-test

As you can see from the result above, the I/O speed is great even not as fast as RamNode. Also, the download speed is fast from major US region

ServerBear Complete Benchmark Test

I use ServerBear’s benchmark script to perform more complete benchmarking test:

wget -N https://raw.github.com/Crowd9/Benchmark/master/sb.sh&&bash sb.sh '10159' '2419' 'tisbi@acentri.com' ''

This script will Download and install packages to run UnixBench; Download and run UnixBench; and Upload to ServerBear the UnixBench output and information about this computer.

vultr-sb-test2

You can see the result here:
http://serverbear.com/benchmark/2014/05/31/FCXINJb47ZZZHp4s

vultr-serverbear-768

vultr-serverbear-768-dd

You can also view all submitted benchmark results at ServerBear. If you go to that page you’ll see the best ever Unixbench score is 4120.8 and the worst ever is 1082.9. That’s great.

F.A.Q

It is such a lame tutorial. Why did you write it?

Not everyone is as great as you and I already tagged this post as “basic”. So if you still feel this post is lame, then please do not read basic tutorials and search for advanced ones out there. I believe many newbie will feel helpful.

Besides, at the time of writing I found Vultr have not so many articles in there community knowledge base (unlike DO).

Vultr vs DigitalOcean, which one you prefer?

Me? I believe putting mission critical app will be better at DigitalOcean as it is older (and bigger) company running such service, I believe. However in terms of performance, both of them are great. It’s just a matter of budget then.

Between 1 to 10, how you rate Vultr?

It’s 8/10, may be.

That’s all. Do not forget to follow me on twitter at @servermomdotcom or download my official Android app here.

This post How to Build a VPS on Vultr is part of ServerMom.

$25/year 2.5GB RAM VPS @ 123Systems

$
0
0

This may sound unbelievable but there is a VPS you can buy for as low as $25 per year. That’s insane isn’t it? 123Systems.net currently running promos offering a 2.5GB RAM VPS with 2.5GB Swap, 3 vCPU Cores, 75GB Disk space, 2TB monthly bandwidth @ 1Gbps uplink and 1 IPv4. This offer is located at their Chicago and Los Angeles node. Order link.

Other running promos:

2GB OpenVZ

  • 2GB RAM
  • 2GB vSwap
  • 4 CPU cores
  • 35GB disk space
  • 3TB bandwidth
  • 1Gbps uplink
  • 1x IPv4 address
  • OpenVZ/SolusVM
  • All locations
  • $5/month – Order
  • $30/year – Order

256MB OpenVZ

  • 256MB RAM
  • 256MB Swap
  • 2 CPU cores
  • 10GB disk space
  • 500GB bandwidth
  • 1Gbps uplink
  • 1x IPv4 address
  • OpenVZ/SolusVM
  • All locations
  • $9/year – Order

512MB OpenVZ

  • 512MB RAM
  • 512MB vSwap
  • 2 CPU cores
  • 20GB Disk
  • 1TB Bandwidth
  • 1Gbps uplink
  • 1x IPv4 address
  • OpenVZ/SolusVM
  • All locations
  • $14/year – Order

Please don’t ask me is this VPS is good or not but the deal is just too good.

This post $25/year 2.5GB RAM VPS @ 123Systems is part of ServerMom.

15+ Low End Cloud Server Providers

$
0
0

In this article you’ll see 15+ cloud server providers offering cloud vps at low end price range (or shortly saying: affordable). I’ve collected what I can find during my searching so the list will not stop here.  You can add another provider if you know one that is not in my list. The main criteria is it must have at least a plan priced under $10. p.s: So you will not see Linode in my list (I just hate the fact they don’t accept PayPal yet).

The list below is not in ranking order, provider listed #1 doesn’t mean better than provider listed #5 and vice versa and so on and so on. As usual, lets start the list with my favorite provider, Digital Ocean.

#1 – Digital Ocean

digitalocean-plans

This my favorite provider. Many says that DO is not purely cloud but KVM-based Cloud-like environment. But for me, they do offer cloud-like experience. I like the progress bar when creating a droplet (they call your vps as droplet) that will finish under 1 minute. Current lowestplan they offer is 512MB RAM, 1 Core CPU, 20GB SSD and 1TB bandwidth for $5/month or $0.007/hour. You pay only for what and how long you use your droplet (billed hourly). Their servers location currently located at US, EU and Asia (Singapore). Visit Digital Ocean.

#2 – iwStack

iwstack

Also comes with hourly billing model, iwStack is a cloud server service provided by Prometeus. They provide a flexible and powerful cloud platform ideal to test and deploy simple or complex virtual infrastructure. The technology they are using like KVM-based virtualization, Fiber Channel Hitachi HUS 150 SAN Storage, Virtual router: firewall, vpn, load balancer, etc. The cloud technology is powered with CloudStack. Customers will also get FREE incoming bandwidth and FREE Anycast DNS. Cheaper plan they offer is an instance with 384MB RAM, 1 vCPU core, 1TB bandwidth € 1.44/month or € 0.002/hour. Storage is billed separately and customers can choose to use SAN (€0.072/GB/month), low cost storage and secondary NFS storage. Visit iwStack.

#3 – Vultr

vultr-front

A new kid on the block. Many say it’s just a copy of DigitalOcean but Vultr comes with cheaper price for similar DO’s specs. They offer 768MB RAM, 1 CPU core, 15GB SSD and 1TB bandwidth for $5/month or $0.007/hour (at DO you’ll get 512MB RAM and 20Gb SSD). Also, Vultr offers more location options to choose. Currently there are 12 datacenters worldwide (6 in US, 1 in Australia, 1 in Japan, 1 in German, 1 in Netherland, 1 in France and 1 in UK). Their infrastructures are using KVM-based virtualization. Visit Vultr.

#4 – Wable

wable

The cheapest cloud-like provider I’ve ever seen. Unlike many others, Wable (pronounced as Way-Bull) is using OpenVZ for its virtualization technology instead of KVM. They say their enterprise hardware utilizing Intel Xeon processors, ECC RAM, and high speed highly redundant SSD RAID storage arrays (but their cheapest plan comes with traditional HDD). Their cheapest plan offers 512MB RAM, 1 vCPU, 10GB HDD, 1TB bandwidth and 3 ipv4 for only $0.75/month. Their nodes located at Dallas, TX and Seattle, WA. Visit Wable.

#5 – Ubiquity Cloud

ubiquitycloud

Ubiquity cloud service offers a rapidly deploy infrastructure, scalable on demand, pay for what you need. Customers can deploy cloud in one of the following metros: Atlanta, Chicago, Dallas, Los Angeles, New York and Seattle. All of their cloud server plans come standard with SSD-based RAID-10 arrays, ensuring maximum input/output operations with increased data resiliency and performance from content mirroring and striping. Their cheapest plan is an instance with 512MB RAM, 1 core processor, 15GB SSD and 1TB bandwidth for only $4/month. They are confident enough to call their infrastructure is built for mission critical. Visit Ubiquity Hosting Cloud.

#6 – SimplerCloud

simplercloud

Their service sounds good but the cheapest plan is really at the edge of my “low end” limit, $10. Hosted in a Tier-3 Singapore data center, SimplerCloud offers instant, fast, self-manageable Linux and Windows root cloud or virtual private servers for start-ups, small-to-medium businesses and Internet application companies and web developers that want better, faster cloud hosting technology that is simple, easy to use, and real-time. Cheapest plan is a Serverlet with 1GB RAM, 20GB SSD, 1 core CPU and 1 TB bandwidth for $10/month. Visit SimplerCloud.

#7 – Vexxhost Cloud

vexxhost

Vexxhost is now offering simpler cloud server. According to their tagline, users can get their cloud sever setup in 30 seconds which is faster than DigitalOcean. Their cheapest plan is purchasable for $5/month and you’ll get an instance with 2 vCPU cores, 512MB RAM, 20GB fast I/O SSD, and 2 TB bandwidth. I suspect the price is promotional only as it says originally $10/month. Visit Vexxhost Cloud.

#8 – Quadranet Cloud

quadranet-cloud

One of well-known datacenter and colocation provider Quadranet starts offering cloud servers called Infracloud. With its tagline “Leverage the power of a hundred CPUs at the touch of single button” Quadranet’s infracloud is powered with blazing fast read/write speeds SSD. Available cheapest plan is an instance with 512MB RAM, 15GB SSD, 1 vCore @ 2GHz and 2 TB bandwidth for $5.81/month ot $0.0079/hour. Visit Quadranet Infracloud.

#9 – Atlantic.net Cloud

atlantic

Atlantic.net offers instant cloud server deployable in 30 seconds. Just like many others, their service also makes use of fast SSD storage platform. They designed this cloud server service to provide maximum scalability, flexibility, efficiency, and productivity when users need it. Their cheapest plan is an instance with 256MB RAM, 1 vCPU core, 10GB SSD and 1 TB bandwidth for only $3.65/month or $0.005/hour. Visit Atlantic.net Cloud.

#10 – PhotonVPS

photonvps

This one offer a plus service along with the SSD cloud server offered. The plus one here is free 1Gbps DDOS protection on all plans. The smallest plan is available at $5.95 for a VPS with 512MB RAM, 10GB SSD, and 2TB bandwidth. Visit PhotonVPS.

#11 – Elastichosts

elastichosts

They offer few different cloud services: Elastic, VM and Managed Cloud. Smallest plan is available at $5.23/month. Visit Elastichosts.

#12 – Togglebox

togglebox

The price is a little bit hurting me, its $10/month for 512MB RAM, 10GB storage and 10TB bandwidth. Visit Togglebox.

#13 – Armorshark

armorshark

Their infrastructure is powered with OpenStack for their custom cloud computing platform. Spin up unlimited SSD cloud servers on-demand. Cheapest plan: 512MB RAM, 2 CPU cores, 20Gb SSD RAID10 and 1Tb bandwidth for $5/month. Visit Armorshark.

#14 – Dedispec Cloud

dedispec

Currently our Cloud Servers are available in New York. All Cloud Servers are housed on the latest Intel Xeon prcoessors, utilizing a minimum of two Hex Core processors in each KVM-based hypervisor with DDR3 ECC RAM. Their Cloud Servers are connected at an incredible 20Gbps to our distributed storage area network, powered by Intel 520 series SSDs. Cheapest plan: 512Mb RAM, 1 vCPU, 15GB SSD and 1TB bandwidth for only $7/month. Visit Dedispec Cloud.

#15 – ServGrid

servgrid

An SSD cloud KVM service with Free hosted DNS managemement and consistent virtual firewall security for early detection, constant protection and failover. Smallest plan comes with 512MB RAM, 1 CPU core, 10GB SSD and 250GB bandwidth for only $8,99/month ($6.29/m with coupon code WHT). Visit ServGrid.

#16 – Frontrange Hosting Cloud

frontrange-cloud

KVM Cloud-like server from Frontrange Hosting. Cheapest plan is a vps with 512MB RAM, 2 vCPU, 20GB Disk, 1TB bandwidth for $8/month. Visit Frontrangehosting.

#17 – Forthcloud

forthcloud

If you have been looking for the best cloud servers on which to host your website, look at their packages. Starting at $5/month, they claim their servers have 160-640% faster performance with average deploy time < 55 seconds. Visit Forthcloud.

#18 – MNX.io

mnxio

New cloud-like server provider offering hourly billing. Smallest plan starts at $6 for a vps with 1 CPU, 512MB RAM and 5GB SSD. Visit MNX.io.

#19 – Dedify

dedify

DedifyStack is a full featured Private Cloud based on CloudStack as Orchestration Manager and XenServer with shared SAN as storage. This means you have not only a VPS or a Fake Cloud Instance, DedifyStack also offers you a full hourly billing for your used resources based on a prepaid billing model. Their cheapest cloudvm is 3.60€/mo for 1 vCPU @ 500MHz, 10GB SSD  SAN, 1.4 TB bandwidth/month with free incoming bandwidth. Looking for low end cloud vps in Germany? Visit Dedify.

Which one is the best? You tell me.

This post 15+ Low End Cloud Server Providers is part of ServerMom.

How to Passwordless SSH Login

$
0
0

In this guide I’ll show you how to use key-based SSH login to your server / vps instead of using username and password. The tutorial covers Linux to Linux and Windows (PuTTy) to Linux. This adds more security to your server. As usual, this article includes some pictures (screenshot pics) to make everything as clear as crystal.

But first, meet SSH Key Pairs! Secure SHell (aka SSH) is not as secure as its name. Crackers who know your server’s IP can simply use advanced brute force tool to try login to your server using any possible password combination. I explained how to change your default username, password and SSH port (either for Ubuntu and CentOS) as part of basic and common security setup. But now you can bring that basic level to one level up by switching to passwordless SSH login using key pairs. Shortly, it is a method to access your server via SSH without entering any password.  The advantage, you don’t have to remember long yet complicated password plus avoiding brute force attack (even you can still use Fail2ban).

How does password-less SSH login work?

It works by simply comparing public key you share to and stored in remote server with private key stored in your local computer or another server you want to connect from. If the keys match, the SSH connection will be established without having to enter password. Obviously you have to firstly generate those private and public keys. This guide is about how to do that.

p.s: Just click on image to see its larger version in case it’s not displayed clearly.

Password-less Login: Linux to Linux

This section is aimed for Linux (and Mac) users that need no PuTTy to connect to a server / vps. Or, you may need this just in case if you want to allow login from one of your Linux VPS to another, e.g: to setup rsync to run automatically via cron job.

In this tutorial I use server 1 to connect it to  server 2 (remote server). Server 1 doesn’t have to be a server, it can also be a local computer running your favorite Linux Distro.

Step 1 – Login to server 1 as your favorite username. My server 1 is a playground vps hosted by Digital Ocean and in this example I loggin as root so all commands have no sudo prefix.

passwordless-step-1

Step 2 – Now lets generate a pair of public keys using following command:

ssh-keygen -t rsa

pic:

passwordless-step-2

As you may see above, simply leave all questions empty. Just hit Enter button on your keyboard several times till you see the key’s random art image.

Step 3 – Now login to server 2 (the remote server you want to password-less SSH login to) from inside server 1. You can login as a user or as root. In this example I’ll login as user called servermom. Use this command:

ssh username@xxx.xxx.xxx.xxx mkdir -p .ssh

or, if you’ve configured SSH to run on non default / standard port (other than 22) then use this instead:

ssh -p 21000 username@xxx.xxx.xxx.xxx mkdir -p .ssh

replace xxx.xxx.xxx.xxx with actual IP address of your server 2 and replace username with actual username. Also replace 21000 with actual port number of your SSH configuration.

pic:

passwordless-step-3a

What the command does is logging in plus creating new directory called .ssh in server 2. If asked (first time), type yes hit Enter and type in your password.

p.s: My server 2 here is hosted by HostHatch.

Step 4 – Next, exit from server 2 and back to server 1. Type:

exit

pic:

passwordless-step-4

Step 5- Now issue this command to copy generated public key to server 2.

cat .ssh/id_rsa.pub | ssh username@xxx.xxx.xxx.xxx 'cat >> .ssh/authorized_keys'

example:

passwordless-step-5

do not forget to enter you password and replace username and xxx.xxx.xxx.xxx with actual ones.

Step 6 – Do not also forget to set permissions on .ssh directory and authorized_keys file stored in server 2.

ssh username@xxx.xxx.xxx.xxx "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

in my case it’s seen like this:

passwordless-step-6

That’s all. You can now try SSH-ing to server 2 (remote vps) from server 1 (local computer or another vps).

ssh username@xxx.xxx.xxx.xxx

pic:

passwordless-step-7

This time you won’t be asked to enter password.

Password-less Login: Windows (via Putty) to Linux

This guide will make use of Putty to reach your Linux server / vps via SSH. First time using Putty? Read my previous article on where to download and how to use Putty.

Step 1 – Download additional software called PuTTYgen a.k.a PuTTY key generator from its official page here or from link below:

https://app.box.com/s/rvqly0vlr9gxtzie2g1t

Step 2 – Launch up Puttygen tool up. If you are on Windows 7 or upper version, right-click on it and select Run as Administrator.

puttygen

Step 3 – Normally, to create a new key, you have to select the parameters at the bottom that match your requirements. But however the default values will work great so for this example leave it as it is. The key point is make sure you select SSH-2 RSA because it is better and more secure than SSH-1 and SSH-2 DSA. You can also increase the value in “Number of bits in a generated key” from 2048 to 4096 for stronger key – make it harder to crack.

Now hit the Generate button.

puttygen-generate-2

When the progress is the phase like pic above, make sure you move your mouse over and over again to boost the generator.

Step 4 – Once done, you’ll see something like this:

puttygen-key

Step 5 – Login back to your server 2 (remote server / vps) and issue following lines of command:

mkdir -p .ssh
chmod 700 .ssh
nano .ssh/authorized_keys

pic:

create-ssh-dir

then copy the generated public key in PuttyGen:

copy-pub-key-1

and paste it in Nano editor:

copy-pub-key

Save and exit Nano by hitting Control+O then Control+X on your keyboard. Next, change its permission to 644:

chmod 644 .ssh/authorized_keys

pic:

chmod-auth-key

Step 6 – Now exit and go back to Puttygen. Next, you’ll need to save the Private Key and Public Key (to use later). Simply hit the appropiate buttons.

save-keys-2

Make sure you save Public Key as .txt while Private Key as .ppk.

public-key-save

private-key-saved

When saving Private key you’ll be asked to confirm saving without Passprhase, chose No.

Step 6 – Let’s configure Putty to use that newly generated key. So open it up and go to Connection > SSH > Auth.

putty-auth

Step 7 – Click the Browse button and locate the private key (.ppk) you’ve just saved.

private-key-choose

Step 8 – Now go back to main page on Putty and login as usual:

login-putty-passwordless

Step 9 – That’s it. Upon clicking the Open button Putty will logging you in without asking for password:

passwordless-ssh-login-putty

OPTIONAL – but important

Once you’ve followed steps above, you’ll be able to login either by using password or using ssh keys. However, you can also choose only 1 login method which in this case is SSH key-based login. Follow steps below to disable password-based SSH login:

Step 1 – Edit sshd config file using your favorite text editor:

nano /etc/ssh/sshd_config

Step 2 – Now look for this line:

#PermitRootLogin yes

or,

PermitRootLogin no

Step 3 – Change that to:

PermitRootLogin without-password

Step 4 – Save that file and exit (in Nano: Control+O, then Control+X).

That’s it.

Do not forget to follow me on twitter @servermomdotcom or download my official Android app to get faster update.

This post How to Passwordless SSH Login is part of ServerMom.

Complete Install Nginx Stack Under 15 Minutes On Ubuntu

$
0
0

This will show you how to install Nginx, PHP5 (fpm) with Zend OPCache, MySQL, PHPMyadmin, Postfix (and WordPress) on Ubuntu under 15 minutes. This is possible using EasyEngine tool from RTCamp.

What is Easy Engine? It is a nice little software (linux-shell script) to build a working web server to host your websites on an Ubuntu VPS (or Dedi server). The script will install complete LEMP / LNMP stack (Linux, Nginx, MySQL and PHP) along with all necessary softwares (like Postfix and PHPMyAdmin) so your VPS can act as a webhosting server.

Nginx is a better free alternative to Apache because its lightweight and RAM-friendly. It can perform better and faster than Apache, particularly when the number of concurrent site visitors is on the rise. The only downside of Nginx is that not many users familiar with Nginx because it has different DNA and anatomy compared to Apache. For instance, Nginx doesn’t support Apache’s .htaccess so users need to convert their htaccess content to nginx configuration.

So here comes EasyEngine (ee), a great script to uncomplicate what users think is complicated from Nginx. Shortly, ee is built to simplify the process of installing, configuring and managing Nginx (or full LNMP stack exactly) to host websites on Ubuntu server.

However, you can also read my previous tutorials about building Nginx server on Ubuntu if you wish to learn it from the very beginning.

Requirements

You’ll need:

  1. A VPS / Dedicated server with at least 256MB of RAM
  2. Fresh install of Ubuntu (12.04, 12.10, 13.10, 14.04) or Debian 6/7
  3. A dose of EasyEngine
  4. Basic knowledge of SSH command
  5. Basic knowledge to use Putty (Windows) or Terminal (Linux/Mac)
  6. A cup of coffee.

In this example I use Ubuntu 14.04 VPS with 512MB of RAM from XVMLabs. Need recommended VPS? Try checking out my list of recommended VPS or this 15+ top low end cloud vps providers.

Preparation

Step 1 – Login to your server as root. Use the details (IP address, ssh port and root password) given by your provider.

1-login-ubuntu-vps

Step 2 – Check if Apache is already installed and running. If so, stop it (or remove it):

service apache2 stop
apt-get remove apache2

pic:

2-stop-apache

In this example I removed postfix as well:

2-stop-postfix

Step 3 – Before proceeding, and if you are hesitating about your Ubuntu / Debian version, you can check it using this command syntax:

cat /etc/*-release

output example:

3-check-ubuntu-version

How to Install EasyEngine

Step 1 – Issue this main command to install EasyEngine on your VPS:

curl -sL rt.cx/ee | sudo bash

It should be finished in seconds:

1-install-easyengine

common problems:

curl command not found – Issue this command to fix:

apt-get install curl libcurl3 libcurl3-dev

unable to install bc –  Issue this command to fix:

apt-get install bc

install-bc

unable to install Git – Install git using this command:

install-git

Basic EasyEngine Configuration

So now you have EasyEngine installed, what next to do -before everything else- is to edit default ee‘s configuration. Use your favorite editor (mine is Nano):

nano /etc/easyengine/ee.conf

then edit necessary entries:

apt-get-assume-yes = false

Set to “true” if you want to avoid answering confirmation each time new software will be installed.

gpg-keys-fix= false

Set to “true” to fix GPG Key issue so easyengine can try another mirror and fetch the key

htpasswduser & htpasswdpass

leave it blnk if you don’t need it. This part is only needed if you want to password-protect the protected access control area (an area where you can manage easyengine). By default both username and password is easyengine.

ip_address

You can simply leave it blank if you work / frequently access your server from remote location. You can add your own IP address there to add more security layer by blocking access from IPs other than yours.

mysqlhost

Default is localhost but if you changed MYSQL to bind on your VPS IP (other than 127.0.0.1) than you can change it here. Otherwise leave it blank.

customdbname

easyengine create database automatically for wordpress as well as php/mysql sites where database-name is based on domain name provided. If you like to specify database name manually, set this value to true.

customdbuser

easyengine create a new mysql user automatically for wordpress as well as php/mysql sites where mysql username is based on domain name provided. If you like to specify mysql username manually, set this value to true.

wpdbprefix

If you want to change WordPress table prefix to something else than wp_, you can provide that string here.

wpadminuser

Default value is admin (if you leave it blank), you can change it to any name.

wpadminemail

EasyEngine prompts for email address at the time of installation. If you haven’t specified it correctly, you can change it to any valid email address. By default easyegine uses git config user.email as email address for default WordPress username (see wpadminuser above).

For more detailed information can be found here.

Example:

ee-config-1

ee-config-2

How to Install Nginx, PHP, MySQL, Postfix, phpMyAdmin

It’s time to install the main softwares: Nginx (web server), PHP, MySQL (database server), Postfix (mail server), and phpMyAdmin (database manager) and luckily with ee you can do that in one go using one simple line of command:

ee system install

pic:

install-nginx-ee-command2

Sit tight and wait for ee to install the whole LEMP/LNMP stack

2014-06-10_150318

In the middle of installation, EasyEngine will ask for HTTP authentication username and password. It is recommended that you specify this to something other than defaults, especially on production server:

install-nginx-ee-auth

Once done, you’ll see something like this:

easyengine-install-done

That’s it. Now you’ve installed complete Nginx stack (including latest version of PHP5 -fpm with ZendOPCache):

latest-php-zendopcache

You can check status of all running stack packages using following command:

ee system status

Sample output:

easyengine-status

What’s next? Creating your first website or setup a working WordPress site using this command:

ee site create example.com --wp

I will cover (with example) about that later in the next post Read: How to install WordPress under 5 minutes via EasyEngine. So, stay tuned! Do not forget to follow me on twitter @servermomdotcom or download my official Android app.

This post Complete Install Nginx Stack Under 15 Minutes On Ubuntu is part of ServerMom.

$9.87/year 1GB RAM SSD VPS XVMLABS Deal

$
0
0

This vps deal may sound too good to be true but trust me this is really a steal, a VPS with 512MB of RAM and 5GB fast SSD storage for only $2.87/year.

Meet XVMLABS, another sister brand of BandWagonHost (by IT7 Networks) that brings this steal deal comes true.

Each VPS will have following specs:

  1. 5 GB lightning-fast SSD in RAID-10
  2. 512 MB DDR3 ECC RAM
  3. 100 GB Bandwidth on GigE
  4. Platform: OpenVZ + KiwiVM
  5. 1 ipv4
  6. Datacenter at QuadraNet (Los Angeles)
  7. $2.87 per year. Now $4.87/year

How’s this possible? According to their official page, because this steal deal comes with no support, no refunds, no guarantees of any kind and the service is currently still experimental so users may expect some downtime. It means if you bought one, you’d better not use it as production server.

There is more, as what I can see in shopping cart, you can add 3 more extra ipv4 IPs for very cheap price.

However they also have very strict TOS like: No torrents, No TOR and open proxies, No hacking, malware, or attacks, Absolutely no mass mailing of any kind (including triple-opt-in superenterprise mail), and CPU intensive tasks will be auto-throttled.

So if you feel you can live with that, give it a try and order via this link.

vxmlabs-vps

Simple benchmark:

CPU model :  Intel(R) Xeon(R) CPU    X5650  @ 2.67GHz
Number of cores : 1
CPU frequency :  2666.734 MHz
Total amount of ram : 512 MB
Total amount of swap : 64 MB
System uptime :   2:11,
Download speed from CacheFly: 108MB/s
Download speed from Coloat, Atlanta GA: 26.2MB/s
Download speed from Softlayer, Dallas, TX: 63.8MB/s
Download speed from Linode, Tokyo, JP: 20.0MB/s
Download speed from i3d.net, Rotterdam, NL: 4.21MB/s
Download speed from Leaseweb, Haarlem, NL: 25.5MB/s
Download speed from Softlayer, Singapore: 11.3MB/s
Download speed from Softlayer, Seattle, WA: 72.3MB/s
Download speed from Softlayer, San Jose, CA: 96.7MB/s
Download speed from Softlayer, Washington, DC: 30.1MB/s
I/O speed :  691 MB/s

More few benchmarks:

http://serverbear.com/benchmark/2014/05/12/vWwl851Rn1mXbtZx

http://serverbear.com/benchmark/2014/05/12/wViwEsjQ2UNAsfIR

My own benchmark result:

xvmlabs-bench

UPDATE

On June 29, XVMLabs announced new VPS plan offering 1024MB DDR3 RAM, 15GB SSD in RAID-10, and 300GB bandwidth on GigE. The awesome part is that all of those for $9.87/year (with 1 ipv4) but you can add $0.16 to get 3 more IPs (so you’ll need to pay only $9.99 in total).

xvmlabs-low-vps

Simple vps benchmark:

[root root]# wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash
CPU model : Intel(R) Xeon(R) CPU X5650  @ 2.67GHz
Number of cores : 1
CPU frequency : 2666.607 MHz
Total amount of ram : 1024 MB
Total amount of swap : 128 MB
System uptime : 19 min,       
Download speed from CacheFly: 105MB/s 
Download speed from Coloat, Atlanta GA: 29.8MB/s 
Download speed from Softlayer, Dallas, TX: 33.4MB/s 
Download speed from Linode, Tokyo, JP: 6.74MB/s 
Download speed from i3d.net, Rotterdam, NL: 5.70MB/s
Download speed from Leaseweb, Haarlem, NL: 12.8MB/s 
Download speed from Softlayer, Singapore: 610KB/s 
Download speed from Softlayer, Seattle, WA: 75.0MB/s 
Download speed from Softlayer, San Jose, CA: 75.1MB/s 
Download speed from Softlayer, Washington, DC: 29.6MB/s 
I/O speed :  366 MB/s

This post $9.87/year 1GB RAM SSD VPS XVMLABS Deal is part of ServerMom.

How to Install WordPress on Nginx Ubuntu with EasyEngine

$
0
0

This tutorial with pics explain how to install WordPress under 5 minutes on Nginx Ubuntu VPS using easyengine tool. This article also part of my previous article about EasyEngine, a nice easy tool to quick install Nginx (complete stack) on Ubuntu-based VPS. So please read that first if you are wondering what is it and how to install it.

Step 1 – Install EasyEngine (ee) following my previous guide here.

Step 2 – Edit default ee configuration using your favorite text editor (I use Nano):

nano /etc/easyengine/ee.conf

Step 3 – Look for these lines of configuration:

wp-config-lines-ee

Step 4 – Edit necessary lines (or the parts you think it needs to change). A hint, the most important part is wpadminuser, wpadminpass and wpadminemail.

wp-config-lines-ee-2

Once done, save changes and exit (Control+O then Control+X).

Step 5 – Now issue one of these commands to install wordpress:

Basic WP install (without any caching):

ee site create domain.com --wp --basic

WP Install with W3 Total Cache plugin:

ee site create domain.com --wp --w3tc

WP Install with WP Super Cache plugin:

ee site create domain.com --wp --wpsc

Obviously you have to replace “domain.com” with your own domain name. Complete list of available commands can be found here.

Why should I use different command when I need to install WordPress with W3TC or WPSC plugin? Good question. That’s because both plugins need to add specific rewrite rules / entries in .htaccess file (Apache) while Nginx does not support .htaccess so you’ll have to specify either W3TC or WPSC’s custom .htaccess rules to Nginx’s configuration (obviously you’ll need to convert from htaccess to nginx conf at first). Normally you can do that manually following my articles here for W3TC and here for WPSC. Luckily, using EasyEngine you don’t have to do that manually as ee will automate the task and do the hard part for you.

In this example I’ll install basic WP site:

ee site create domain.com --wp --basic

pic:

easyengine-install-wordpress

That’s it. Now you can test your newly installed WordPress by opening it on your browser:

installed-wp-easyengine

Do not forget to login to WP Dashboard page via domain.com/wp-admin and sign in using defined username and password in step 3 above.

Another example:

wp-easyengine-w3tc

That’s it.

Can I use WP SEO-friendly / pretty permalink with Nginx? Can I change default WP permalink? Yes you can. Pretty permalink is enabled by default and yes you can change it to something else without having to edit Nginx conf file (or .htaccess in Apache).

If you did everything above correctly I believe the task can be done in 5 minutes. Enjoy

This post How to Install WordPress on Nginx Ubuntu with EasyEngine is part of ServerMom.


Complete Install Nginx Stack Under 15 Minutes On CentOS

$
0
0

It’s been a while for me not updating this blog due several offline tasks. In today’s post I’ll show you how to build a working CentOS VPS to host websites using Nginx including steps how to install  full LNMP stack under 15 minutes, including MariaDB MySQL, PHP5 and CSF Firewall. This is just a short method guide for CentOS of my previous article: How to install complete Nginx stack on Ubuntu under 15 minutes.

Enough the chit chat part. This guide will make use of Centmin Mod, a LEMP (Linux, Nginx, MariaDB MySQL & PHP-FPM) web stack installer for CentOS Linux.

What is Nginx? Nginx is a better free alternative to Apache because its lightweight and RAM-friendly. It can perform better and faster than Apache, particularly when the number of concurrent site visitors is on the rise. The only downside of Nginx is that not many users familiar with Nginx because it has different DNA and anatomy compared to Apache. For instance, Nginx doesn’t support Apache’s .htaccess so users need to convert their htaccess content to nginx configuration.

What is Centmin Mod? It is a nice little software (linux-shell script) to build a working web server to host your websites on a CentOS VPS (or Dedi server). The script will install complete LEMP / LNMP stack (Linux, Nginx, MySQL and PHP) along with all necessary softwares (like Postfix and CSF) so your VPS can act as a webhosting server. Currently it supports up to CentOS 6.5 while its CentOS 7-version is still working in progress. You can read more about Centmin Mod here.

Requirements

You’ll need:

  1. A VPS / Dedicated server with at least 512MB of RAM
  2. Fresh install of CentOS 6.0 – 6.5 (CentOS 7.0 support coming soon.)
  3. A dose of Centmin Mod
  4. Basic knowledge of SSH command
  5. Basic knowledge to use Putty (Windows) or Terminal (Linux/Mac)
  6. A cup of coffee.

In this example I use CentOS 6.5 VPS with 768MB of RAM from Vultr. Need recommended VPS? Try checking out my list of recommended VPS or this 15+ top low end cloud vps providers.

vultr-box-spec

Preparation

Step 1 – Login to your server as root. Use the details (IP address, ssh port and root password) given by your provider.

centmin-1

Step 2 – Check if Apache is already installed and running. If so, stop it (or remove it):

service httpd stop
yum remove httpd -y

Step 3 – Now move to this directory:

cd /usr/local/src

Step 4 – Now issue this one line command to download and execute Centmin installer:

curl -sL http://centminmod.com/installer.sh | bash

pic:

centmin-2

The process will take a bit long time so you can grab a cup of coffee (or tea) while paying attention to your screen which somehow displaying installed packages:

centmin-3

Step 5 – And once done, you’ll see something like this:

centmin-4

If you scroll up a bit, you’ll also see some details like this one:

centmin-5

That’s it. Now you have complete LNMP stack installed and ready to host high-traffic websites.

Post Install

  1. Try accessing your server by typing your server’s IP address on browser and you’ll see default Nginx test page:
    nginx-testpage-centminmod
  2. You can also check which version of Nginx, PHP and MariaDB is installed. If you want newer version, then you can use ./centmin.sh menu to upgrade.
    nginx-stack-version
  3. Add new website on your newly built Nginx server and install the script you want (tutorial is upcoming)
  4. If you use reverse proxy or proxy service such as Cloudflare, Incapsula, Google PageSpeed Service, Varnish Cache in front of Nginx web server. You need to properly setup Nginx via HttpRealIpModule. You can find guide link on Nginx Configuration page or directly here.

General Notes

  1. There are two other methods to install Centmin Mod: Traditional SSH shell based menu and CLI command line installsread more here. So if above method doesn’t work, try another one.
  2. For Xen 32bit Paravirtulized OS users on 64bit host nodes prior to install if on Xen VPS, you need to enable and uncomment one variable (remove hash # in front of the variable) ARCH_OVERRIDE=’386′ within centmin.sh then install via centmin.sh for Centmin Mod to work.

That’s it. Do not forget to follow me on twitter or download Servermom’s official Android app to get faster update as well as great news of vps deals.

This post Complete Install Nginx Stack Under 15 Minutes On CentOS is part of ServerMom.

Meet SystemCtl on CentOS 7

$
0
0

Why should I use systemctl on my vps running CentOS 7? What is systemctl command and how to use it?

Such a nice question! The newly made available on CentOS 7, systemctl is a command to control system daemons. This command is available on recent (modern) distros including Fedora 18 or above, RHEL 7, and of course CentOS 7.  This systemctl command is available because the Developers behind CentOS 7 replaced upstart with systemd as the default init system. It means now systemd becomes default system management daemon which is different from the old default init system in many aspects that is too long to explain here.

So how to use it? If you are used to the old init scripts, then the new syntax can be slightly confusing. For example:

Old init scripts to restart httpd:

/etc/init.d/httpd restart

or,..

service httpd restart

then the new command will be:

systemctl restart httpd.service

You can also start and stop the service with similar syntax:

systemctl start httpd.service
systemctl stop httpd.service

p.s:You’ll need to login as root or as a user with root privilege and prepend sudo in front of the commands to use sudo instead of directly accessing the root account. For example:

systemctl restart nginx.service

Why should I use systemctl? For your information, you can still use old init script like examples above but you better start using systemctl and get used to it. The service, /etc/init.d/ and chkconfig commands are still available in the system and work as expected, but are only included for backward compatibility and legacy support reasons. But however if you get used to systemctl, you won’t get confused if the old commands be removed in future updates or releases.

Common command syntax:

systemctl start|stop|restart|reload|status servicename.service

for example:

systemctl reload sshd.service

That’s it. Do not forget to follow me on twitter or download my official Android app.

This post Meet SystemCtl on CentOS 7 is part of ServerMom.

Complete Install Lighttpd Stack Under 15 Minutes On CentOS

$
0
0

Lighttpd is another alternative to Apache and Nginx for those who are seeking speed of a web server without sacrificing performance. This is perfect to run on a low resource server a.k.a low end vps. Previously, I explained step by step tutorial guiding newbie how to install Lighttpd web server on CentOS box but this is the quickest easiest way to install Lighttpd, MariaDB mysql and PHP 5 (php-fpm) on CentOS 7. Done under 15 minutes.

Nginx vs Lighttpd? I believe both has similar performance (and both is faster than Apache) but honestly saying I still prefer Nginx because it has larger amount of users and active community. So, me personal opinion tells you to not using Lighttpd on a production server if you are not planning to learn deeper about it.

Prerequisite

In this tutorial I use (or you’ll need):

  1. A server running CentOS 7. In this guide I use a 512MB DigitalOcean‘s droplet running CentOS 7 x86_64 minimal.
  2. SSH client. I use Putty but using Terminal on Mac or Linux should be also fine.
  3. Basic knowledge of common Linux shell command.
  4. A cup of coffee and about 15 spare time.

Easy Install Lighttpd on CentOS 7

This tutorial will make use of Lighttpd autoinstaller script that will execute needed command and tasks to download and install Lighttpd stack including MariaDB mysql server and PHP5 with fpm. The script is originally posted at FreeVPS.

Step 1 – Login to your server and follow my previous guide about Basic setup for CentOS before you build a live web server. You may and may not follow that tutorial but if you followed, it will give you some basic security tweak to your server.

Before you proceed to the next steps, it is better to explain that all commands in this tutorial are written without the “sudo” prefix. However if you disabled root login and you logged in using another username with root privilege, you can add the “sudo” prefix all by your self. Alternatively you can simply type su, hit Enter and type in your password twice to switch login as root.

lighttpd-step-1

Step 2 – Now type this command and hit Enter to issue:

wget http://apps.singul4rity.com/fvps/centos7-llmp.sh -O - |bash

It should automatically start the Lighttpd autoinstaller script:

lighttpd-step-2

Step 3 – The script should finish quickly. In my example it was finished under 5 minutes (around 3 minutes) and once done you’ll see something similar like this:

lighttpd-step-3-install

Step 4 – So now you have full LLMP stack installed (Linux, Lighttpd, MySQL, and PHP). What next to do is to setup mysql root password by issuing this command:

/usr/bin/mysql_secure_installation

For more explanation about this topic you can read my previous guide. Pic:

lighttpd-step-4-mysql

That’s it. Now you have full LLMP stack installed on your server and ready to use. Here some details after installation:

PHP 5 version: 5.4.16

lighttpd-php-v

Lighttpd version: 1.4.35

lighttpd-version

Used Memory After Install: As you can see that it consumes very low memory so it can also run on low end box running at least 128MB or RAM.

lighttpd-used-ram

You can try accessing your newly installed LLMP stack on your browser:

lighttpd-test-browser

That’s it and enjoy!

This post Complete Install Lighttpd Stack Under 15 Minutes On CentOS is part of ServerMom.

How to Install LAMP on CentOS 7

$
0
0

Tutorial to guide newbie how to install complete LAMP stack with Apache, MariaDB MySQL and PHP5 on CentOS 7. Full screenshot pics inlcluded. This is the full all-in-page guide of LAMP stack installation series I wrote for CentOS 6 before. There is no significant difference except the use of new systemctl command. You can read a short introduction (information) about why and what is systemctl command in my previous post.

LAMP which originally stands for Linux, Apache, MySQL and PHP has now recently changed with the rise of MariaDB, a drop-in replacement for original MySQL. Long story short, MariaDB is a fork of MySQL and developed by MySQL developers itself. It has almost all features of what MySQL has and features library binary equivalency and exact matching with MySQL APIs and commands. It means if an app is able to run with MySQL and it also is able to on MariaDB without any glitch. I will not explain what is Apache and PHP as I’ve explained before and I believe you already knew what it is.

Let’s start with the step by step tutorial:

You may need:

  1. A server (VPS / Dedi) running CentOS 7. I recommend you to use CentOS 7 x86_64 minimal if available. As usual, I’m using a Playground Server from DigitalOcean.
  2. A knowledge on how to use Putty or Terminal to access a server via SSH.
  3. I believe you knew -at least part of- most common Unix commands used to manage an unmanaged server.
  4. A spare time of your life and a cup of coffee.

Install Apache Web Server

Being the most popular web server, Apache is commonly included in most of recent Linux Distro so installation will be very easy.

Before you proceed to the next steps, it is better to explain that all commands in this tutorial are written without the “sudo” prefix. In this tutorial I use root but you may also login as separate user with root privilege. However if you disabled root login and you logged in using another username with root privilege, you can add the “sudo” prefix all by your self. Alternatively you can simply type su, hit Enter and type in your password twice to switch as root.

Step 1 – Login to your server via Putty or Terminal.

lamp-centos-7-1

Step 2 – Now issue command below to install Apache 2.4 on your CentOS 7 server:

yum install httpd -y

As you can see the command is still the same.

lamp-centos-7-2

And when the process finished, you’ll see something like this:

lamp-centos-7-2-b

Step 3 – Now you have Apache 2.4 installed which you can then start the service by typing command below:

systemctl start httpd.service

or,..

service httpd start

lamp-centos-7-3

Available commands:

systemctl status|start|stop|restart|reload httpd.service

# OR, old command :

service httpd status|start|stop|restart|reload

Step 4 – You can verify that Apache is really running by opening your favorite web browser and access your vps via its IP address:

http://xxx.xxx.xxx.xxx

and you’ll see default Apache welcome page.

lamp-centos-7-apache

In current example I’ve installed Apache v2.4.6.

or, you can directly issue this command:

systemctl status httpd.service

you’ll see something like this:

lamp-centos-7-4-1

Enable Apache to automatically run every time your server reboot:

systemctl enable httpd.service

Install PHP5

Step 5 – Now, it is time to install PHP5. Default command is:

yum install php -y

That’ really is a simple command but since we will install MySQL then we’ll need PHP MySQL modules plus any other PHP5 modules you website / app may need it. You can view all available modules using this command:

yum search php-

Confused? You can read my previous article or you can simply use command below that includes common PHP5 modules most websites can run with it.

yum install php php-common php-cli php-devel php-gd php-imap php-intl php-mysql php-process php-xml php-xmlrpc php-zts -y

lamp-centos-7-5

And once done, you’ll see something like this:

lamp-centos-7-5-1

You can test which version of PHP is installed by typing php -v command.

lamp-centos-7-5-php-version

In my example it is PHP v5.4.16.

Install MariaDB MySQL Server

Step 6 – Installing MariaDB mysql server on CentOS 7 is pretty easy and once again we’ll make us of yum package manager:

yum install mariadb-server mariadb -y

lamp-centos-7-6

and once done you’ll see something like this:

lamp-centos-7-6-1

Step 7 – Now you can start MariaDB server for the very first time using this simple systemctl command :

systemctl start mariadb.service

lamp-centos-7-7

You may also see the status of MariaDB by typing:

systemctl status mariadb

MariaDB Initial Configuration

Step 8 – So its service is now running but there is one thing you should do immediately: configuring MariaDB setup for the very first time like setting up your mysql root password. Issue this command:

mysql_secure_installation

Then you’ll see a series of question, just answer it accordingly. The main important part is to define your root password while everything else is just up to you or you can simply hit the “ENTER” key through each prompt to accept the default values.

lamp-centos-7-8-mysql-setup

If you need to automatically run MariaDB everytime your server boot, simply issue this command:

systemctl enable mariadb.service

lamp-centos-7-8-2

You may also need to test your newly installed MariaDB by logging in as root:

mysql -u root -p

lamp-centos-7-8-3

As you can see from the screenshot above, it is Maria DB v5.5.37.

Step 9 – Also test if Apache and PHP is running well and able to process any *.php files. Create a php info page using this command followed by restarting apache

echo "<?php phpinfo(); ?>" > /var/www/html/info.php

lamp-centos-7-9

Restart apache:

systemctl restart httpd.service

Now open up your browser and access that newly created php page:

http://xxx.xxx.xxx.xxx/info.php

You’ll see a page similar to this one:

lamp-centos-7-9-php-info

Installing PhpMyAdmin

Step 10 – Now your server has Apace, PHP and MariaDB installed. It means it should be OK now to install PhpMyAdmin, a popular web-based database management system so you can easily manage your database without having to login via SSH and issuing several command lines. Unluckily, this piece of awesome software is not available in CentOS 7.0 default repositories. In this case you have to add / enable third-party repo like EPEL or RPMForge.

Method #1: RPMForge

First, download the rpm file.

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

lamp-centos-7-10-rpmforge

then enable the repository and delete the .rpm file as it is not needed again.

rpm -ivh rpmforge-release-*
rm rpmforge-release-*

lamp-centos-7-10-rpmforge-enable

Method #2: EPEL

Download the .rpm file:

wget http://download.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

The url above is still its beta version. However if the repository is out of beta status, the link most likely will be different. In case that happens, you can find out its latest download url at Fedora Project website.

enable the repository and delete the .rpm file:

rpm -ivh epel-release*
rm epel-release*

Step 11 – Next, install it using yum again:

yum install phpmyadmin -y

screenshot:

lamp-centos-7-11

Step 12 – That’s it. Now you also have phpMyAdmin (PMA) installed but you should be better if you change its default configuration before using it. First, you’ll need to backup default PMA’s config file:

cp /etc/httpd/conf.d/phpMyAdmin.conf /etc/httpd/conf.d/phpMyAdmin.conf.old

then edit file phpMyAdmin.conf file using your favorite editor. In this example I use Nano editor:

nano /etc/httpd/conf.d/phpMyAdmin.conf

Step 13 – You’ll now see the content of phpMyAdmin.conf, next you have to allow connections from remote hosts by editing few lines inside section <Directory “/usr/share/phpMyAdmin”>.

Before changes:

lamp-centos-7-13

After:

lamp-centos-7-13-4

Also you’ll need to edit few lines next:

Before:

lamp-centos-7-13-2

After:

lamp-centos-7-13-3

Shortly it should look like this:

<Directory /usr/share/phpMyAdmin/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require all granted
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     #Order Deny,Allow
     #Deny from All
     AllowOverride None
     Options None
     Allow from All
     Require all granted
   </IfModule>
</Directory>

Once done, save and exit editor (In Nano it is Control+O then Control+X).

Step 14 – Restart Apache again:

systemctl restart httpd.service

Now you can test opening PMA on your browser via your server’s IP address:

http://xxx.xxx.xxx.xxx/phpmyadmin

and default login page of phpMyAdmin should be displayed:

phpmyadmin-login-page

That’s all. Now you can host your websites or blogs in that server, even WordPress.

Do not forget to follow me on twitter to get faster update or download my official Android app. Enjoy..

This post How to Install LAMP on CentOS 7 is part of ServerMom.

How to Install LEMP on CentOS 7

$
0
0

LEMP or a.k.a LNMP stands for Linux, Nginx, MySQL and PHP. I posted various tutorial on how to get it installed on your VPS but this article is a CentOS 7 version of how to setup a full and working Nginx server to host websites or blogs on your VPS.

Just like my Apache-version of this tutorial I’ll use MariaDB to act as mysql server instead of the original one which is now owned by Oracle. For your information, MariaDB is an enhanced, drop-in replacement for MySQL made by its original developers. For all practical purposes, MariaDB is a binary drop in replacement of the same MySQL version (for example MySQL 5.1 -> MariaDB 5.1, MariaDB 5.2 & MariaDB 5.3 are compatible. Shortly, if your apps / scripts can run on MySQL, then it will also run flawlessly on MariaDB.

L for Linux

CentOS 7 is one of available most recent Linux distro. It has great enhancements over its predecessor. Well, there are few changes but to note the most important one, it is now using systemd, the replacement for legacy System V (SysV) startup scripts and runlevels. With systemd there are fewer files to edit, and all the services are compartmentalized and stand separate from each other. Shortly saying, instead of using /etc/init.d/httpd restart or service httpd restart, you should now make yourself be familiar with systemctl restart httpd.service command.

E for Engine X or N for Nginx

You must already knew it, Nginx is most popular web server with Apache’s twice performance. It is an open source reverse proxy server for HTTP, HTTPS protocols, as well as a load balancer, HTTP cache, and a web server (origin server). Itaccelerates content and application delivery, improves security, facilitates availability and scalability for the busiest web sites on the Internet. Installing Nginx is easy but building a website with high traffic capable to crash Nginx is the hardest part.

M for MySQL

MySQL is a database server but in this tutorial we’ll use MariaDB.

P for PHP

Hypertext Preprocessor or PHP is a widely-used open source general-purpose scripting language. On websites, it is useful to serve dynamic content.

Prerequisite

  1. A server (VPS / Dedi) running CentOS 7. I recommend you to use CentOS 7 x86_64 minimal if available. As usual, I’m using a Playground Server from DigitalOcean.
  2. A knowledge on how to use Putty or Terminal to access a server via SSH.
  3. I believe you knew -at least part of- most common Unix commands used to manage an unmanaged server.
  4. A spare time of your life and a cup of coffee.

Install Nginx

Before you proceed to the next steps, it is better to explain that all commands in this tutorial are written without the “sudo” prefix. In this tutorial I use root but you may also login as separate user with root privilege. However if you disabled root login and you logged in using another username with root privilege, you can add the “sudo” prefix all by your self. Alternatively you can simply type su, hit Enter and type in your password twice to switch as root.

Step 1 – Login to your server via Putty or Terminal.

Step 2 – Since Nginx package is not included in CentOS 7 by default, so we have to add / install Nginx yum repository by issuing command below:

rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

it will look like this

nginx-1-rpm

Step 3 – Next, simply use this simple command to install Nginx on CentOS 7:

yum install nginx -y

install-nginx-centos-7-yum

and once done, it should look similar to this:

install-nginx-centos-7-installed

As simple as that! Now your Nginx web server is running.

Step 4 – You can test Nginx to run for the very first time using this command:

systemctl start nginx.service

and enable it to automatically run each time your server is booting:

systemctl enable nginx.service

install-nginx-centos-7-start

Now open up your favorite web browser and use your server’s IP to access it. Nginx default welcome page should be seen there:

nginx-welcome-centos-7

You can use nginx -v command to find out what version of Nginx is installed:

nginx-version-centos7

Install PHP5-fpm

Step 5 – PHP can be easily installed via yum:

yum install php php-mysql php-fpm

That’s a very basic command to install PHP 5 plus its modules: php-mysql and php-fpm. However, in many cases your apps or scripts (like WordPress and its many plugins) require other PHP modules. You can list all available module using yum search php- (read here). I’ve collected all most common modules you may need so you can simply use this one:

yum install php php-fpm php-common php-cli php-devel php-gd php-imap php-intl php-mysql php-process php-xml php-xmlrpc php-zts -y

once done, you’ll see something like this:

install-nginx-centos-7-php

Step 6 – As we’ll use php-fpm module, so there are few configuration you have to adjust. First, let’s edit php.ini file using your favorite text editor like Nano:

nano /etc/php.ini

then look for the line to with cgi.fix_pathinfo. In Nano you can make use of search function (Control+W). Remove the ; and set this value to 0.

Before:

install-nginx-centos-7-php-cgi-path-before

After:

install-nginx-centos-7-php-cgi-path-after

Once done, save and exit the editor (Control+O then Control+X)

Step 7 – Next, edit php-fpm configuration file:

nano /etc/php-fpm.d/www.conf

and edit the line Listen = 127.0.0.1:9000 replace whit this:

listen = /var/run/php-fpm/php-fpm.sock

install-nginx-centos-7-php-config-socket

Step 8 – Also find the section called “Unix user/group of processes” then change Apache to Nginx:

install-nginx-centos-7-php-config

Done editing? Now save and exit.

Step 9 – Now start php-fpm using systemctl command:

systemctl start php-fpm

and enable it to automatically start on system boot:

systemctl enable php-fpm.service

install-nginx-centos-7-php-fpm-start

Setup Nginx (Configuration)

Step 10 – Open and edit the default Nginx server block (virtual hosts file) configuration file using your favorite editor:

nano /etc/nginx/conf.d/default.conf

It should look like this by default:

install-nginx-centos-7-conf

Step 11 – Now add an index.php option as the first value of index directive to allow PHP index files to be served when a directory is requested:

install-nginx-centos-7-conf-index-php

Also change the structure from this :

install-nginx-centos-7-conf-before

to this:

install-nginx-centos-7-conf-after

Step 12 – Also change the server_name directive to point to your server’s domain name or public IP address:

install-nginx-centos-7-conf-name

Step 13 – Optional but necessary, uncomment some lines that define error processing routines especially error 404:

install-nginx-centos-7-conf-error

Step 14 – Then scroll down a bit and find a section that says “pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000” uncomment the lines and make changes as following:

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

install-nginx-centos-7-conf-fastcgi

Done? You can now save and exit.

Step 15 – Do not forget to restart Nginx so the changes can be applied:

systemctl restart nginx.service

Step 16 – Test that Nginx and PHP-fpm can actually process any php script. For this purpose you can simply create a info.php page:

echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/info.php

Next, open up your browser and try open that newly created info.php file which looks like this:

install-nginx-centos-7-php-info

Install MariaDB

Step 17 – You have Nginx and PHP-fpm up and running so it is time to install MariaDB server. The command is simple and done via yum:

yum install mariadb-server mariadb -y

install-nginx-centos-7-mariadb

Step 18 -Start MariaDB service using systemctl command (get used to it):

systemctl start mariadb.service

and enable it on boot:

systemctl enable mariadb.service

install-nginx-centos-7-mariadb-start

Step 19 – So its service is now running but there is one thing you should do immediately: configuring MariaDB setup for the very first time like setting up your mysql root password. Issue this command:

mysql_secure_installation

Then you’ll see a series of question, just answer it accordingly. The main important part is to define your root password while everything else is just up to you or you can simply hit the “ENTER” key through each prompt to accept the default values.

Step 20 – You may also need to test your newly installed MariaDB by logging in as root:

mysql -u root -p

As you can see from the screenshot above, it is Maria DB v5.5.37.

Install PhpMyAdmin

Step 21 – Unluckily, this PhpMyadmin package is not available in CentOS 7.0 default repositories. In this case you have to add / enable third-party repo like EPEL. Simply issue this command to do that:

wget http://download.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
rpm -ivh epel-release*
rm epel-release*

install-nginx-centos-7-wget-phpmyadmin

The url above is still its beta version. However if the repository is out of beta status, the link most likely will be different. In case that happens, you can find out its latest download url at Fedora Project website.

install-nginx-centos-7-pma-install

Step 22 – Now use yum to install phpmyadmin:

yum install phpmyadmin -y

install-nginx-centos-7-pma-install-yum

Step 23 – In order to make PhpMyAdmin accessible to the web, you have to create a symbolic link from the PMA installation files to your Nginx document root directory using this command:

ln -s /usr/share/phpMyAdmin /usr/share/nginx/html

now restart php-fpm:

systemctl restart php-fpm.service

install-nginx-centos-7-pma-symlink

Step 24 – That’s it. Now you can test it on your browser:

http://ip-or-domain/phpMyAdmin

and default login page of phpMyAdmin should be displayed:

Done. Do not forget to follow me on twitter to get faster update or download my official Android app. Enjoy..!

This post How to Install LEMP on CentOS 7 is part of ServerMom.

Viewing all 159 articles
Browse latest View live