ubuntu-server

Page anchor with mod_rewrite?

I'm trying to set up page anchors on a website that uses mod_rewrite (Apache2 running on Ubuntu Server 9.04). My htaccess file looks like this: RewriteEngine On RewriteRule ^information.php/([A-Za-z0-9-]+)/?$ information.php?display=$1 [NC,NE] If I was using regular URL's the query would look something like this: http://mydomain/info...

How can I save a process resource from proc_open in order to check the status later on?

I'm running a sh script that runs a java process through php on ubuntu server. I'm using proc_open for running the process. usually the Workflow goes like : request a page -> script runs (until it's finished) -> result page. In my case the script runs in parallel so the server won't wait until the script is finished (it takes ho...

Installing Directory Services on Red Hat Enterprise Linux 5.4

Is there a free alternative for setting up directory services on RHEL 5.4 without purchasing their 5000$ package? Is there an option for setting up network file systems? I'm currently investigating into the merits and demerits of installing Ubuntu Server Edition and Red Hat Enterprise Linux on our HP ProLiant Servers. RHEL has far more r...

Tracking file complete download

Hello, I have a file hosting site and users earn a reward for downloads. So I wanted to know is there a way I can track whether the visitor downloaded whole file so that there are no fake partial downloads just for rewards. Thank You. ...

How to use apache logs to check complete file downloads.

Hello, I have a file hosting site thats using this script MFHS. I want to develop a point system of my own in which points will be rewarded only if the visitor downloaded the whole file. How can I track it and where are the logs relating to it saved in apache? I am using unbuntu server. Or else is there any easier way? The average fi...

Apache Custom Log Format to track complete file downloads

Hello, I am trying to write a reward system wherein users will be given reward points if they download complete files, So what should be my log format. After searching alot this is what I understand its my first time and havent done custom logs before. First of all which file should I edit for custom logs because this thing I cant fin...

Building ubuntu server packages

I have developed some C++ apps on my Ubuntu desktop. I want to create installation packages so that I can install them on a Ubuntu server. Can anyone provide guidelines on how to create an Ubuntu server package? ...

Deploying a Rails app on an Ubuntu server using Git

I'm completely new to Linux, but today I find myself setting up a server (Ubuntu 10.04 LTS lucid) from scratch to host a Rails application. Anyway, I managed to get a Rails app up and running on the server itself, but I had to scrap that because I want to use Git. So I setup a git repository on the server, then pushed all the code from ...

Using aptitude to install extra php modules (after php has already been installed)?

Hello. I recently setup an Ubuntu Server 10.04 LTS server for a client which uses a PHP based forum. It's all gone well, but now it seems I need to install a new php module to enable spell checking in the forum (the forum is Simple Machines Forum) So when I first setup the server, I installed like this: sudo aptitude -y install php5-c...

Ubuntu 10.04 Server switching to static IP

I am running an Ubuntu 10.04 server installation and I recently had to switch it from DHCP to static ip. I edited /etc/network/interfaces file and switched "iface eth0 inet dhcp" to "iface eth0 inet static address 192.168.1.167 netmask 255.255.255.240 network 192.168.1.160 broadcast 192.168.1.175 ...

time of disconnection in ubuntu server

in ubuntu server (with ssh protocol), how I can change the time of disconnection for inactivity? ...