Use this tag for questions related to the Apache http server (any version, but make sure to provide Apache version numbers in the question unless not relevant). Generic webserver related questions should use the tag: webserver. Few of the other Apache related projects have their own tag, don't use ...

learn more… | top users | synonyms

0
votes
1answer
653 views

Apache2 won't start in Arch Linux

I have seen many threads about this problem but the problem doesn't solved. I'm trying to start httpd.service by this command : $ sudo systemctl start httpd.service Error : Job for httpd.service ...
1
vote
2answers
4k views

Why is Apache running on port 8080 instead on port 80?

I am confused why Apache is not responding on port 80 ... $ wget http://localhost:80 --2014-05-06 15:32:44-- http://localhost/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost ...
1
vote
1answer
427 views

Installing PCRE 32bit on RHEL 5 - resolving dependency for apache 2.4 install

I need to install Apache 2.4 32bit version on RHEL 5. I am not installing 64bit apache because the application running on the RHEL5 machine needs apache 32bit (or that's what I thinks because of the ...
0
votes
3answers
153 views

Creating list of domains using httpd.conf

I am trying to create a bash script that can generate a file which contains a full list of domains - from Apache's configuration file - that a web server hosts. It actually seems quite easy. From ...
2
votes
1answer
80 views

Hosting on freeBSD

I already installed FreeBSD 10, Apache 2.4 and PHP 5.5. I also just bought a domain from GoDaddy, and I would like to setup a web-hosting in my server, in order to make my website to be reachable from ...
4
votes
1answer
90 views

How do you give a developer group access to apache, MySQL, php and the webroot?

We have 3 web designers that are currently logging in to our server via root to configure apache and setup websites. I have very basic linux knowledge (I'm a web designer) and have created users and ...
5
votes
1answer
916 views

Apache, Group Permissions and User Uploads

I have a folder named "digitalgoods" with the following ownership -- apache:apache residing outside of the htdocs folder and is therefore not accessible to the public. However I need the same folder ...
0
votes
1answer
68 views

Permissions for non-htdocs directory

I have created a folder outside of my htdocs directory as a means of adding extra security for downloadable digital goods to be sold from within a Magento storefront; so my question is: what ...
2
votes
2answers
1k views

High Idle CPU / Low CPU Load average

After removing APC (alternative php cache), I noticed that there are less pagination access and less dirty pages but in the same time: High idle CPU Very low CPU load (relatively to the time before ...
1
vote
0answers
92 views

Apache2 virtual hosts with mod_wsgi settings question

I'm running a VPS on DigitalOcean (Ubuntu 12.04). I'm using a single instance to run multiple (currently 2) websites. Originally I had one website (say, flaskwebsite.com) which uses flask and ...
0
votes
2answers
87 views

Apache folder permission error

I have a folder name public that I set up Apache to serve files out of, for some reason I was getting a 403 with the error message: You don't have permission to access / on this server. My ...
-1
votes
1answer
92 views

What does ~ mean at the end of a file name (e.g. httpd.conf~)? [duplicate]

I edited a fresh apache config file in CentOS 5 using gedit. When I looked at the directory I saw now two files: httpd.conf and httpd.conf~ What does the ~ signify?
2
votes
1answer
478 views

Downgrade PHP 5.4 -> 5.3 on CentOS 5.10 [closed]

Due to being in some dependency hell and some issues with PHP 5.4, we downgraded from PHP 5.4 -> 5.3. Since doing so, a few of our web apps are acting strange. E.g: # php index.php Results in: ...
2
votes
0answers
1k views

Apache install on Debian: configuring CGI

I installed CGI via the package manager and enabled the mod, but two hours later I still cant get it to work. My /etc/apache2/sites-available/default is: <VirtualHost *:80> ServerAdmin ...
0
votes
1answer
103 views

How to access my webserver from the host machine? [duplicate]

My host OS is Gentoo, guest OS - Fedora. I have a web server on Fedora on port 8686 and it works perfectly on guest OS, but I can't access it on my host OS. I tried to use bridged network (then I got ...
1
vote
1answer
204 views

How would I run Django and LAMP on different subdomains, but on the same Apache server?

I am currently working on a development project where I need to run four different PHP programs (both with MySQL backends) and one Django project. Current Plan: XenForo (forums.domain.com) [PHP ...
2
votes
1answer
95 views

Omit Certain Entries from Apache Access Log

Is there a simple way to keep noise entries out of the access_log file short of doing piped logging to a script that does a grep -v on matching criteria or something? I have collectd monitoring ...
0
votes
1answer
164 views

Automatic login for mysql used in CGI script

I have written a CGI script using bash which executes a MySQL query. For MySQL authentication , automatic login is used by supplying the credentials in .my.cnf file as shown below . # the following ...
0
votes
1answer
147 views

How to detect the incoming httpd Connection Counts of each VHOSTS?

With RHEL and Apache (httpd), is there a way to: Detect which v.host (domain) is gaining how many incoming connections? Because in this few days, i got a lot of incoming connections on the Server ...
1
vote
1answer
51 views

What's the difference between <Directory /> and <Directory /var/www/> in apache?

I was playing with the apache configuration files after a system restore when I noticed something I have never really though about too much. Here are the first lines of the default ...
2
votes
1answer
91 views

Checking if Apache requires SSL pass-phrase

I'm thinking about restarting a client's Apache server, but I'm reluctant to do so because I know he's currently running HTTPS and I don't want to get stuck with the server prompting me for the SSL ...
0
votes
1answer
118 views

understanding LAMP: linux apache mysql and php [closed]

I have multiple questions and I am confused. Few months back, I was installing a software locally ~/bin. Tools got installed successfully and running fine till date. In installation it automatically ...
2
votes
1answer
123 views

how to write `fuser -k -n tcp 80` into a bash script?

Recently, my site's visitor-ship increased sharply. My Apaches' always crash. I'm seeing lines like these in the httpd/error_log: [Sun Apr 13 08:57:18 2014] [warn] child process 7792 still did not ...
1
vote
2answers
127 views

Apache: Simulate 100 new connections per sec with ab

I know I can use "-c" switch in ab to simulate a certain number of concurrent connections. Is there a way in which I could use "ab" to simulate 100 new clients every second visiting my website or ...
2
votes
1answer
121 views

redirection failing for CGI program

I'm trying to redirect the contents of command output to a file in a CGI program. The issue for me is that the output file is not getting created. The CGI Code snippet is as follows: #!/bin/bash ...
5
votes
3answers
867 views

Apache server starts automatically after stopping the service

What can cause httpd to start automatically after stopping it? In a bash script I need to first stop apache web server. This is the script: apachectl stop; while pgrep httpd; do sleep 1; done echo ...
3
votes
2answers
244 views

Not able to view server-status

My application is deployed on ROOT folder in tomcat and it is connected to apache using proxy. Ex:- ProxyPass / ajp://192.168.0.xx:8011/ ProxyPassReverse / ajp://192.168.0.xx:8011/ When I fire ...
0
votes
1answer
281 views

Apache configuration with proxy and location

I want to map these domains to these ports. How can I do it? http://test1.example.com/phpmyadmin/ example.com:80/phpmyadmin/ http://test1.example.com/app1/ example.com:8080/app1/ ...
1
vote
3answers
2k views

Apache Tomcat not working

I am a Linux beginner and have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to ...
1
vote
2answers
46 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 ...
0
votes
1answer
97 views

Unidentified network connections

I have an external-facing ftp/webserver (with virtual hosts) running Ubuntu 12.04LTS, and I have some concerns about some network traffic I'm seeing. Some background. I tried to be as preventive in ...
0
votes
0answers
39 views

configuration of apache on sunfire v880 runing solaris 10

I am runing SunOS 5.10 on Sunfire v880 for my project but I can't run the Apache which is already installed. I have tried svcadm enable apache but it says that apache is not a known service. How do I ...
1
vote
1answer
333 views

Can I configure apache to limit access to a directory only from my ssh connection?

I have a virtual machine running a number of websites. All users have access these via the external IP address of the machine. I am running Debian Stable on this machine. I can access the machine ...
0
votes
0answers
41 views

Problems reading files that have been written to the /tmp directory

I've recently started using Vagrant, running Debian for my dev environment. I love the way it just works... apart from 1 small thing... My apache server is able to write files to the /tmp directory, ...
0
votes
1answer
49 views

Extend validity time of APACHE certificate

I have in /etc/httpd/ssl subdir two files: apache.crt and apache.key. How can I extend time of validity of APACHE http server, without creating new certificate and without necessity of interaction ...
2
votes
1answer
16k views

How to upgrade Apache 2.2.15 to 2.4.4 in CentOS

I want to upgrade Apache from 2.2.15 to 2.4.4 in CentOS. Do I need to download update files to a folder and update Apache? Is this even possible?
3
votes
1answer
657 views

mod_authnz_ldap bind as authenticating user instead of anonymously

I'm attempting to move as close to single credential as possible. We have a web application that has a fairly limited set of available authentication mechanisms but will (luckily) allow admins to tell ...
1
vote
0answers
1k views

Reading apache error logs from php

I have apache2 logs at :/var/log/apache2/error.log which has permission: -rw-r----- 1 root adm 127140 Mar 20 12:54 /var/log/apache2/error.log for the sake of accessing from php I changed the ...
1
vote
1answer
699 views

How can I set up environmental variables for www-data?

I asked a question on dba.se about how I can give my Perl CGI script the password it needs to access the MySQL database it needs to query. I have received only one answer but that one suggests I save ...
3
votes
1answer
62 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 ...
0
votes
1answer
369 views

Apache mod_auth_kerb: “Key table entry not found”

I want to use the Apache Module "mod_auth_kerb" to implement SSO for a Webapplication. With the following config: <VirtualHost 10.5.3.200:443> #Proxy <Proxy *> Order deny,allow Allow ...
1
vote
1answer
156 views

Recursively copy apache openmeetings within red5 folder on linux

I just installed openmeetings for first time on centos 6.5 and it was working but couldn't figure out why it had a folder full of identical files to my /usr/local/red5 I mean I just can't understand ...
4
votes
1answer
2k views

Apache fails to reload… Is there a log that I can look in for details?

I have a webserver that I'm working on adding a site to. After running a2ensite, I ran service apache2 reload, and got this: [FAIL] Reloading web server config: apache2 failed! Is there a log ...
1
vote
1answer
141 views

Security for a web server for multiple people?

I have an apache web server set up where multiple people have their websites hosted, mostly php based websites. The problem is, when these people upload their website files, it has read permissions ...
0
votes
1answer
695 views

How to use fail2ban to ban all php and cgi-bin requests

On daily basis I see Apache log full of requests initiated by different vulnerability scanner apps. Those hundreds of requests from usually same IP addresses not only makes the log dirty but also uses ...
-3
votes
1answer
89 views

Is there a better way to stop and restart Apache server every 30 minutes? [closed]

I have to stop and restart Apache every 30 minutes in order to avoid it becoming extremely slow over time. The cron job that I use as follows: @echo off rem Launch google.com, wait 2 seconds, then ...
0
votes
0answers
173 views

Subversion repository on NTFS drive

I am trying to use my repos that is located on an NTFS formatted drive. I am dual-booting Windows 8.1 and Arch Linux. I am running subversion 1.8.5 and apache 2.2.26 with SSL. The problem seems to be ...
2
votes
1answer
425 views

Webserver establishing new outgoing connections from port 443

I've been trying to configure the firewall on a webserver running Apache using iptables commands. I took the approach of blocking all outgoing connections, except for those that are required. ...
2
votes
1answer
74 views

Using FACLs to restrict default group but allow others

So, I'm running RHEL 6.x with acls enabled, etc. and I've been fighting this ACL issue for a bit now and I can't seem to get it down. I'm trying to make it so that: /var/www/html/* are owned ...
0
votes
0answers
40 views

Unable to access page with https

I have configured https on my server with apache2 which is in cloud. The below Listen directives are enabled in it. Listen 80 Listen 443 The port 80 is firewalled in cloud. So I used port 443 to ...