Intall multiple version of php on one server
This article is about how to install php-5.1, php-5.2 and php-5.3 on one server, and use them simultaneously Based on CentOS 5.6, for Apache only 1. Enable rpmforge and epel yum repository wget...
View Articlephp security: disable functions
Case Study: Some small hosting company provides web hosting service to its clients. The machine runing web server also acts as an email server, which function very well. Then one day, one of its client...
View ArticleApache options directive trap
When configuring the Apache HTTP server, we use the Options directive to control which server features are available in a particular directory. We may, for example, write a config like this:...
View Articlepeek the source – Another troubleshooting method for open source software
Today I read a security article on the nginx fastcgi PATH_INFO (Chinese version on 80sec). I currently maintain several sites with nginx+php-fpm, so I decide to do some test and see if my configuration...
View Articlenginx – try files on multiple named location or server
Let’s start from the simplest case: How to serve files locally first, and proxy the request to other backend/internal server if not found? listen 192.168.1.10:80; ... location /static/ { try_files $uri...
View ArticleNginx userdir with php
you come here with this problem, here’s the solution: location ~* ^/~(.+?)(/.*\.php)$ { alias /home/$1/public_html$2; fastcgi_pass 127.0.0.1:9001; include fastcgi_params; fastcgi_param SCRIPT_FILENAME...
View Article