Archive for 'Linux'
Using rpm to cleanup after hackers…
Ever get the feeling that a file on the system is not the one you think it is? Wonder if a hacker has replaced a legit file with a evil version? It is possible to verify packages against their origional installation using the rpm tool. You can simply follow the rpm -V command with all [...]
Posted: January 18th, 2008 under Linux.
Comments: none
How to solve the PHP Error Warning: Cannot modify header information
That message is the bane of anyone that used the header function to forward to a new Location. Any output from PHP before that command will cause it to fail with a Warning: Cannot modify header information – headers already sent by… Things to check… Look at the :number in the message “headers already sent [...]
Posted: August 25th, 2007 under Apache, Linux, PHP.
Comments: none
Error while loading shared libraries with xapian
I was building a search engine with the xapian package and was running into runtime errors. Namely Error while loading shared libraries libxapian.so.15 Cannot open shared object file. long story short, always remember to put the compiled shared libraries into the /usr/lib or where ever you PATH would indicate, or add the path to your [...]
Posted: August 20th, 2007 under Linux.
Comments: none
How to install Zend in cpanel/whm
pretty darn simple to do… To install Zend Optimizer: 1. Login to your server via SSH 2. Run: /scripts/installzendopt 3. Follow the instructions on the screen to install Zend Optimizer
Posted: July 7th, 2007 under Apache, Linux, PHP, WHM/cPanel.
Comments: none
Upgrading PHP in cpanel from version 4 to 5
One thing to be aware of when doing the upgrade of cpanel via the WHM control panel, is that when you select your new version for the apache build, it unselects the check box for including PHP in the build. When the Build is complete running, you will have a PHP dead version of apache…. [...]
Posted: June 16th, 2007 under Apache, Linux, MYSQL, PHP, WHM/cPanel.
Comments: none
first steps to secure a phpbb forum from spammers
This little tidbit from sebflipper.com is really helpful for cutting down on spam that results from the default permissions on new forums in phpbb This line: INSERT INTO `phpbb_forums` VALUES (1, 1, ‘Test Forum 1′, ‘This is just a test forum.’, 0, 10, 1, 1, 1, NULL, 0, 0, 0, 0, 0, 1, 1, 3, [...]
Posted: May 28th, 2007 under Linux, PhpBB.
Comments: none
Apache logs when running cpanel
In case you have ever looked at the raw logs in the usr/local/apache/domlogs and noticed that they are getting truncated each night, it might not be logrotate.d after all. In cpanels tweak settings there is an option to have the logs deleted after stats runs. Best bet is to uncheck it and do some custom [...]
Posted: April 15th, 2007 under Apache, Linux.
Comments: none
Upside Down Ternet
Here is an interesting way to annoy those people that think they just found an open wireless access point. With some creative iptables and perl things get really interesting http://www.ex-parrot.com/~pete/upside-down-ternet.html
Posted: February 5th, 2007 under Firewalls and Security, Linux.
Comments: none
symbolic links
Say you have a huge directory name, one that would be a pain in the neck to type in every time you wanted to access it, a neat thing to do is create a shorter “symbolic link” to it. Instead of having to do something like: # cd dnetc496-linux-x86-elf-uclibc …every single time you wanted to [...]
Posted: February 5th, 2007 under Linux.
Comments: none
mod_rewrite rule generator for .htaccess
this is a link to a cool little tool that will take a messy URL and translate it into a rule for use in mod_rewrite and .htaccess to clean it up and make it SEO friendly http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml of course this will require apache and mod_rewrite to work…
Posted: January 6th, 2007 under Apache, Linux, SEO.
Comments: none