The tag has no wiki summary.

learn more… | top users | synonyms

24
votes
6answers
2k views

Why is it risky to give sudo vim access to ordinary users?

I'd like to create a new user and give him sudo access. To be specific, I want him to use sudo vim and edit httpd.conf. I wrote this in sudoers: user ALL=(ALL) /usr/bin/vim ...
7
votes
2answers
13k views

How to find out if httpd is running or not via command line?

I'm working on a small control panel for my server. I need a command that will say if httpd is running or stopped. Will probably be using the same code for other services as well.
6
votes
3answers
1k views

How can I set up Apache to use port 1 and other ports below 80?

The mysql user cannot use ports below 1024 because these are reserved for the root user. Apache, on the other hand, can use port 80. Apache runs as root before it runs as Apache and thus it can use ...
4
votes
2answers
168 views

How to return either “on” or “off” for: chkconfig --list | grep httpd

To ensure httpd is automatically started on reboot. I simply run this command chkconfig httpd on what I am looking for is a way to be told if this setting is on or off instead of this command ...
3
votes
1answer
76 views

How to interpret the following pattern of uptime data?

I have a small web server running mysql and wordpress which after a while appears to stop processing web requests. I can't even log into the server via ssh as ssh client times out when trying to ...
3
votes
1answer
376 views

Apache Request Hangs For 2 Minutes Exactly

I am experiencing some odd behavior with apache. I have requests that are hanging for exactly two minutes. The request could be one file one time, and then a completely different file another time. ...
3
votes
2answers
568 views

apache won't restart after adding VirtualHost conf file, why not?

In a CentOS 7 server, I get the following error when I type sudo apachectl restart after I add an include file at the bottom of httpd.conf: Job for httpd.service failed. See 'systemctl status ...
3
votes
2answers
264 views

Subdomain for Nagios

I have a subdomain forwarding at ip xxx.xxx.xxx.xxx (domain.com) Lets call it nagios.domain.com Nagios worked at xxx.xxx.xxx.xxx/nagios but now it's not working due to a fact that app.domain.com took ...
3
votes
2answers
1k views

SELinux httpd write access to a directory

I am new to SELinux. came from debian. I want to give httpd access to a directory. SELinux Alert Browser suggests: # grep httpd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp ...
3
votes
0answers
51 views

Is it possible to set mod_expires directives dependent on REMOTE_ADDR?

Basically I have a bunch of mod_expires directives in my httpd.conf like so: ExpiresByType text/html "access plus 1 hour" I realize that ultimately, the user's browser determines how long to hold ...
2
votes
1answer
4k views

Apache throws 403 Forbidden after moving DocumentRoot (CentOS 6.4)

I installed Apache via yum on CentOS 6.4. I changed the DocumentRoot in /etc/httpd/conf/httpd.conf to point to /home/djc/www: DocumentRoot "/home/djc/www" <Directory "/home/djc/www"> ...
2
votes
2answers
3k views

How do I find out what file Apache is serving when a port is hit?

I'm working on a server someone else set up. The server is CentOS 4.6 running Apache/2.0.59 (httpd). They have an update service setup on port 8443. I know it is working but I need to find out what ...
2
votes
1answer
2k views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
2
votes
0answers
136 views

HTTP request failed after listening on multiple ports or after enabling SSL Module on my Linux Board

I have one custom Linux board on which I want to run apache web server to test HTML and other web based services. I have configured, cross compiled and installed default httpd (2.2.24, 2.4.1, 2.4.4 ...
1
vote
1answer
24 views

Confusion regarding generating self signed certificate for application portal developed using liferay

We have a Application Portal developed using Liferay bundled with tomcat. There are two application servers running liferay and we use httpd as a front-end which forwards requests to application ...
1
vote
1answer
56 views

Make a deb package that installs data under /var/www/data

I recently set up a PPA on Launchpad for distributing my web application. Since it's a server-app, I need to put my data into /var/www/html which apparently is not wanted by Lintian ...
1
vote
2answers
57 views

Tracking from httpd instance to PHP script when PHP is a module

I'm trying to figure out exactly what's going on that kicks CPU usage in random httpd workers so high but I'm having a little hard of a time figuring out what PHP page is being requested so that I can ...
1
vote
2answers
37 views

How to find site on shared server that is generating httpd requests

I have a shared server that had a Wordpress site that was compromised. I cleaned out all the wordpress sites on the server and everything seemed to be fine. When I checked today I noticed a large ...
1
vote
1answer
4k views

httpd fails to start after install

While I try to install server through yum install httpd in Fedora 19, enabling and starting it shows errors. I checked httpd status and it's also failed. Can some body explain what the problem is? ...
1
vote
0answers
12 views

Domjudge keeps Not Authenticated

I am trying to install Domjudge in my VPS. After I run ./configure, make and config database I login at /public/login.php with the user/pass: judgehost/judge but it doesn't log me in. I try at ...
1
vote
0answers
24 views

Can you have two directory rewrite rules in one configuration?

In /etc/httpd/conf.d for custom conf file where you have multiple sites and databases but with different systems installed in non root folders can you declare more than one rewrite rule like below? I ...
1
vote
0answers
66 views

Unable to start apache

I'm running CentOS7 in virtualbox on a mac (osx 10.9.3). Ultimately, I want to acces the website on my Guest VM from my Host. I can Ping and SSH to VM but I can't acces the webpage when entering the ...
1
vote
0answers
76 views

prefork doesn't appear to be listening to MaxClients in config file

Apologies in advance if this is a stupid question, I'm new to all of this! I have prefork installed on a ubuntu server which I confirmed by running aptitude search apache2-mpm- Which gave me p ...
1
vote
0answers
254 views

Service httpd is failing to start - fcgid can't create shared memory

I'm not sure why, but when I try to start the httpd service, it will not start. Server config: OS: CentOS 5.10 PHP: 5.5.7 Apache: 2.2.3 I built mod_fcgid from source, put it into the ...
1
vote
1answer
384 views

installing apache httpd server on RHEL-6

I have 5 systems running Apache tomcat server, for load balancing i need to install Apache httpd server, how should I do this, please provide me some useful links and your opinions on this. I am ...
1
vote
0answers
399 views

Debian - Apache 2.2 & mod_php - memory usage

I have a memory problem with my servers (Debian 6.0) where is installed Apache httpd 2.2, mod_php and APC. Actually it seems that httpd allocate all available memory (4GB) when is waiting too much ...
1
vote
0answers
223 views

403 Forbidden on Sub-Folders

I am a Linux newbie and decided to do a LAMP install to start getting more familiar with it (as our company is moving more towards nix these days). Everything went great and PHPMyAdmin, MySQL, ...
1
vote
1answer
213 views

Unable to find Red Hat Server

Running into a strange problem. I have a local server running Red Hat on a virtual machine (accessed through putty). I'm using this server to work on a website in Django, which I run with: python ...
0
votes
1answer
26 views

Why does apache not define where to log by default?

When searching the occurrence of the chain /var/log in default configuration files of apache this cannot be found anywhere. But log files are defined as such # part of httpd.conf ErrorLog ...
0
votes
1answer
256 views

Server returning 'Not Found' for “www.host.com” but not “host.com”

My server is returning the correct paths for all of my domains as long as they are not prefixed with www. The following is one of my domains in it's simplest form: <VirtualHost *:80> ...
0
votes
1answer
270 views

error re-installing httpd on CentOS 7, how can I resolve it?

On a CentOS 7 server, I am encountering an error when trying to re-install httpd. How can I resolve this error and get httpd up and running again? Here is the first error that resulted when I ...
0
votes
1answer
123 views

SSL-encrypted proxy server for war files in CentOS 7

How can I configure a CentOS 7 web server to serve only SSL-encrypted content from war files, with tomcat running behind a proxy server? I imagine this involves using firewalld, https, and tomcat. ...
0
votes
1answer
20 views

Configuration of compiled Apache2

When installing a module, I noticed the following: ModSecurity for Apache/2.8.0 (http://www.modsecurity.org/) configured. [Tue Dec 09 19:01:10 2014] [notice] ModSecurity: APR compiled ...
0
votes
2answers
52 views

HTTPD/apache 2.4: strange problem with alias

On httpd 2.4 alias /repo /repos <Location /repos> Require ip 192.168.0.7 </Location> I can reach repos but no repo(403 forbidden) if i use directory instead of location nothing change ...
0
votes
1answer
119 views

How to set & retrieve a cookie via an executable bash script that is on the web

A simple bash script that can set a cookie when executed via web : #!/bin/bash echo "Set-Cookie: eee=1" echo "Content-type: text/html" echo "" echo "test" I replaced the entire codes above with the ...
0
votes
2answers
1k views

Redhat “httpd” start failed showing “ELinks: Connection refused”

I'm on RHEL 6.5 and Apache 2.2.15. And now applying a trusted SSL on the Server. After adding the respective SSL related Certs and files, my Apache is NOT starting up anymore. Here are some outputs: ...
0
votes
1answer
141 views

is “ServerAdmin email@domain.tld” required in the VirtualHost in Apache?

I rather not have ServerAdmin in my VirtualHost because all it does is attract spam. has no use what so ever. can it be ignored ?
0
votes
1answer
65 views

Why the main page of apache points to Virtual Host

I've configured two Virtual Hosts using a single IP and following the documentation. Here the conf: VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 ...
0
votes
1answer
14 views

httpd memory usage

Having some problems with httpd (Apache/2.2.29) memory usage. Over time, memory usage in the httpd processes creep up until it's eventually at 100%. Last time I restarted httpd was about 24 hours ...
0
votes
1answer
14 views

Running xinetd and httpd on centos 6

We are running several centos 6.4 lamp stacks, and our backup solution (unitrends) has a client that requires xinetd. Can these two coexist on the same server? If so, is there any secret handshake I ...
0
votes
1answer
11 views

PHP framwework, multiple sites and httpd and DNS

I'm wondering if this is possible: There is a PHP framework and someone made several sites, which can be accessible like this: .../index.php/aaa .../index.php/ccc I would like to somehow map DNS to ...
0
votes
0answers
22 views

Unable to get kickstart file from locally hosted http

I'm trying to get a vm up using a kickstart file. However, whenever the virtual machine initalize, it says it is unable to located the kickstart file from the location provided. Code to build vm: ...
0
votes
1answer
39 views

httpd and mod_security woth OWASP's dos rules

I'm trying to setup the mod_security on my httpd web server. I have followed the basic steps yum install mod_security I put the modsecurity_crs_10_setup.conf in the /etc/httpd/modsecurity.d I put ...
0
votes
0answers
582 views

CentOS 7 httpd failed to make connection with backend

In a CentOS 7 server with apache httpd 2.4 set up as an ssl reverse proxy for tomcat, I am getting an error indicating that httpd is not able to connect with tomcat. How can I resolve this error so ...
0
votes
0answers
293 views

CentOS 7 won't serve static https content, why not?

I just re-installed httpd and created a static index.html file. I have firewalld configured to allow internet access to the https service. But when I type https://my.server.ip in a web browser, the ...
0
votes
0answers
73 views

web container options for war file in CentOS 7

I know that Tomcat and NginX are both able to host web applications that are defined by war files. But can httpd also host a war-file-based web application on a CentOS 7 server? If so, how would you ...
0
votes
0answers
39 views

Accessing CentOS7 server from public

recently I switched to CentOS 7 OS and set up basic webserver with Apache. I had no problems configuring SSH, FTP and LAN access to the webpage. But accessing from other IP's won't work. I'm 99% sure ...
0
votes
0answers
38 views

unable to update HTTPD, mod_jk dependency error

While trying to update httpd in RHEL6, getting some dependency error as below: Unsatisfied dependencies for mod_jk-ap20-1.2.31-1.x86_64: httpd = 2.2.3 is needed by mod_jk-ap20-1.2.31-1.x86_64 I am ...
0
votes
0answers
305 views

Where is module prefork.c settings in Centos 7?

I used to edit the settings in etc/conf/httpd.conf for better memory performance <IfModule prefork.c> StartServers 2 MinSpareServers 3 MaxSpareServers 3 ServerLimit 15 ...
0
votes
1answer
70 views

Apache - Allow access for folders starting with /

I'm running apache in a linux environment. I've to serve files whose directory structure have "/." in it. Now, apache by default won't allow files with /. To remove the constraint, I've included the ...