Category Archives: Sysadmin - Page 6

Adaptec RAID arcconf – creating array from Linux command line

adaptecOne of our customers decided to add 2 more disks to his Adaptec 5085 SATA RAID controller and asked me to create RAID1 array. Of course not at the time when I could easily do it from the controller BIOS so I had to resort to Adaptec arcconf command line tool.
Read more »

Hosting: Howto redirect domain to another domain.

There is always a question on how to completely redirect some src-domain to another dst-domain properly.
And while there is the simple straightforward way to do so, there are always some dedicated server customers of the web hosting that are trying to reinvent the wheel one more time. And failing miserably.
Read more »

X-Robots-Tag in headers – fine grained crawlers control in apache

xrobotsI was asked to implement X-Robots-tag on one of our dedicated servers the other day.
This google document explains in the great details what it does and how it influences your site presentation on the search engine.
Read more »

Django on cpanel server for shared web hosting

django congrats on successful install

django congrats on successful install


I had a customer request to install Django on cpanel server shared account the other day – took me some time to get it going, mostly because of easyapache not willing to play nice.
Other then that, Jimmy’s blog entry here provides excellent instructions on how to configure it, the only difference being that his cpanel server already had mod_fcgid installed.
So, what I’ll do is just quick recap:
Things to do as root

  1. Make sure your apache had mod_fcgid compiled, if not – run easyapache script from SSH or from WHM web page and make sure mod_fcgid option checked
  2. Install easy_install script –
  3. Use easy_install to install a couple Python packages –
  4. Restart apache, make sure mod_fcgid is loaded

This is it – you can notify customer that he can do his django magic – all prerequisites are in place.

Apache, PHP, SuEXEC: added security and control

suhosin
As we know from original article using Apache, PHP in CGI mode along with suExec gives us 2 important security advantages:
– suExec allows to run PHP process with (only) the file owner user privileges, enforcing proper permissions on PHP scripts and thus allowing to avoid cross-site exploits on the server that is running multiple dynamic web sites;
– per site php.ini.
That gives some unique opportunities for securing separate web sites on the server.
Read more »

Apache, PHP, SuEXEC: when it just wouldn’t work out.

Looks like I will have a lot to say on this topic still. By now I’ve collected some cases when you can not use PHP in FastCGI mode and to keep the sites running you will need to abandon suEXEC nice and clean privilege separation mechanism in favor of mod_php/ASAPI.
Read more »

Centos5: OCFS2 cluster FS on dual primary DRBD: part 3 – setup OCFS2 cluster filesystem

Now for the final part – configuring OCFS2 on our dual primary DRBD.
Read more »

Centos5: OCFS2 cluster FS on dual primary DRBD: part 2 – setup dual primary DRBD

This is part 2 where we actually install and configure DRBD devices on top of LVM logical volume
Read more »

Centos5: OCFS2 cluster FS on dual primary DRBD: part 1 – prepare LVM on RAID1

A while ago I promised to you ( and myself) to publish the instruction on how to setup OCFS2 cluster fs for 2 nodes over DRBD dual primary configuration. Now it’s time.
I am going to split it over multiple posts to cover as many details as possible.
This is part 1 – laying the foundation – LVM over RAID1 setup.
Read more »

Mysql weekly/monthly backup: reliability in simplicity

mysqlI’ve been asked many times to put together mysql database backup with weekly/monthly rotation.
I’m pretty sure there are plenty of such scripts out there on the web.
I am going to add mine so that somebody can compare and choose.
Read more »