centos

Centos or Debian as a server OS ?

What would you choose for a server used for web hosting, dns and email and why? ...

tomcat5 fails to start on CentOS 5 with NoClassDefFoundError exception

Tomcat fails to start even if i remove all my applications from the WEBAPPS directory leaving everything just like after the OS installation. The log (catalina.out) says: Using CATALINA_BASE: /usr/share/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JRE_HOME: Created MBea...

How do I Upgrade to Subversion 1.5 On CentOS 5?

My development server (CentOS 5) is running Subversion 1.4.2, and I wish to upgrade it to 1.5. I have read in various blogs and documents scattered around the web that this may be done by using RPMForge. I have followed the instructions found on CentOS Wiki, including installing yum-priorities and setting my priorities as indicated (1 ...

What command(s) control the behavior of /etc/rc*.d on Redhat/CentOS?

/etc/init.d/* /etc/rc{1-5}.d/* ...

Perl or Python script to remove user from group

I am putting together a Samba-based server as a Primary Domain Controller, and ran into a cute little problem that should have been solved many times over. But a number of searches did not yield a result. I need to be able to remove an existing user from an existing group with a command line script. It appears that the usermod easily ...

Mounting NTFS filesystem on CentOS 5.2

Hello guys, I want to mount some internal and external NTFS drives in CentOS 5.2, preferably automatically upon boot-up. Doesn't matter if it's read/write or read-only, but read/write would be preferred, if it's safe. Edit: Thanks for all answers, I summarized them below =) ...

Make and build utilities on CentOS/RHEL?

Hello, I've been unsuccessfully searching for a way to install make utility on my CentOS 5.2. I've looked through some RPM repositories and online, with no avail. Installing gcc, gcc-c++ didn't help! Package build-essential is not made for CentOS/RHEL. I have RPMFORGE repo enabled in YUM. ...

Can't access MySQL server, don't know the password of a root account

For some reason beyond me I can't access the mysql server on a machine. I'm looking at an untouched MT (dv) server with CentOS 5. Any ideas on how to get the root going? ...

Help with Plesk and Virtuozzo

I I have just moved to a virtual server to host my websites and the service comes with Plesk and Virtuozzo. The documentation is pretty poor and I can find no books on the subject. Does anyone have a simple introduction to Plesk with an idea of what you can do, how you should do it etc. Specifically, I would like to set up a website with...

XEN How to put virtual machines in a directory other than /etc/xen

On my CentOS 5.2 box the XEN virtual machine configuration files have to be located in /etc/xen to be started without specifying a path. I want to move my virtual machines into /etc/xen/vm to separate them from the configuration files of the xen server. Is there an easy way to change the default directory from /etc/xen to /etc/xen/vm ? ...

LigHTTPD + RoR: "spawning fcgi failed"

I'm trying to set up Ruby on Rails on lighttpd. The operating system is CentOS, though it may be notable that this is a Xen-based VPS. The problem occurs something like this: bash-3.2# /etc/rc.d/init.d/lighttpd start Starting lighttpd: [ OK ] bash-3.2# /etc/rc.d/init.d/lighttpd status lighttpd ...

subversion web interface

I have recently installed subversion onto a linux server (CentOS) and everything works great. I am wondering if there are any web interfaces available for managing the repositories i.e. create / delete repositories, manage users and permissions, view revision history etc. The idea is that I can do everything via a web interface instead...

How painful can a Linux to OpenSolaris migration be?

We have a business application that basically runs on an os-independent stack (tomcat+java+mysql) but we have always run it redhat or centos. There is a customer that is insisting to run it on opensolaris for his own reasons (an expensive everything-is-included support agreement with Sun). How painful can such a migration be? We have ...

Getting MySQL to work on CentOs 5

I've bee tearing my hair out trying to get MySQL 5 running on CentOS 5 but I've had hardly any luck. If I leave everything as default, and launch the initial install it works a charm, but if I tell the my.cnf to use a different drive to store the data, I continuously get the "Timeout error occurred trying to start MySQL Daemon." error. ...

How to debug an issue of cron's not executing a given script -- or other?

I have a Rails script that I would like to run daily. I know there are many approaches, and that a cron'd script/runner approach is frowned upon by some, but it seems to meet my needs. However, my script is not getting executed as scheduled. My application lives at /data/myapp/current, and the script is in script/myscript.rb. I can r...

CentOS install mod_dav_svn

I am trying to install subversion on a centos 5 VPS. I managed to install subversion but when I try to do yum install mod_dav_svn I get this error: Error: Missing Dependency: httpd-mmn = 20051115 is needed by package mod_dav_svn After a lot of googling I read that you need Apache 2.2 (I previously had 2.0) so I recompiled the s...

Any ideas why this NFS setup won't work?

I set up an NFS server on my CentOS box with this for the /etc/exports file: /var/www 192.168.0.0/24(rw,sync,no_root_squash) Then on my Ubuntu machine, I ran: # cd ~/ root@bill-murray:~# mount -v 192.168.0.21:/var/www ash mount: no type was given - I'll assume nfs because of the colon mount.nfs: timeout set for Thu Mar 5 13:27:59 2...

Overriding yum dependency checks when newer versions of the dependent software exist

I'm using yum on CentOS 5.1 - I hand-compiled PHP 5.2.8 from source, but have other packages installed using yum. I need to install a PHP extension via pecl, and it requires phpize to be installed as well. However, doing the following yields a dependency error: sudo yum install php-devel Error: Missing Dependency: php = 5.1.6-20.el...

Remote X session is slow [centos5]

Okay, I've scoured google and I haven't found an answer for this. Not exactly programming related unless I was trying to use an ide over the session... I have servers at the same remote location; one is older running fedora 4 (P4 3.0Ghz) and a couple of newer server running Centos5 (Quad Xeon 1.6). I can run a remote X session on bo...

How to fix this virtual host setup?

Hello all, I have setup up 2 virtual hosts that share the same IP on a centos server running apache 2. #<VirtualHost *:80> # ServerAdmin [email protected] # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/du...