The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

0
votes
0answers
22 views

Need help with the webserver by OpenBSD 5.8 'httpd'

The configuration is as documented here but when I move my index.html to /var/www/htdocs/index.html my browser finds nothing! It always jumps to www.example.com/cgi-bin/bgplg! The httpd webserver ...
0
votes
0answers
20 views

Back up script causing issues

I've got this backup script I'm trying to use and I'm having issues with it. #Setup Variables DOMAIN=domainexample.com FILENAME=${DOMAIN}.$(date +%Y%m%d) DBSERVER=localhost DATABASE=databasename ...
2
votes
2answers
46 views

Restarting httpd kills scripts executed from PHP

My game server has a custom PHP administration interface, which can run the server manually by running the start shell script with exec and sudo -E. However, if I restart httpd using service httpd ...
0
votes
0answers
55 views

Can't install phpMyAdmin with PHP 5.6

I work on a Centos7 with php56 (via remi-repo) and httpd and maria-db I try to install phpmyAdmin via "yum install phpmyadmin" but every time I have this message: Erreur : Paquet : ...
1
vote
1answer
46 views

Need To grab IP of visitors from the Apache logs , How could I do it?

I want to store the IP of the visitors to my website, I want to use PHP , Should I use cron for it or how will be the visitors IP will be automatically stored ??
1
vote
1answer
51 views

Restart Apache after PHP update?

One of our Amazon Linux servers has php56 installed, which is not the default PHP installation. Quite often I see updates for this package, while on other server PHP is not updated. Do I need to ...
2
votes
1answer
76 views

HTTPS not working on CentOS Apache 2.4

I have created a key and self-signed certificate and moved them to /etc/httpd/conf/ My ssl.conf is here: http://pastebin.com/gsQbKY67 The ssl_module (shared) is there when I try httpd -M Output ...
1
vote
1answer
66 views

Install ssl on CentOS Apache server

I installed Apache by using sudo yum -y install httpd instead of using wget and installing that way. This means that it has been set up differently. I'm now trying to install ssl by using sudo yum ...
1
vote
1answer
36 views

Difference between ps process httpd and deamon process httpd

When I'm running command ps aux | grep httpd , it shows that httpd is in running state , but on running systemctl status httpd - its inactive and disabled. Why is it so?
1
vote
0answers
41 views

httpd and mysqld used out of memory

I choose 512mb ram for my Centos VPS with very low traffic new website .but after 2,3 hours after rebooting, i have only 24mb free memory. when i use top command: 2981 root 20 0 37176 10m ...
2
votes
0answers
40 views

Apache 2.2 and php-fpm directory configuration

I have installed apache 2.2 and php-fpm. In httpd.conf: DocumentRoot "/var/www/local.site/public_html <Directory /> AllowOverride None Order Deny,Allow Deny from all ...
1
vote
2answers
47 views

awk regex for apache rewriterule

I have these variant of urls RewriteRule ^/trendy/the-reason-for-example/? http://www.example.com/trendy/the-reason [NC, L, R=301] RewriteRule ^/lol/2015/10..._for-example ...
2
votes
2answers
206 views

configuring httpd for multiple domains on same server

A CentOS 7 web server is hosting one public domain, called mydomain.com. The same server also has a separate vpn that hosts two apps for private authorized/authenticated users only. Httpd is set up ...
0
votes
1answer
589 views

Apache won't restart after configuring Virtual Hosts

I am trying to make a web server, but after adding the virtual hosts config, apache won't restart. It had several errors but I've managed to fix most of them. Now I don't know what is happening ...
4
votes
1answer
97 views

One of my pdf files in my apache server can be accessed the other can't, with the same permissions and same directory

I have two pdf files in my server: -rwxr-xr-x. 1 apache apache 1422861 Sep 11 2014 file1.pdf -rwxr-xr-x. 1 apache apache 340815 Aug 27 13:06 file2.pdf I can access the first one by going to ...
0
votes
1answer
18 views

mod_rewrite all and if not found

I need to make some rewrite rules, but I doesn't use Apache HTTP for years and little bit confused with rules... Task: rewrite URLs from http://domain.com/test/file.js to ...
-3
votes
1answer
50 views

Create authentication when someone accesses httpd in centOs

I have CentOS 6.6, What I want is: When someone accesses the /var/www/html on his browser, I want a authentication bar to pop up and fill in his username and password. This is because I want httpd ...
1
vote
1answer
84 views

httpd - Redirect all 404 to specific page

I want to redirect visitors who go to pages that don't exist on my httpd server. Lets say http://www.foo.com/wXGoL14445093-BgKb76/SNxM53-FxhsH.html (this page does not exist). Once we go there we ...
1
vote
0answers
228 views

Vagrant + CentOS 7 - Apache fails to start, I don't see an error

I'm spending some time trying to provision a Vagrant box running from a CentOS 7 base box. After a fresh install of Apache, I am able to hit the server over http and restart the server, but as soon ...
1
vote
1answer
66 views

Apache Tomcat and Httpd - Sharing common web publication folder - CentOS

Suppose: The Httpd's Web publication folder is assigned according: Edit /usr/local/httpd/conf/httpd.conf file: DocumentRoot "/usr/local/WebFiles/Html" <Directory ...
0
votes
0answers
72 views

security2_module module for apache is causing the “Forbidden You don't have permission to access / on this server” message

I installed the security2 module to my apache server by adding these following lines to my httpd.conf: <IfModule security2_module> Include ...
0
votes
1answer
131 views

How can I configure my server to avoid information leakage from the SERVER header of its HTTP response

I have a centos 7 server with apache v2.4.6 php 5.4.16 and OpenSSL 1.0.1e-fips installed. I was just doing a scan to it to see how secure my server is. I found out that my server is giving out ...
2
votes
1answer
339 views

evasive module in apache error: “Can't locate API module structure `evasive24_module'”

I wanted to protect my Apache/2.4.6 (CentOS) server in CentoOS 7 from DDOS attacks so after searching for some alternatives I found this page. They go through the installation of the modules evasive ...
1
vote
1answer
156 views

How can I solve “Your connection to 192.*.*.* is encrypted with obsolete cryptography”

I just set up my apache server with SSL installed on it, and everything is perfect except that when I open the page with https:// I get the following message when I click the padlock next to the ...
3
votes
0answers
5k views

AH00534: httpd: Configuration error: No MPM loaded

I have a CentOS Linux release 7.1.1503 (Core) system and I have installed httpd and the corresponding configuration file is : # # This is the main rConfig Apache server configuration file. It ...
0
votes
2answers
94 views

how to change default root in apache web server?

I am trying to change the default root directory in Apache webserver but having trouble accessing it from webbrowser. Disabled SELinux Stopped IPTables Trying to make : "/var/www/test/" as default ...
1
vote
2answers
119 views

Test script/program/app to check if my website is live

I just deployed my webserver using Apache in CentOS and I was wondering if anybody has any good ideas in how to check every specified amount of time if the server goes down and then I can use postfix ...
1
vote
1answer
90 views

Systemcrash suexec forkbomb.sh ulimits

i got this script named fork.sh: #!/bin/sh forkbomb() { forkbomb | forkbomb & } ; forkbomb if i call it trough suexec my whole system will consume 99% cpu. to prevent a normal bash forkbomb i ...
1
vote
1answer
129 views

chroot cannot find cgi file

I am unable to serve or execute a cgi file, and the cause seems to be that chroot is unable to find the cgi file when the permission is set to executable. $>ls -l /var/www/my/dir/test.cgi ...
0
votes
1answer
345 views

Apache giving me 403 on Virtual Host

I have been trying to get to grips with Apache in CentOS 7. I have set up two virtual hosts and created basic index.html pages as follows: /var/www/domainA/public_html/index.html ...
0
votes
0answers
86 views

Apache HTTPD v2.4.7 | mod_substitute + logging

I'm using HTTPD as a reverse proxy between my backend servers and clients. I'm using mod_substitute to replace some text in HTML response returned from the backend servers. Now I'm looking to log ...
1
vote
2answers
142 views

One-Liner needed: Stop httpd if running already & Start httpd if not running

As part of a provisioning script for CentOS 7 I am in need to have a one-liner that performs the following. Unfortunately, I have no clue how to achieve that. If httpd is running then stop it If ...
1
vote
0answers
88 views

How to investigate TCP, domain socket and similar activity of a process in AIX

I have to collect as much information as possible about a running production system under AIX 5.3. This must not cause any downtime and I may not install any additional software. The final goal is to ...
0
votes
1answer
446 views

unknown facility name “local8”

I'm setting up remote logging for the first time and am able to output all httpd messages to local6. I'm getting an error, and have a general question about rsyslog. First: I tried splitting ...
1
vote
1answer
441 views

httpd 2.4.6 on CentOS 7 - question related to module config in httpd.conf

I am sorry to post this type of question here but due to the great experience and skillsets here, I hope for your understanding. I am using (unfortunately) httpd package (v 2.4.6). In various guides, ...
2
votes
1answer
727 views

httpd 2.4.10 in CentOS 7

How can I update my httpd version 2.4.6 to 2.4.10? If I try to update it with yum, it says that I have the latest version. I want to update httpd to 2.4.10 version because a security issue of the ...
2
votes
1answer
1k views

Install Apache https 2.2 under Centos 7

I would like to install Apache httpd 2.2 (httpd-2.2.15-39.el6.x86_64) under CentOS 7. The default repositories only have Apache httpd 2.4 available. Does anyone know where there is a CentOS 7 ...
1
vote
3answers
804 views

Why does httpd give an error following a symlink into my home directory on Fedora?

I've just re-enabled an app after OS change. Symbolic link to it is located of course in /var/www/myapp . After changing permissions to 0775 (even 0777 temporary), changing owner to apache:myuser, ...
2
votes
1answer
5k 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
66 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
19 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 ...
25
votes
6answers
3k 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 ...
4
votes
2answers
11k 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 ...
0
votes
1answer
243 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
5k 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
1answer
3k 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
2answers
2k 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
210 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
0answers
163 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
1answer
55 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 ...