How to enable nginx stub status Edit nginx.conf add in the server { ….. } block/context location /nginx_status { # Turn on nginx stats stub_status on; # I do not need logs for stats access_log off; # Security: Only allow access from your IP address # allow your ip address; # Send rest of the world …
Category Archives: Linux
Could not open archive dir for / Could not open archive mbox dir
/usr/local/cpanel/scripts/update_mailman_cache How to fix the errors Could not open archive mbox dir for somelist: No such file or directory at /usr/local/cpanel/Cpanel/Mailman/DiskUsage.pm Could not open archive dir for somelist: No such file or directory at /usr/local/cpanel/Cpanel/Mailman/DiskUsage.pm Solution If we have a list named list1_webinformat.com the error is Could not open archive mbox dir for list1_webinformat.com: No …
Continue reading “Could not open archive dir for / Could not open archive mbox dir”
cPanel/WHM The system cannot determine the base domain
WHM error: The system cannot determine the base domain (domain name) Solution : run /scripts/upcp –force
How to fix no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
sudo apt-get remove libpam-smbpass or pam-auth-update and remove “SMB password synchronization”
Ubuntu 12.04 – service mysql start start: Job failed to start
Recently after a backup restore MySql server failed to start with the following error message: start: Job failed to start To fix start: Job failed to start I had to re-install the MySQL server. I hope you have a backup of your data because you will lose all your MySQL data running the following commands
Ubuntu server no login console
After boot there was no console prompt to login. The issue was related to the VGA resolution. To fix Ubuntu server no login console modify in /etc/default/grub # Grub Resolution GRUB_GFXMODE=1024x768x24 # Kernel param to set a port to resolution and vertical refresh. GRUB_CMDLINE_LINUX_DEFAULT=”nomodeset video=VGA:M1024x768@60m” Of course, you can set resolution to suit your needs …
Check if php-fpm is running and start if it’s not running
There are several solution on how to check if php5-fpm is running but they all failed (link1, link2). The solution to check if php-fpm is running is to use wget to get a file in your server. If wget fails then restart the service. This is the script to properly check if php-fpm is running and start …
Continue reading “Check if php-fpm is running and start if it’s not running”
Make phpMyAdmin work with Varnish Cache.
How to make phpMyAdmin work on Nginx server with Varnish Cache? Assuming you have configured Varnish Cache to drop cookies here is what you have to change to make phpMyAdmin work properly on your Nginx server. after you install phpMyAdmin make a symbolic link sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/www edit /etc/varnish/default.vcl – add in sub vcl_recv if (req.url …