TL:DR If you are using php 5.3.3 or newer then go mysqlnd, otherwise stay with the default libmysql. Whats the difference? While I could post it here for you, a…
Assuming that you already have PHP installed, you enter into the console apt-get install php5-sybase (sadly not as intuitive as apt-get install php5-mssql) For most instances that may be enough to give…
Now this isn't the most accurate method out there but it is by far the easiest. Open up your console and type netstat -an | grep :443 | grep ESTABLISHED…
While both of these commands will tell you if your new nginx configuration is ok [without killing your current instance]. Configtest uses the running service and tells you if it…
In this tutorial we are going to go through the steps of securing the server and configuring Nginx, PHP, Phpmyadmin and MySql.
Step 1. Basic Security
Assuming you have already logged into your server we start by changing the root password to something more secure.
This will prompt you to change the root password, It is recommended to choose something extremely complex as it is your most crucial line of defence against the outside world.
Next, open up the ssh config
and change the port from 22 to anything between 1025 to 65536, this will prevent our server from being easily spotted by malicious eyes (more…)
vim default (or default-css)
Step 3. Change AllowOverride from ‘None’ to ‘All’
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride All <---- replace None with All </Directory> <Directory /var/www > Options Indexes FollowSymLinks MultiViews AllowOverride All <--- replace None with All Order allow,deny allow from all </Directory>
Step 4. Enable Mod Rewrite
sudo a2enmod rewrite
5. Restart Apache
service apache2 restart
You are now done…
Setup an Ubuntu Server with only the [x] Essential Services [x] SSH Server Login as root Lets start with an update apt-get update apt-get upgrade To secure your server a…