# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # server info and status RewriteRule ^(server-info|server-status) – [L] # RewriteCond %{REQUEST_URI} !=/server-status # /server info and status RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} -d RewriteRule . index.php [L] </IfModule> # END WordPressRead More →

Run this script to see your SSL Version <?php $ch = curl_init(‘https://www.howsmyssl.com/a/check’); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($ch); curl_close($ch); $json = json_decode($data); echo $json->tls_version; ?>   If you want to check your open SSL version? <?php $curl_info = curl_version(); echo $curl_info[‘ssl_version’]; ?> OpenSSL 1.0.1 and later support  TLS v1.1 and TLS v1.2 If you see your OpenSSL version from 1.0.1, then it will support TLS V1.1 and TLS V1.2Read More →

Ubuntu 10.04 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 update-manager-core sudo do-release-upgrade If that’s still doesn’t work, replace /etc/apt/sources.list with this file # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution. deb http://ubuntu.datahop.net/ubuntu/ precise main restricted deb-src http://ubuntu.datahop.net/ubuntu/ precise main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://ubuntu.datahop.net/ubuntu/ precise-updates main restricted deb-src http://ubuntu.datahop.net/ubuntu/ precise-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, pleaseRead More →

RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/(file|member|photo) [NC] RewriteRule . /index.php [L] RewriteRule ^member/([0-9]+)/ /member_profile.php?m=$1 RewriteRule ^file/([0-9]+)/(.+)? /file.php?f=$1 RewriteRule ^photo/([^/]+)/([^/]+)/(.+)? /file.php?type=$1&ref_id=$2&photo=1Read More →

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 their network and try to connect to your company mail server on port 25 to send email, it will be blocked. We can’t ask the ISP to unblock it, so our solution is to create an additional port on our server so that our client can connect to that port instead of 25 to send email. If you are using WHM, it’s very easy, follow these steps below: Login into your server’s WHM (https://[main server IPRead More →

If you are looking for a good software to recover files, this is a good software: DMDE – DM Disk Editor and Data Recovery Software http://dmde.com/ I have successfully recover many disks having problem with its file system. I can recover NTFS , EXT3/4 on linux.Read More →

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 myscript.php & It run in the background, but then when my SSH ends, the job will be also suspended. After some research, finally, i found that i can use nohup command to do this job, it’s very simple nohup php myscripts.php & Remember to add & at the end of the script. If you want to check if it’s actually runnning, use this commmand jobs -lRead More →

By default Apache only allows up to 150 connections , if you want more, you need to change the MaxClients parameter in apache.conf or httpd.conf . Apache also limit the max clients to 256 , if you want to override this value, you need to add ServerLimit. Here is an example to increase the max clients to 600. # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum numberRead More →