How to: Set error_reporting in PHP.INI properly

sshYour new Centos 6.x server will quickly build up logs and the php.ini log is one that can get huge. If you only want to see real errors then you need no more than the following setting in your php.ini.

Edit your current PHP.INI

nano /etc/php.ini

Replace the error_reporting setting as follows

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

In the even that you require a less strict log level, you can change the entry when required, debug your session then promptly change it back.

How to: Restrict use of Perl, CGI and insecure Scripting

sshWith Plesk 12 you can create a “preset” which limits the type of scripting that can be assigned by your clients. This can help with the problem where you do not allow Perl or CGI but your Reseller clients can create service plans that allow these restricted services.

To prevent this from occurring, you can create presets which will not allow your clients to override these scripting options.

The file you need to edit

nano /usr/local/psa/admin/conf/site_isolation_settings.ini

In general, your PHP will always be switched on. Your PHP should be handled by FastCGI (for performance and security). Set Perl and CGI to “off” as follows

; The section describes allowed hosting options
[hosting]
php = on
php_handler_type = fastcgi
python = off
perl = off
cgi = off;
;fastcgi = any
;miva = off
;ssi = any
;ssl = any
;shell = /usr/local/psa/bin/chrootsh
;asp = any
;php_safe_mode = off
coldfusion = off

You can easily restore the original configuration files whenever required

cp /usr/local/psa/admin/conf/site_isolation_settings.ini.default /usr/local/psa/admin/conf/site_isolation_settings.ini

As a Plesk 12 admin, you can override these settings for any subscription. This simply eliminates these scripting options from showing as options to your clients.

How to: Remove DRWEB from your Plesk dedicated server

With each new Centos based Plesk server, one of the first things you might want to do is remove the dr-web services. This is easily achieved.

yum remove drweb-base drweb-bases drweb-common drweb-daemon drweb-updater psa-drweb-configurator

Should you need to reinstall the server, you can do so in the Plesk autoinstaller or update manager in the main panel.

How to: Enable Graceful Restarts in Plesk

sshEnabling graceful restarts in Plesk 12 will reduce the apache service downtime for your clients. By default, graceful restarts are not enabled.

Let’s log into the psa database

mysql -u admin -p`cat /etc/psa/.psa.shadow` psa

Verify if “graceful restarts” is already enabled

select * FROM misc WHERE param = "restart_apache_gracefully";

If no values are returned then let’s go ahead and make it so

INSERT INTO misc VALUES ('restart_apache_gracefully', 'true');

Now let’s reconfigure all the apache domain configurations, it can take a couple of minutes.

/usr/local/psa/admin/bin/httpdmng --reconfigure-all

You will now find your apache service outage time is drastically reduced.

Domain – Frequently Asked Questions

Common Domain Name Questions

Whether your are looking for support on an existing domain name, or just looking to make sure the features you require are included before your register your new domain name, you will find answers to the most common questions in this F.A.Q.

  1. What is a domain name?
  2. What is a nameserver?
  3. What is a DNS ‘A’ record?
  4. How do I build a free website with my domain name?
  5. How do I connect my domain name to Moonfruit.com?
  6. How do I connect my domain name to Wix.com?
  7. How do I connect my domain name to Weebly.com?
  8. Why is there a DNS propagation delay when I make DNS/Nameserver changes?
  9. How do I connect my domain name to MobileMe.com for publishing using iWeb?
  10. How do I get my MobileMe site to work without the WWW prefix?
  11. Can a non-UK citizen register .UK domain names?
  12. What does “Registration request being processed” mean on my WHOIS record?
  13. Why does ‘Everyones Internet’ show as my non-UK domain name registrar in WHOIS?
  14. What is the difference between a parked domain and a hosted domain?
  15. How can you offer free domain names? Is there a catch?
  16. Can I use my domain name to point to my free ISP webspace?
  17. Can I have any email sent to my domain name automatically forwarded to my primary email address?
  18. Can I change my domain name servers?
  19. Can I change my domain name IPSTAG?
  20. How do I change my domain email/web forwarding?
  21. I don’t want hosting now, can I add it to my domain name later?
  22. I want to change my domain name, can I get a refund for the old name?
  23. How long does it take to register a domain name?
  24. What characters are valid in a domain names?
  25. A domain name I want expired a while ago, why can’t I register it?
  26. I just registered my domain name with you but it still says its available?
  27. My Domain Name is not working yet, what is wrong?
  28. Do I have to pay VAT even though in my country we do not?
  29. How do I transfer my Domain to another Provider?
  30. How do I transfer my Domain Names to UK-Cheapest?
  31. What are the domain name renewal costs after 2 years?