Tips for Securing a LAMP Server

David’s answer is a good baseline of the general principles of server hardening. As David indicated, this is a huge question. The specific techniques you take could depend highly on your environment and how your server will be used. Warning, this can take a lot of work in a test environment to build out and … Read more

What is Options +FollowSymLinks?

You might try searching the internet for “.htaccess Options not allowed here”. A suggestion I found (using google) is: Check to make sure that your httpd.conf file has AllowOverride All. A .htaccess file that works for me on Mint Linux (placed in the Laravel /public folder): Hope this helps you. Otherwise you could ask a … Read more

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

I once had this problem and solved it by installing mysql-server, so make sure that you have installed the mysql-server, not the mysql-client or something else. That error means the file /var/run/mysqld/mysqld.sock doesn’t exists, if you didn’t install mysql-server, then the file would not exist. So in that case, install it with But if the mysql-server is already installed and is running, then you … Read more

What is a LAMP stack?

The reason they call it a stack is because each level derives off its base layer. Your operating system, Linux, is the base layer. Then Apache, your web daemon sits on top of your OS. Then your database stores all the information served by your web daemon, and PHP (or any P* scripting language) is … Read more