centos

Websvn/Apache/genshi Segmentation fault

child pid 7948 exit signal Segmentation fault (11)
I got the above error message when viewing some of my php files in my svn repository. I think the files are misformatted (something to do with inline comments) but I can't be bothered to fix them just yet.
Instead I turned off genshi-no crash.

I then turned on enscript in the websvn folder /include/config.php (also where you turn off genshi by commenting $config->useGenshi(); out.
$config->useEnscript();
$extEnscript['.php'] = 'php';
$extEnscript['.ctp'] = 'php';
All done!

Drupal and CentOS

I had a look at my drupal status page after migrating to my CentOS VPS. Quite a few errors. Here are some of the fixes:

yum install php-gd (then restart httpd with service httpd restart)
yum install ImageMagick
chmod 755 sites/default/files (not you might have to change owner of folder etc)

I also installed the excellent workspace module: http://drupal.org/project/workspace

CentOS / Linux useful commands

'chkconfig --list' shows services and at what level they run
'chkconfig --levels 345 sendmail on' to have sendmail start at boot for example.
'iptables -L' prints current iptables ruleset add '-n' or '-n -v' for more details
'service sendmail restart' restarts sendmail for example
'service --status-all' is useful

CentOS 5 Security

First run setup as root.
Here you can enable selinux and configure the firewall. You can enable the usual ports (www/https/ssh/ftp etc) and also add custom ports.

If you want to secure it more see the section 'Beefing up IPTables' at http://wiki.centos.org/HowTos/OS_Protection#head-18126e4c32a7a29b8e2515b...

I deleted the lines allowing port 631 (ipp/cups) from my /etc/sysconfig/iptables.

Install/use aide - see http://www.bofh-hunter.com/2008/04/10/centos-5-and-aide/

CentOS fixes after fresh install

The mbstring PHP extension was not found and you seem to be using a multibyte charset.
yum install php-mbstring
Install PHP 5.2 on CentOS 5.2 Using Yum
Create /etc/yum.repos.d/centos-test.repo and enter following lines in it:
[c5-testing]
name=CentOS-5 Testing 
baseurl=http://dev.centos.org/centos/5/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
Then run:
Syndicate content