Archives for Linux - Page 9
Mod Status – server-status .htaccess WordPress
# BEGIN WordPress <IfModule ; RewriteEngine On RewriteBase / # server info and status RewriteRule ^(server-info|server-status) - # RewriteCond %{REQUEST_URI} !=/server-status # /server info and status RewriteCond %{REQUEST_FILENAME}...
Some useful commands to work with hard disk in Ubuntu
#View Raid Status cat /proc/mdstat #View the member of a raid mdadm /dev/md1 #View Hard disk info - such as serial hdparm -i #List all hard disks detected...
How to check if your PHP support TLS V1.2?
Run this script to see your SSL Version <?php $ch = curl_init(''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($ch); curl_close($ch); $json = json_decode($data); echo $json->tls_version; ?> If you want...
Upgrade Ubuntu 10.04 to 12.04.1
Ubuntu is quite old, you can’t just upgrade it right away using do-release-upgrade, you should try the following steps: sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install...
Override WordPress .htaccess file
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/(file|member|photo) RewriteRule . RewriteRule ^member/(+)/ $1 RewriteRule ^file/(+)/(.+)? $1 RewriteRule ^photo/(+)/(+)/(.+)? $1&ref_id=$2&photo=1
Configure SMTP to listen another port with WHM
Due to the number of spammers using port 25 to send emails, many large ISPs has blocked this port from their network. This means if your client is behind...
Start Samba server
/ start -> sometimes it’s not working service smbd start -> working well
Good Recovery software
If you are looking for a good software to recover files, this is a good software: DMDE – DM Disk Editor and Data Recovery Software I have successfully...
How to run PHP in the background
I need to run some PHP scripts in the background, this script should still run while i log off my SSH session. I first try php & It...
Apache: How to increase the maximum client connection?
By default Apache only allows up to 150 connections , if you want more, you need to change the MaxClients parameter in or . Apache also limit...