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 more updated source would be http://www.php.net/manual/en/mysqlinfo.library.choosing.php. As you can see, currently mysqlnd does ‘pretty-much’ evrything libmysql does with a plethora of Read more…
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 you what you need. If by any chance that doesn’t work, or you need more ‘functionality’ you can try (untested Read more…
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 | wc -l or even better, for a running total watch “netstat -an | grep :443 | grep ESTABLISHED Read more…
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 passes or fails the check whereas nginx -t will not only check the config but print any info, warning as Read more…
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 bit. Edit ssh and change the default port nano /etc/ssh/sshd_config Change ‘port 22’ to whatever port you wish to use then… Read more…