accidentally deleted /var/log/apache2 and now can’t restart apache

This happen when you deleted tmp files and /var//log* files then this types of error as apache not rebuild , service httpd restart error or modsecurity failed to open the audit log file /etc/apache2/logs/modsec_audit.log or Login with ssh, then try: Code: sudo mkdir /var/log/apache2/ sudo touch /var/log/apache2/ {access,error,other_vhosts_access,suexec}.log sudo chown -R root:adm /var/log/apache2/ sudo chmod […]

Continue Reading

change http to https force SSL with .htaccess

You can force an HTTPS connection on your website by adding these rules in your website’s .htaccess file: 1 2 3 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L] If your website is in a subfolder, use this code instead: 1 2 3 4 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} folder RewriteRule ^(.*)$ […]

Continue Reading

setting multiple PHP versions on one account htaccess

Below is an example of having multiple directory locations using different versions on PHP. The following example shows the “public_html” is using PHP 5.4, the “public_html/othersite” using PHP 5.2 and so forth. public_html 5.4 public_html/othersite: 5.2 public_html/someothersite: 5.3 public_html/someothersite/yetanother: 5.4 Using the Default PHP version To use the system default PHP, use the following in […]

Continue Reading
Intel xeon servers

Intel Xeon Dedicated servers

Dual Intel Xeon 5150 Processor: Dual Intel Xeon 5150 2.66Ghz – 2 processors 4 Cores / 4 Threads RAM: 8 GB ECC DDR3 HDD: 500 GB Enterprise Grade SATA II Monthly Bandwidth: 20TB Monthly [email protected] OS: Linux/Windows* IP Address: 5 usable IPv4 Address Location: USA $49.00 USD Monthly https://timewebhosting.com/billing/cart.php?gid=5   Dual Intel Xeon 5520 Dual […]

Continue Reading

How to make a single domain base nameserver on 2 or more hosting

How to make a single domain base nameserver on 2 or more hosting   suppose your hosting company name is timewebhosting.com you have reseller from Deferent server 1.hostgator 2. Bluehost you want use for ur Hostgator hoost NS1.TIMEWEBHOSTING.COM NS2.TIMEWEBHOSTING.COM and NS3.TIMEWEBHOSTING.COM NS4.TIMEWEBHOSTING.COM for bluehost server. its very easy you no need any extra cost or […]

Continue Reading

Dedicated Web Hosting

Get Free Domain name for life time on dedicated shared hosting unlimited space unlimited bandwidth unlimited domain unlimited sub domain unlimited database unlimited ftp account unlimited park domain unlimited email unlimited mailing list 24/7 live support phone support ticket support email support. 99.9% uptime guarantee 50% discount code – twh50off2013 http://lnkd.in/KQW7yG order now  http://www.timewebhosting.com/billing/cart.php

Continue Reading