Ubuntu Servers :: Running R From An Apache?

Dec 9, 2010

I'm looking to run some R scripts on a mysql database (engine =csv) from the apache webserver.

The goal is to record some statistics/numbers while someone is logged in, pass those numbers to r, run some statistics algorithms on the passed set of data and output an image file back to the logged-in user's html web page.

Doing this along with knowledge on how to call general r functions from within a php framework would be great.

View 1 Replies


ADVERTISEMENT

Ubuntu Servers :: Get Svn Over Apache Running On Maverick?

Jan 7, 2011

I'm attempting to get svn over apache running on maverick server. Here is my site config

Code:
<VirtualHost *:80>
ServerName common.subversion.xxx.xxx
ServerAdmin xxxxxxx
DocumentRoot /var/www/SVN
AddExternalAuth pwauth /usr/sbin/pwauth
SetExternalAuthMethod pwauth pipe

[Code]...

While the redhat posts indicated selinux, when I checked it with sestatus (after first installing sestatus), it came back disabled. So what is locking down the /var/www directory?

View 1 Replies View Related

Ubuntu Servers :: Apache Processes Listed But Httpd Not Running?

Dec 5, 2010

I have written this script to monitor Apache2:

Code:
#!/bin/bash
#count lines that show apache2 but not the fgrep itself
let i=`ps aux | fgrep apache2 | fgrep -v grep | wc -l`
if [ "$i" -gt 0 ]
then
#log something

[Code]...

It has all been working fine until recently when Apache is becoming unresponsive. I manually ran ps to check and there were 3 processes. However when I ran apache2ctl graceful I got the message 'httpd not running, trying to start' Is there a better way to check if a daemon is up?

View 4 Replies View Related

Ubuntu Servers :: Running Apache And Etherpad Lite On Port 80?

Sep 1, 2011

I'm running both Apache on my site and Etherpad Lite, both on different domains. However, running them both on port 80 causes a conflict. I tried to use a reverse proxy in Apache (this is the configuration -- I'm not sure if I did it right), but it doesn't seem to do anything.

View 1 Replies View Related

Ubuntu Servers :: Monitor Remote - Check If Apache Is Running And If Its Not Send Out A Mail

May 11, 2011

im looking for a program that lets me monitor server remote a check if apache is running and if its not send out a mail pretty much something like the Big Brother projeckt was before they went comercial i found a few projekts but most havent been updated for years anyone got a clue on any active projekt that does this?

View 1 Replies View Related

Programming :: Apache Mod_write/proxy - Bunch Of Web Servers Running On My Internal Network

Jan 26, 2011

Suppose I have a bunch of web servers running on my internal network:

And I have a dyndns account, I was wondering:

How can I do this?

View 2 Replies View Related

Ubuntu Servers :: Unable LDAP Support For Ubuntu 10.04 LTS Server Running Apache 2?

Jul 27, 2010

I'm wondering how I can enable LDAP support for my Ubuntu 10.04 LTS server running Apache 2 and PHP 5.3.2? What I'm trying to do is allow users on my existing company's LDAP system to login to my Elgg site automatically (and possibly have their details filled automatically).

View 1 Replies View Related

Ubuntu Servers :: Creating Virtual Apache Servers?

May 3, 2010

I have Webmin installed on an Ubuntu server. I currently have a successful apache server running on port 80, however I want to create a virtual host on port 81. When I try I go to servers->Apache Webserver-> Create Virtual Host I change the port to 81 and the document root to /var/port81www then I click create. How ever when I goto 192.168.1.5:81 (local ip, I know I have to port forward but its not even working local) it does not work.

View 5 Replies View Related

Red Hat :: Running IPmonitor To Monitor The Disk Usage On Our Servers - Running Df -h

Mar 19, 2010

We are running IPmonitor to monitor the disk usage on our Linux servers. It does not seem to coincide with what is reported when running df -h. For example on a Red Hat 5.3 server - our IPmonitor shows that 85% is used on the /usr partition, however when I do a df -h on the server it shows that 91% is used. Why there would be a discrepancy? IPmonitor uses SNMP.

View 5 Replies View Related

CentOS 5 :: Getting Apache Up And Running?

Jun 25, 2009

I've just installed latest verion of centos and am having trouble getting Apache to work or even knowing how to test it's working.

When I open up firefox and type 'http://localhost/' I am getting the message "failed to connect" firefox can't establish a connection to server localhost.

View 2 Replies View Related

Ubuntu :: Web Server Not Working - Running Apache And Mysql

Apr 16, 2010

i have apache and mysql running, i can access my web server by visiting localhost on port 80 but for some reason when it doesnt work when i try using my ISP provided IP address... (it used to work).. i have my router setup with a DMZ on my LAN IP (my computers IP, this is the computer in my home network that serving with apache).. i also cant seem to shut down my mysql server (theres an update ive been trying to get) even when i use sudo...

View 5 Replies View Related

Ubuntu Security :: Need Daemon Running Apache Server?

Apr 5, 2011

I'm trying to modify an existing user so that any files they create can be at least read (although writing and execution would be nice) by any other user. The reason is because I need the daemon running my Apache server to be able to access files created by a daemon running under this user, files which will be created and accessed in real-time.

View 3 Replies View Related

Ubuntu Security :: Running Shell Commands From Apache

Jun 3, 2011

Ok, so I have a few web apps that need to run shell commands. Heres a great example of one:

Code:

This is a PHP script getting my system volume. Herein lies the problem... www-data doesn't have permission to do this!

I changed my apache config to use MY account as the web user, and it does in fact work the way I want it to.

Obviously, I dont want to leave apache running as me, and want it to keep using www-data.... heres my question... how can I give permission for www-data to execute certain programs?

View 3 Replies View Related

Server :: Apache Segfaults After Months Of Running On Ubuntu?

May 13, 2011

OS: Ubuntu Server x64 10.04 Apache: 2.2.14-5ubuntu8.4 I have a virtual server which has been running for months with no problems then one day I saw that it crashed and I had to power cycle it. Since then I have been unable to start Apache as it segfaults no matter options I give it. Before I try to reinstall Apache, why is this segfaulting?

Code:
execve("/usr/sbin/apache2", ["/usr/sbin/apache2"], [/* 21 vars */]) = 0
brk(0) = 0x7f9f48f8d000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9f47e0d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3

[Code]...

View 2 Replies View Related

OpenSUSE :: Php Running As Cgi Script In Apache 11.3?

Sep 12, 2010

I am trying to run php as cgi script with apache and opensuse 11.3. I disabled the mod_php and installed mod_fcgid, and php-fastcgi, as per the instructions here. I have been trying to achieve this, but, somehow it is now working. I can see the page if i have an index.html, but if i have index.php, it downloads it as a file. I really tried to set this thing up for more than 12 hrs now. I am soo frustated.

my /etc/apache2/vhosts.d/shekhar.conf
my /srv/www/wrapper/shekhar/php5
my /etc/apache2/conf.d/mod_fcgid.conf (I uncommented the lines inside the <FilesMatch > Tag., it gave me same result, even after uncommenting the tag.)
my /etc/apache2/httpd.conf

View 2 Replies View Related

General :: Running Apache As A Different User?

Jul 29, 2011

When I run the ps -efH command to list out all the process, I can see Apache running as root and seems to have sub-processes running as www-data. Here's the excerpt:

root 30117 1 0 09:10 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 30119 30117 0 09:10 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 30120 30117 0 09:10 ? 00:00:00 /usr/sbin/apache2 -k start

[code]....

View 2 Replies View Related

General :: Don't Need The Apache Service Running All The Time?

Oct 27, 2010

I have recently ported from Windows to Linux (xubuntu) I am a developer, i installed everything i need, LAMP. Now in Windows i used to turn off all unnecessary Services, i don't need the Apache or MySQL service running all the time. I used: net start mysql

Whenever i needed it. How do i do the same in Linux:
1. Disabling not-needed daemons from auto-starting?
2. Starting them only when i need them?

View 2 Replies View Related

Networking :: Single Server Running Apache On Two Lan's?

Jun 23, 2010

I have a single CentOS server with two separate NIC's. I was asked to install an internal Wiki on Apache but have that dedicated to one NIC so it's internal only. Then have just a site running on Apache on the 2nd NIC which is externally accessible. I have never done anything like this and would like tonow how difficult this would be on a single stand alone server that I have above?

View 1 Replies View Related

General :: Running Apache On A Firewall System?

Mar 2, 2011

if you are running Apache on a firewall system, perhaps to display a web front end for firewall configuration, how would you make sure that it is accessible only from inside the local network?

View 1 Replies View Related

General :: Connected To Machine Running Apache?

Feb 3, 2011

I have run the apache service on my machine. Many people are accessing that server. Now, I want to know who all connected to my system. How can I get that information?

View 1 Replies View Related

Server :: Can't Get On Internet / Apache Is Running / Httpd Is Not

Feb 11, 2011

When I do " ps aux | grep apache " I can see that apache2 is running. But when I do the same thing for http or httpd there is nothing. I looked for this question in the forums but couldn't find it. I probably don't know just what to look for.I'm using the new Debian Squeeze, and was fooling around heavily with new software installations and modifications, and just noticed all of a sudden that I couldn't get on the internet - so I know I did something but don't know what.I can plug in a thumb drive with a bitnami joomla stack on it and run, " ~/tmp/joomla-1.6.0-0/./ctlscript.sh start "and that gets things going for the joomla stuff (apache, http, mysql, php), but that stuff is pretty self contained and does not effect the browser's attempt to reach the web.

View 12 Replies View Related

Software :: Apache Server Not Running Correctly?

Feb 25, 2010

I just did a fresh install of ubuntu 9.10 and install apache2 webserver with php5 and mysql, but for some reason I have no idea why but when upload files to the computer running apache2 webserver

http://69.242.228.170/ is the link to the ubuntu system It's not displaying the website correctly and it's not working on any pc on my network either, but it looks fine in dreamweaver when I was designing it on my laptop. list of all the files and folders in the /var/www path

Code:
root@requiem:/var/www# ls -lh
total 92K
-rwxr-xr-x 1 root root 446 2010-02-25 18:27 bg.gif
-rwxr-xr-x 1 root root 2.3K 2010-02-25 18:27 contact.php
-rwxr-xr-x 1 root root 143 2010-02-25 18:27 content_bg.gif

[Code]...

View 8 Replies View Related

Ubuntu Servers :: Redirecting Ports For Running Two Web Servers

Sep 5, 2010

I am running apache2 and tornado web servers on the same server with one ip address.

The apache2 listens on port 80. Tornado listens on port 8888. I want to redirect requests from a specific ip port 80 to port 8888. I don't have the ability to change the port request on the device. It wants is looking for a web server on port 80.

Any other web server request should go to the apache.

I tried adding the following to /etc/ufw/before.rules

When I run iptables -L it doesn't appear. I have disabled and enabled ufw with no help.

View 3 Replies View Related

Ubuntu Security :: PHP Is Not Running Under Apache 2 And Limited By The Www-data Filesystem Access?

Jun 30, 2010

I'm about to have a web server at home for the first time. I've always missed having full control and not having to contact my hosting company when I need to do some specific changes - and some changes they won't do for you at all.I've chosen the non-GUI Ubuntu Server with LAMP, and nothing more is installed really except for a couple of command line tools from the repository. The LAMP software has been locked down as good as I can by following some guides on the net and using common sense. Like Apache 2 don't have access to the file system except for the www folder, and setting the headers to Prod. MySQL has skip-networking and I've commented out the listen string to localhost. PHP has a truckload of functions that I've disabled in the php.ini, also by following some guides on the net, among some other security enhancing php.ini editing.

The only thing the server will serve is a well known PHP forum and some html docs, and that's all. Nothing advanced or complicated stuff, and I'm definitely not programming PHP myself or letting anyone do it for me.But I do want to sleep well at night knowing that my server is always on and sitting on the edge of my home network! And can I do that? I've heard that you don't need to be worried about getting your Linux server box hacked, but you should be worried about anyone getting root access to it. But is it really that simple? Ubuntu is shipped without root account and you must have the sudo password, right? What's the odds for anyone to get full access to my system?An issue: I've heard that Apache never must run as root. When I do a ps -ef, I see that there are several www-data processes running apache, but there's one root process running apache too. Is this normal and is it safe?An issue: I've heard that PHP can fail pretty easily. But isn't PHP running under apache 2 and limited by the www-data filesystem access?An issue: MySQL is running as a MySQL user, and I guess that's an unprivileged user right?

View 9 Replies View Related

Networking :: Cannot Access The Web Server From The Computer Running Apache?

Aug 3, 2010

I set up my first web server and it works flawlessly -when accessed from external network or from other computers on my lan. However, I cannot access it from the computer where the server is run on. I have found numerous people with similar problems but the flavour I am experiencing is somewhat different and no solutions I have found apply to it.

I have two network interfaces on my server, eth0 (public static IP connected to internet directly) and eth1 connected to LAN 192.168.1.0/24 range. The server is 192.168.1.1. It is connected directly to the internet and serves as a SNAT for other comps on the lan.I added "192.168.1.1 www_server_com" to the /etc/hosts on the server and also on the other machines on the LAN. All the other machines can open website without any problem.HOwever, the server itself only opens website if the address islhost. Internal IP, i.e. 192.168.1.1. gets a time out and so does www_server_com ( I cant use dots as I do not have more than 15 posts on the forum )Here is the firewall script I am using.

#!/bin/sh
#
# Example Firewall Script

[code]...

View 2 Replies View Related

General :: Apache Not Running After Installing On Debian Lenny

Jul 10, 2010

I just installed apache2 on my VPS (running Debian 5 (lenny)). Problem is that when i start apache2 nothing happens.

Code:
ps ax |grep apache
and
Code:
ps ax |grep httpd
returns only the grep process itself, and

[Code]....

View 2 Replies View Related

General :: Start / Stop Apache - HTTPD Not Running

Aug 25, 2010

I configure my apache and can run http://localhost. There "I see it works!" but if I try to stop apache I get message that httpd is not started. I run

apachectl start - ok
but when I run apachectl stop it says "httpd (no pid file) not running"

I need to stop apache, because this is my dev machine and I want to start apache only when I make changes to my site. I am with slackware13.

View 4 Replies View Related

Server :: Running Apache 2.2.3 - High Swap Usage

Oct 2, 2009

I am running Apache 2.2.3 on a CentOS release 5.3 (Final) with 100 Sites. I've notice that Apache is making my server Swap around 200 MBs.
"http://www.xxx.yyy.zzz/server-status" doesn't show me too much to, so I am looking the behavior of specific httpd process.
ProcessID "18753" is the one for "http://www.xxx.yyy.zzz/server-status" in my browser.

This command show me (In KBs) how much virtual memory is that specific process using:
# /etc/init.d/httpd start
# grep Private_Dirty /proc/18753/smaps | awk '{ print $2 }' | xargs ruby -e 'puts ARGV.inject { |i, j| i.to_i + j.to_i }'
3012
... Running this command a lot of times it gives me the same output, but suddenly...
# grep Private_Dirty /proc/18753/smaps | awk '{ print $2 }' | xargs ruby -e 'puts ARGV.inject { |i, j| i.to_i + j.to_i }'
21708

Something make that process (and all the others httpd process too) to use a lot more memory!

Part of my httpd.conf:
# Timeout 120
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 3

<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 100
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule> #

My server is running Mysql 5.1.34, vsftpd 2.0.5, BIND 9.3.4-P1 (as slave). I couldn't found anything running in the specific time that httpd processes start to use that much memory.

View 7 Replies View Related

Server :: Apache Downloads Php File Instead Of Running Script?

May 13, 2010

I trashed my Karmic Ubuntu install and installed Lucid (I had heard that the boot times were much reduced and I didn't see any improvement in my normal upgrade). I reinstalled Drupal but find that my installation of Apache does not run the scripts, but rather passes the php text file to the browser. IIRC when I installed it apt configured Apache correctly without me having to edit .htaccess or /etc/apache2/httpd.conf which makes me think that I am missing a key dependency.

Does anyone know of a check list to which I can refer to make sure that I've installed everything? My installation has Postgres instead of MySQL. Failing which, in the event that my memory is faulty, where can I find which changes need to be applied to the configuration files above?

View 4 Replies View Related

Server :: How To Get Apache Running In User Home Directory

Dec 10, 2010

I'm trying to get Apache to run in a user's home directory. I changed the conf file so that Apache runs under the user and group "kiosk" and changed the DocumentRoot and Directory from the default to "/home/kiosk". Then I set Apache to start at boot (chkconfig --level 235 httpd on) and rebooted. When I checked, httpd is running as kiosk like it should (ps aux | grep httpd). However, when I try wget localhost, I get a 403 response back. If as root I call "httpd -k stop" and then "httpd -k start", then everything works exactly as it should (curiously, if I try using "-k restart", it still doesn't work). After this, httpd still shows as running as kiosk and if I check before calling start, it shows no httpd processes running as expected.

This only happens when I use httpd to stop and then start the web server. If I try to restart using apachectl I still get a 403 error. As an interesting aside, after I've used httpd, if I try using "apachectl restart" I get a "(13)Permission denied: Error retrieving pid file run/httpd.pid" error. This is all on a freshly installed CentOS 5.5 server. Why I'm seeing this very different behaviour from what I thought were just equivalent ways of starting Apache? And then what I could do to get it to start up and run properly on boot? One last item to mention is this isn't a permissions problem. I set the permissions to 777 to both the home and kiosk directories (and 666 to the web files) just to be sure that's not the problem.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved