Main menu:

Site search

Categories

Archive

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 [...]

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 [...]

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 [...]

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

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…. [...]

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, [...]

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 [...]

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

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 [...]

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…