Varnish Cache is a web accelerator, sometimes referred to as a HTTP accelerator or a reverse HTTP proxy, that will significantly enhance your web performance.
Varnish speeds up a website by storing a copy of the page served by the web server the first time a user visits that page. The next time a user requests the same page, Varnish will serve the copy instead of requesting the page from the web server.
This means that your web server needs to handle less traffic and your website’s performance and scalability go through the roof. Varnish cache will increase the delivery of your web content by 80 % or more, depending on your architecture. Continue reading “Install And Configure Varnish Cache With Apache On Debian 7” »
Ubuntu and Debian packages are compatible most times but not in all cases, i think this is the trouble you’re having you’re trying to use the Ubuntu’s .deb for Debian instead you should get the Debian specific file, (it works for both jessie and wheezy)
sudo dpkg -i wkhtmltox-0.12.1_linux-wheezy-amd64.deb
Then in the /etc/init.d/openerp-server or /etc/init.d/odoo-server script(s), depending on your which one you have
add /usr/local/bin to the front of path environment variable for example,
This tells odoo where to look for system binaries it requires or optionally you can copy the files to /usr/bin, if you don’t want to mess with those files
sudo cp /usr/local/bin/wkhtmlto* /usr/bin/
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 firstname.lastname@example.org, 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 email@example.com (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