centos

Why does vi behave differently in Ubuntu than in CentOS?

I've been getting more and more comfortable using vi on a daily basis, but one thing that bothers me is that when I use it on Ubuntu it behaves differently than when I use it on CentOS (and probably other places). I actually prefer the way it works in CentOS. Here are three things that are really bothering me on Ubuntu: In CentOS ins...

Transition from Python2.4 to Python2.6 on CentOS. Module migration problem.

Hey guys, I have a problem of upgrading python from 2.4 to 2.6: I have CentOS 5 (Full) It has python 2.4 living in /usr/lib/python2.4/ Additional modules are living in /usr/lib/python2.4/site-packages/ I've built python 2.6 from sources at /usr/local/lib/python2.6/ I've set default python to python2.6 Now old modules for 2.4 are out...

how do I find which rpm package supplies a file I'm looking for?

As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would install the mod_files.sh file with the php-devel x86_64 5.1.6-23.2.el5_3 package , but the file appears to not to be installed on my filesystem. How do I find out which package installs the specific file ...

Automate CentOS installation with VMware for testing

Is is possible to automate the installation of an OS using VMware or any other virtualization product? One of our products consists of a customized version of CentOS that installs the OS and our application on a server. It's much like any CentOS/RHEL installation where you choose a mode that corresponds to different kickstart options, ...

Starting synergy automatically on RHEL/CentOS

I have a Red Had Enterprise Linux 5 and a CentOS 5 box, both of which I am trying to configure to automatically connect to a synergy server on startup. I have followed the guide at http://synergy2.sourceforge.net/autostart.html and configured them the same way I configured previous Ubuntu 7.10 boxes, and this only seems to get me half wa...

require_once failed to open stream permission denied

I keep getting the error below even after changing the permissions of the folder. I don't know what to do. Not sure why. Any help would be greatly appreciated. I'm working with cent os server and this is a php script. require_once(mysql_connect.php) [function.require-once]: failed to open stream: Permission denied Date/Time: 7-28-2009 2...

Eficient logging of stdin with rsyslog

Hello, Our environment: CentOS 5, which comes with Apache 2.2 and rsyslog 2.0.6 In order to send Apache 2.2 error log we followed instructions found on the here: http://wiki.rsyslog.com/index.php/Working_Apache_and_Rsyslog_configuration It works, but the included perl script is very inefficient - it takes huge part of the system resou...

"Connection Reset" error on Django Admin file upload

WheneverI try to upload an mp3 file through a CMS I built with the Django Admin contrib pacakage, the server takes a couple minutes, then gives me a "Connection was reset" error. I'm running Django on a CentOS server using NGINX which is proxying Apache with mod_wsgi for python. Could this be a server settings issue? ...

new django app's from 1.1 causing 500 error

i'm running on wsgi on centos 5... i've recently updated locally from 1.0 to 1.1 I updated the server using svn update now when I apply a new app developed locally to the server it returns with a 500 error. all i'm doing is python manage.py startapp appname adding the app into installed_apps in the settings file and uploading thi...

Prototyping Web App Framework

I've been searching SO for ideas and suggestions on what best to use for prototyping a web app (see related question section). I have 3 weeks to created a prototype to demo. All functionality is specified. The UI is not but this is not required for the demo. In the past I have built highly bespoke solution in Perl and/or PHP, using Jav...

Issues with large directory and cp command

I am trying to copy all jpgs from 1 directory to another but only new files and ones that have been updated. I am using the following command: \cp -uf /home/ftpuser1/public_html/ftparea/*.jpg /home/ftpuser2/public_html/ftparea/ And I am getting the error: -bash: /bin/cp: Argument list too long I am assuming that there are 2 many ...

Cannot install Ruby on CentOS

Hey folks, I just cannot install Ruby on my CentOS (which is also hosting a cPanel). sudo yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri audit_log_user_command(): Connection refused Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile base: mirror.sov.uk.goscomb.net updates: mirror.sov.uk.goscomb.net ...

Howto make MCrypt and PHP work together on CentOS

Hi all, I've installed mcrypt on CentOS ( via yum ), but when I try to do a dl() call in A), I get the message in B). A) dl( mcrypt.so ) or die('The Mcrypt module could not be loaded ['. $prefix . 'mcrypt.' . PHP_SHLIB_SUFFIX .']'); B) The Mcrypt module could not be loaded [ mcrypt.so ] Now, I know that yum has installed mcryp...

compile against libc++ statically

I wrote some custom c++ code and it works fine in ubuntu, but when I upload it to my server (which uses centos 5) its fails and says library is out of date. I googled all around and centos cannot use the latest libraries. How can I compile against the stl so that it is included in the binary and it doesn't matter that centos uses an ol...

latest mono on centos

How can I install the latest version of mono (maybe from trunk) on the centos (5.3+) ? EDIT: Or do I have to change my server environment to Ubuntu Server or OpenSuse ? ...

Problem with GCC allocated memory on VPS

Hey all, I am trying to install a python module on my VPS and am running into the following problem once I try to run the install: virtual memory exhausted: Cannot allocate memory error: command 'gcc' failed with exit status 1 I tried a few things that I read online to try to solve this but have yet to have any luck. I spoke with a ...

compile php5 on centos with --enable-pcntl

I am trying to enable pcntl on my php on centos. I see I am suppose to do a ./configure make build but have not ever done it. Could someone give me some direction? ...

Which version of Rebol 2 do I use on CentOS?

Can somebody please tell me which version of Rebol 2 to use on CentOS? There are a couple of Linux versions on this page: http://www.rebol.com/platforms.html I'm going to have a go at this tutorial: Quick and Easy CGI - A Beginner's Tutorial and Guide By Carl Sassenrath. Thanks ...

Cannot connect to a modified (bundled and registered) Amazon AMI

Hi all, I am having problems connecting to an AMI that I created by modifying an existing linux ami, bundling it and registering it. Heres what I did - Launch existing CentOS AMI (ami-cb52b6a2) - this is a Rightscale LAMP image configured Apache, PHP etc and copied over some PHP scripts etc Tested it - all worked as I want it to I bun...

freeware HTML creating tools for Linux

I have linux centos 5.3. I am in progress to create a website but i am not aware of writing HTML. I need some tool to convert text to html. On google I have found many tools with can help in creating html pages but all are for windows. Can anyone please suggest me any similar tool for linux system. ...