background preloader

Linux, server, install, config

Facebook Twitter

Help! Linux ate my RAM! Configuring Apache/PHP/MySQL for Low Memory (RAM) VPS. As you known, I’ve moved from HostGator to DigitalOcean for two months and I shared some tips to build your own perfect LAMP server optimize for WordPress.

Configuring Apache/PHP/MySQL for Low Memory (RAM) VPS

With the VPS expansion you can now get a (very) small virtual private server (VPS) for a very affordable price. However, when you get a server with something like 256MB or 512MB RAM and a portion of CPU power, using default MySQL/PHP/Apache settings is a pretty bad idea. Currently, I’m running 3 websites with DigitalOcean‘s lowest plan: 512MB RAM/1 CPU. Not sure for load, but lets say 5-10k visitors per day. If you follow my guidelines in previous post, RAM usage will be increase up to 400 MB then running out in 1 – 2 weeks even you turned on swap. We Strongly Recommend MyThemeShop Themes for WordPress sites MyThemeShop is renowned for its quality and unique themes. As a NARGA.NET reader, I give you a SPECIAL PROMO to HELP you save 30% when upgrade your MyThemeShop to Premium. Determining Free Memory and Swap Activity.

How to optimize apache web server for maximum concurrent connections or increase max clients in apache - Wiki. From Wiki Apache Performance Tuning Apache 2.x is a general-purpose webserver, designed to provide a balance of flexibility, portability, and performance.

How to optimize apache web server for maximum concurrent connections or increase max clients in apache - Wiki

Although it has not been designed specifically to set benchmark records, Apache 2.x is capable of high performance in many real-world situations. Compared to Apache 1.3, release 2.x contains many additional optimizations to increase throughput and scalability. Most of these improvements are enabled by default. What are MPM's It modifies the basic functionality of the apache server related to multi-thread & multi-processes style of working.It must be built into apache at compilation with http_core and mod_so modules.Only one MPM can be loaded into the server at any time. Choosing an MPM Apache 2.x supports pluggable concurrency models, called Multi-Processing Modules (MPMs). Different types of MPM There are 2 types of MPM's mpm_prefork_module.


Linux - OOM Killer - killed MySQL server - Unix & Linux Stack Exchange. How and When To Enable MySQL Logs. If you are a web developer, you need to refer to various log files, in order to debug your application or improve its performance.

How and When To Enable MySQL Logs

Logs is the best place to start troubleshooting. Concerning the famous MySQL database server (or MariaDB server), you need to refer to the following log files: The Error Log. It contains information about errors that occur while the server is running (also server start and stop) The General Query Log. This is a general record of what mysqld is doing (connect, disconnect, queries) The Slow Query Log. This article does not refer to The Binary Log. The official documentation about MySQL logs is available here. Enable logs from MySQL configuration Logging parameters are located under [mysqld] section. Edit MySQL configuration file: This is the default setup for Logging and Replication (in Debian server).

All log files are NOT enabled by default MySQL setup (except the error log on Windows). Error Log Error Log goes to syslog due to , which contains the following: .bashrc generator: create your .bashrc PS1 with a drag and drop interface. Installation de Subsonic sur un VPS GANDI et Ubuntu 12.04 - Ca faisait un moment que je m'intéressais au moyen de mettre en ligne ma musique afin de l'écouter depuis un peu partout sans avoir à trimbaler la totalité de ma bibliothèque, puis il m'a paru sympathique de permettre cet échange au sein de mon petit cercle amical ou familial.

Installation de Subsonic sur un VPS GANDI et Ubuntu 12.04 -

C'est toujours sympa d'échanger ses curiosités musicales. Du coup, au vu de la bande passante potentiellement mobilisable, il a semblé pertinent de me monter un serveur de streaming personnel sur un serveur dédié. Un des outils les plus adapté pour cet usage est subsonic qui permet d'uploader de la musique , de l'écouter en ligne , de gérer les playlists et autres joyeusetés... Le tout pour plusieurs utilisateurs. L'interface présente bien et dispose de plusieurs solutions de personnalisation, la navigation y est claire. Il ne reste plus qu'à le déployer sur un serveur Dédié. Achat et mise en place du VPS Chez Gandi Achat , gestion des ressources et création de serveur: L'interface de gestion des serveurs: $su root à.