Step 1 – Setup repository for pre-compiled Hiawatha Debian binaries
The first thing you’ll need to do is to setup the repository for Hiawatha Webserver. You may also compile it on your own if you wish, but for this tutorial we’ll be using the pre-compiled binaries.
First, get and install the repository’s public key:
apt-key adv --recv-keys --keyserver keys.gnupg.net 79AF54A9
Open up and edit sources.list with:
Add the following to sources.list:
deb http://mirror.tuxhelp.org/debian/ squeeze main
Save the changes that you have made, then exit. Continue reading “LHMP- Linux Haiwatha Mysql PHP simplistic new breed!!” »
Log in to your server as the root user.
Use the adduser command to add a new user to your system. Be sure to replace username with the user that you want to create.
Set and confirm the new user’s password at the prompt. A strong password is highly recommended! Continue reading “Create a Sudo User on Debian or Ubuntu” »
For all you Ubuntu/MySQL developers out there, have you ever seen the following?
neo@thematrix:~$ sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [fail]
* Starting MySQL database server mysqld [ OK ]
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
So, what is this “debian-sys-maint” user? Well, this MySQL user is created for the Ubuntu to be able to start/stop the database and to carry out other maintenance operations.
Sounds well enough, but then why do I keep running into the “access denied” problem for this user? Well, the issue is that with each update to MySQL, the user’s password in the database is overwritten. Ubuntu seems to go to the file /etc/mysql/debian.cnf in order to find this user’s password, but obviously the password is out of sync after the update has been applied.
As a result of this behaviour, I’ll run into the “access denied” problem every so often. Thankfully, the solution to this issue is fairly simple. Continue reading “Fixing error: ‘Access denied for user ‘debian-sys-maint’@’localhost’ (using password: YES)’” »
First check your kernel version, so you won’t delete the in-use kernel image, running:
Now run this command for a list of installed kernels:
dpkg --list 'linux-image*'
and delete the kernels you don’t want/need anymore by running this:
sudo apt-get remove linux-image-VERSION
Replace VERSION with the version of the kernel you want to remove. Continue reading “The safest way to clean up /boot partition in Debian or Ubuntu” »
Installing MySQL 5
In order to install MySQL, we run
apt-get install mysql-server mysql-client
You will be asked to provide a password for the MySQL root user – this password is valid for the user root@localhost as well as email@example.com, so we don’t have to specify a MySQL root password manually later on:
New password for the MySQL “root” user: <– yourrootsqlpassword
Repeat password for the MySQL “root” user: <– yourrootsqlpassword
PHP-FPM & PHP modules installation
Use the below command to install PHP-FPM & PHP modules. PHP initially called Personal Home Page, now it is called asHypertext Preprocessor. PHP is a opensource software which is designed for web development purpose. It is used for server-side scripting language as well as general-purpose programming language.
$ sudo apt-get install php5 php5-fpm php5-mysql php5-cli php5-curl php5-gd php5-mcrypt
Continue reading “LEMP on Debian 7” »
After a Debian version has reached EOL (end of life), its repositories go to the Debian archive. Therefore we can use this archive to get packags for our distribution. The syntax for our /etc/apt/sources.list is as follows:
deb http://archive.debian.org/debian/ <version> main non-free contrib
deb-src http://archive.debian.org/debian/ <version> main non-free contrib
deb http://archive.debian.org/debian-security/ <version>/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ <version>/updates main non-free contrib
So for Debian Etch, you’d comment out all other repositories in /etc/apt/sources.list and add the following lines: Continue reading “How to update Debian 6 Squeeze” »
Normally Varnish Cache is available on Debian default repositories. But i suggest you to use Varnish Cache repositories to get latest version of Varnish Cache.
Run the following commands as root user to install Varnish Cache.
# curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add -
# echo "deb http://repo.varnish-cache.org/debian/ wheezy varnish-3.0" >> /etc/apt/sources.list
# apt-get update
# apt-get install varnish
Open up the file ‘/etc/default/varnish’ in any editor. Continue reading “Install Varnish Cache On Debian 7” »
- Begin by downloading the latest loaders to your computer from http://www.ioncube.com/loaders.php
- Extract the contents of the archived file on your local PC to a folder of your choice.
- Upload the folder IONCUBE via FTP to your domain webspace
- Now establish an SSH connection with server using a suitable client (e.g. Putty for PC’s or Terminal on Mac). This is usually done using the command: SSH firstname.lastname@example.org (you will then be asked for your password).
- You will need to browse to the public folder where you uploaded the IONCUBE directory (search internet for change and view directory commands in Unix).
- Move the ioncube folder to a permanent location by entering: mv ioncube /usr/local
- Next, you need to locate the php.ini file, to do this enter: locate php.ini – You should find it is in /usr/local/lib/php.ini. Now that you know the location of php.ini you need to edit it. pico /usr/local/lib/php.ini
- Now find where other zend extentions are in the file: ctrl + w: zend_extension
- Paste in your new line for ioncube loader: zend_extension = /usr/local/ioncube/ioncube_loader_lin_x.so (Replace x with your version of PHP eg. 4.4)
- Save the changes: ctrl + X then Y and enter
- Restart the web server to take effect: /etc/init.d/httpd restart
That’s it! Ioncube should now be installed & working on your server. To verify the installation was successful, check the PHP Info output for your server and you should see a new section which reads:
Module Name ionCube Loader
To install webmin on debian 8 just follow this instructions :
apt-key add jcameron-key.asc
echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list
echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" >> /etc/apt/sources.list
apt-get -y install webmin
Continue reading “Install webmin on debian 8” »
Our system’s hostname is server1.example.com, and we have a website www.example.com on it with the document root/var/www/www.example.com/web.
The following steps have to be performed as root user. To become root user on your server, run this command:
Ensure that the system is up to date before you start to install Munin, run:
Apache is used to show the Munin pages, the apache fcgid module is required for the Munin graph zoom feature. I will install apache and the libapache2-mod-fcgid module with apt. Continue reading “Server Monitoring with Munin and Monit on Ubuntu 14.04 LTS” »