Important: Development of the eaccelerator is discontinued. Instead, use opcache inline caching.
The first step to take is to install the php5-dev and make packages if they are missing.
Set up a server for hosting sites. Answers to questions about how to configure apache and php, or nginx.
Important: Development of the eaccelerator is discontinued. Instead, use opcache inline caching.
The first step to take is to install the php5-dev and make packages if they are missing.
From the stable and fast server depends on the fate of the site. Its slow work and frequent drops can scare away both visitors and search engines. The latter will also lower the rating of the braking site in the search results and it will not be in the top 10, but, say, in the top 100 for all queries.
Using a bunch of nginx and php-fpm for site maintenance allows you to increase the speed of their work, as well as the stability of the system as a whole. In addition, by refusing to use apache, we simplify the system somewhat and even protect it. After all, if there is no apache, then the attacker will not be able to use, for example, the .htaccess file for his own purposes.
The nginx + php-fpm bundle is quite easy to configure and it is supported by many popular CMS: WordPress, MODX, DLE, various frameworks. All this can work without bulky apache.
When installing a web server, do not do without creating users. Ideally, a separate user should be created for each site. So we can protect other sites if one of the users is hacked. The examples in this article are written taking into account the fact that you created users according to the instructions .
It so happens that you need to block access to the site from a particular site. If nginx is installed on the server, then this problem is solved in a couple of lines.
if ($ http_referer ~ * "example \ .com") { return 403; }