centos

Can DHCP server give out a lease time greater then one requested by DHCP client?

I have a centOS DHCP server configured to give out a lease of 20 mins. But a client is requesting a lease for 10 mins. Is it possible to configure dhcpd to give out a lease of 20 mins even if client requests for a 10 mins lease. ...

Version control solution for a build system that produces a 4GB ISO

I have a software project that at the last stage of its build, after creating all the jar files and related scripts/configuration files, I need to plant it in a CentOS ISO that has a kickstart config file that runs some postinstall scripts and installs some customized RPMs. The project is on an SVN repository and being built from there....

Sockets problem - time out

Hi, im trying to connect to a wsdl service , but getting this error: wsdl error: Getting http://api.didww.com/api/?wsdl - HTTP ERROR: socket read of headers timed out locally there is no problem, but on the remote server i get this error. remote server: Linux CentOS (FreePBX) the code: $client = new soapclient($site, true); $err ...

Alternative PHP Cache not working on centos vps

I compiled APC , with succes. Added it to php.ini (php5) Only the first page load works for a page, refresh will give connection error. if i load phpinfo() with the first loading pageload..it indicates apc is working. seems like it works..but is not returning cached pages. kind of newbe in this area..so help is welcome. ...

Why does recursive mode on chmod do everything but recursion?

chmod -R 775 *.cgi only changes permissions on the files in the current directory, the files in the subdirectory don't get modified at all. This is the exact same functionality as simply doing chmod 775 *.cgi. I have seen people use solutions such as with find and whatnot. Ok great, but why does -R mode even exist if it doesn't even acco...

Sandboxing applications on CentOS 5 as non-root

Classic problem: I'd like to be able to run unsafe applications in a sandboxed environment on my CentOS Server 5.5 server, as a non-root user. chroot would be ideal for this, but it's not able to be started by a non-root user. And a lot of the sandboxing solutions I've found online are for Debian-based distros. Any suggestions? ...

ISA like linux proxy

Hi I have installed jaxer server on my linux machine and there is on program which fetch URLs if its local url it works but for external/public URL it does not work I had this problem when I instilled jaxer on my windows machine which got solved after installing Microsoft ISA and configuring proxy through that. on linux what I shoul...

Can't Connect to PostgreSQL with PHP pg_connect()

EDIT: I just realized that this question may be better suited to ServerFault. Instead of copying it, a moderator please move it over? Thanks. I've checked php-info, and the Postgresql extension is there (pg_connect() is not undefined). I am also able to connect to postgresql using psql on localhost (I've edited my pg_hba.conf file appro...

vsftpd: install pam_pwdfile on CentOS with yum?

I'm trying to get VSFTPD to work with a virtual user so that I can just login to any directory with a user I define. Unfortunately I get the following error when trying PAM with VSFTPD: PAM [error: /lib/security/pam_pwdfile.so: cannot open shared object file: No such file or directory] pam_pwdfile doesn't seem to be available in YUM ...

Error in a rails app under apache and Phussion Passenger

Hi. I've a rails app with Oracle, Apache, and Phussion Passenger over Centos. The apps works randomly, and constantly appears this error "You don’t have permission to access / on this server." Any clue? Anyone has had the same problem? Thanks in advance ...

Install Mono on Centos5.5 using YUM

I'm a Linux neophyte and can't figure out how to install the Mono 2.6.7 runtime on CentOS 5.5 using yum. I know how to build Mono from the source. However, according to this page it is possible to install the binaries directly. I'd prefer to install the binaries to avoid having to install all the devel pre-requisites on a server with ...

DNS problem - dig resolves but curl cannot connect to host

I have recently created a Rackspace cloud server instance using CentOS 5.5. I have used yum to install the "Web Server" group (it includes Apache, etc.), added www.booztrakr.com as the ServerName in httpd.conf, made sure iptables allows on port 80. I had registered this domain with Go-Daddy and changed their name servers to the Rackspa...

MySql server startup error 'Manager of pid-file quit without updating file.'

I read in some forums that doing a giving a /bin/sh before the /etc/init.d/mysql start would solve the problem and it did. but we don't want to start it every time like that...what is the solution? I have installed the following packages from http://www.mysql.com/downloads/mysql/#downloads, I am using CentOS 5.: MySQL-community-debuginf...

VNC on CentOS 5.5 + Gnome

Hi Guys/gals I have successfully started a vncserver and can connect to it through the browser via 111.111.111.111:5081. It looks like it's working because I do see the Gnome cursor (X). However, apart from the cursor I just have a black screen. No taskbar or anything. Right click provides nothing either. Does anyone have any idea wh...

phing parameters

for deployment, we use the awesome tool PHING. We'd like to be able to pass a parameter to the "phing" command when deploying, like this: phing 1.1.1 -> we would like to capture 1.1.1 inside the phing build script to extract a certain SVN TAG from our repository and move that tag to production. Is that something that's possible? ...

How to install rrdtool on centOS 4.4 ?

first I 'm trying to install rrdtool using: yum install rrdtool but failed: no source? so I try to install it from source when I'm doing: ./configure It says: configure: error: Please fix the library issues listed above and try again. some library issues it list to me: configure: WARNING: ------------------------------...

shell script (running via cron) to enter password when prompted

Hi, I have a daily cron task which automatically unrars a rar file and processes it's contents, however, the contents are now password protected so i'm wondering if there's a reliable way to echo the password when prompted? The password prompt comes from the UNRAR program i've installed, running on CentOS. Thanks for any help! ...

Nginx doesn't stop or restart

CentOS. service nginx stop/restart - does not work. it just continuing putting points (a progress bar), like this: Stopping nginx:........ [ OK ] and that's all. 'nginx -t' shows positive result. btw, restart worked till some moment ...

iptables redirect local cennections

Hi, I used iptables -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 8085 to redirect all http requests to jboss server on port 8085. This works fine if packets come from outside. If I try to open from the same machine it doesnt work. Telnet gives connection refused. How do I redirect local connections? Working on ce...

How to configure local web server such that it should switch between one php version to another

I'm developing one web application, using PHP eclipse IDE. For an instance i want to switch from one PHP version to another version which resides in different location. Below is my working environment : 1) Having Centos OS 2) PHP 5.1.6 have installed already while installing centos OS 3) Above PHP is installed in /usr/bin/ path 4) I...