1 ) Script to change server wide ownership for all cpanel users. ==================== #!/bin/bash cd /var/cpanel/users for user in * do chown -Rv $user.$mail /home/$user/etc chown -v $user.$nobody /home/$user/public_html chown -Rv $user.$user /home/$user done ====================
Custom 404 page in joomla
How to set the custom 404 page in joomla? or Change default "Joomla 404 component not found" page Ans : Create 404.shtml file under the document root then open the error.php file vi /home/username/public_html/templates/system/error.php then add the following code below...
Set expiration for you index page
If you want to set the expiration to your site means after some date or year your site shows custom error on the page then you can add following code in index page below the "<?php" code and set...
ruby lib version (1.8.7) doesn't match executable version
Error : When accessing the page and it shows the "Internal server errror" and the server logs shows the folloging error /home/username/public_html/rubytest2.htm:6: /usr/local/lib/ruby/1.8/i686-linux/rbconfig.rb:7: ruby lib version (1.8.7) doesn't match executable version (1.8.6) (RuntimeError) Premature end of script headers: /home/username/public_html/cgi-bin/eruby.cgi File...