Oct 152011
 

This is an article of mine, already published on wazi

Do you have problems serving more than two pages per second on your WordPress or Drupal blog? Do the sites of your competitors serve pages faster than yours? Their secret weapon may be a different web server and PHP combo than Apache and mod_php. But don’t worry – you can turn to one of these alternative solutions too, and improve your web server throughput without upgrading your hardware resources.

First, some background. In general an HTTP or web server sends browser clients a requested page, usually in HTML code, or a page dynamically created with a language such as PHP, one of the most common programming languages for web pages. The PHP scripting language resembles JavaScript, Java, and Perl, all of which share a common ancestor, the C programming language. If you need to embed dynamic text, such as the result of queries on databases, into static text, you’ll find PHP extremely useful.

Continue reading »

Flattr this!

Oct 142011
 

nginxToday i’ve spent a lot of time (probably too much) to understand how to modify extensions, inside an url, with the rewrite of Nginx.

Mi goal was call the url http://mysite.com/miofile.html and serve http://mysite.com/miofile with Nginx, which is actually a php script and not a real html..
To make things more difficult a url with a .html can also specify an existing file and real html file.

Finally i’ve got everything sorted out correctly, so with this post i hope to help someone else in the future to save some time.
Continue reading »

Flattr this!

Oct 132011
 

squidIn former articles i’ve talked about Tor and SSH to browse the net in a more secure (or at leat anonymous) way.
But sometimes it’s easier to do the configuration just one time on a server and setup a proxy there, and than use it as proxy for all your computers, or perhaps all your office or friends computers.

And with VPS this is a cheap way to browse the net starting from another part of the world.

So in this article we’ll see how to do a basic setup of Squid.

Continue reading »

Flattr this!

Oct 102011
 

Sometimes it happen to have the need of check what’s inside a .tar.gz file archive or perhaps you just need to extract a couple of files from another archive, this is possible you just have to remember all the flags or simply extract all in /tmp and then discard the files that you don’t need.

But there is also a smarter way to do this, use archivemount
Continue reading »

Flattr this!

Oct 082011
 

As many of you know the most used packages on GNU/Linux are deb and rpm.

deb is the extension of the Debian software package format and the most often used name for such binary packages.
Debian packages are standard Unix ar archives that include two gzipped, bzipped or lzmaed tar archives: one that holds the control information and another that contains the data.
The accepted program for handling these packages is dpkg, commonly used via other programs such as apt/aptitude or Gdebi.

RPM Package Manager (RPM) is a package management system. The name RPM variously refers to the .rpm file format, files in this format, software packaged in such files, and the package manager itself. RPM was intended primarily for GNU/Linux distributions; the file format is the baseline package format of the Linux Standard Base.

Originally developed by Ethan “E$” Cohen at Red Hat for Red Hat Linux, RPM is now used by many GNU/Linux distributions. It has also been ported to some other operating systems, such as Novell NetWare and IBM’s AIX.

Debian packages can be converted into other packages and vice versa using alien
Continue reading »

Flattr this!