Miscellaneous Server Tips

  • Make sure index.php is considered a default index page. If it isn’t, add a .htaccess file (or edit the existing file) in the root (e.g., htdocs) directory with the following line:
    DirectoryIndex index.php index.htm index.html
    or just modify the DirectoryIndex line in the httpd.conf file
  • Make sure that visitors to your site can’t view directory contents. If your webhost uses cPanel choose the Index Manager option. If you have secure shell access to your server, in the httpd.conf file comment out the line Options Indexes FollowSymLinks MultiViews Includes
  • Non-www domains should be redirected (via 301 redirect) to your www domain to avoid search engine indexing issues.
  • Password protect any sensitive (e.g., administrator) directories.
  • Make sure you are using an appropriate (and useful) 404 (page not found) page.
  • Make sure you know all relevant paths (sendmail, PHP, PHP.ini, Perl, MySQL, access logs, http.conf, bash, cron).
  • Beware of ballooning mqueue. If you are sending out lots of email (via newsletters, for example), bad recipient addresses will cause your mail server to resend messages multiple times, each time adding files to the mqueue folder (on my system, /var/spool/mqueue/). If you don’t occasionally delete the files in this folder your disk usage can balloon and may eventually surpass your webhost disk space limit.
  • Make sure you have a SPF record.
Like this content? Why not share it?
Share on FacebookTweet about this on TwitterShare on LinkedInBuffer this pagePin on PinterestShare on Redditshare on TumblrShare on StumbleUpon
There Are No Comments
Click to Add the First »