Mar 112012
 

This is an article of mine, originally published on Wazi

WordPress , the popular content management system (CMS), is easy to configure and use, and is well supported by its community of professional consultants. WordPress depends for its operation from a full stack that includes an operating system, database, web server and PHP. If you can optimize this stack, you can improve the performance of your site. Here are some tips and best practices for a configuration that can improve performance without forcing a hardware upgrade.

In the first part of this guide we have seen what to check and modify in the operating system and database server (mysql)
In the second part I have presented the instructions to set the http server (Nginx to be exact) and PHP .

Today we will see APC, the configuration of WordPress and Varnish. Continue reading »

Flattr this!

Mar 082012
 

This article of mine has been original published on Wazi

WordPress, the popular content managing system (CMS), is easy to set up and use, and well supported by both its community and professional consultants. WordPress depends upon a complete stack that comprises an operating system, database, web server, and PHP. If you can optimize this stack, you can enhance the performance of your site. Here are some tricks and best practices for a setup that will improve your throughput without forcing you to upgrade your hardware.

In the Part 1 of this guide we have seen what to check and change in the Operating system and on the database server (mysql), today we’ll see how to setup the http server (Nginx to be exact) and PHP.

Continue reading »

Flattr this!

Mar 052012
 

This article of mine has been original published on Wazi

WordPress, the popular content managing system (CMS), is easy to set up and use, and well supported by both its community and professional consultants. WordPress depends upon a complete stack that comprises an operating system, database, web server, and PHP. If you can optimize this stack, you can enhance the performance of your site. Here are some tricks and best practices for a setup that will improve your throughput without forcing you to upgrade your hardware.

Let’s start with a look at the Linux operating system, MySQL database, and nginx web server. Later we’ll get to PHP, some setup and plugin work with WordPress itself, and Varnish Cache, a web application accelerator.
Continue reading »

Flattr this!

Feb 262012
 

In these days I had to download a lot of files from a remote FTP server, the best solution in cases like this one is to login on the remote server and do a zipped archive of all the files (for this use tar -zcvf archivename.tgz /path/to/archive/) , in this way you’ll have to download just 1 file that is also been compressed and FTP can do perfectly this.

But this time I had no shell on the remote server, just a FTP account, so what’s the best way to download a large number of files recursively ?
Continue reading »

Flattr this!

Feb 222012
 

It’s funny how through small daily tasks sometimes it happen to find new features or commands that you do not knew not, and today this thing happened to me.
In particular, I had to do something trivial on the shell of a server, run : command1 | tail-n 2 i use tail to keep, from a significant long output, only the last 2 lines which then i use in another function, but beyond this, I needed to understand if command1 was terminated with an exit code of 0 or if the code was not 0 which number it was.

A simple:

....
comando1 | tail -n 2 
if [ $? -ne 0 ]
	then
		echo "comando1 fallito."
		EXIT_CODE=1
	fi
....

Does not work because the exit code comes from the command tail, which in my case is always 0.
So I Googled a bit and found more than a solution for this simple problem.
Continue reading »

Flattr this!