The apache web server.

learn more… | top users | synonyms

12
votes
2answers
40k views

What user should apache and PHP be running as? What permissions should /var/www files have?

I just spun up an Ubuntu 11.10 box and then ran apt-get install apache2 php5 to install apache2 and PHP 5 on the box. Now it is functioning as a "web server" and it loads the "It Works!" page. Now I'm ...
9
votes
2answers
8k views

How to avoid apache reload when rotating logs?

I use logrotate to rotate Apache access-, error- and rewrite-logs. My config file looks like this: /apache/*log { compress dateext rotate 365 size=+300M olddir /log/old/apache ...
9
votes
4answers
22k views

“Symbolic link not allowed or link target not accessible” / Apache on CentOS 6

I've got a brand new CentOS 6 installation, which has a symlink in the document root to my development files: [root@localhost html]# ls -l total 4 -rwxrwxrwx. 1 root root 0 Sep 18 20:16 index.html ...
7
votes
1answer
522 views

Opening port 80 but remain secure

I have a standard installation of Ubuntu 10.04, and have installed the LAMP stack so I can do some web development locally. On my router I have opened port 80 so I can develop with external services ...
7
votes
1answer
2k views

Throttling web crawlers

My website is being DoS'ed by Google webspiders. Google is welcome to index my site, but sometimes it is querying a tagcloud on my site faster than my webserver can produce the results, making my ...
6
votes
1answer
703 views

httpd running as apache.apache, but logs owned by root.root?

ps shows my httpd processes as apache 29561 15186 0 15:30 ? 00:00:00 /usr/sbin/httpd I'm running Centos 5.3 All the log files in /var/log/httpd are owned by root. Howcome?
6
votes
4answers
2k views

Case-insensitive file system for production server?

The initial situation looks like this: The corporate software is PHP-based. It is delivered by Apache 2 on a Windows 2003 Server. It is big. It is a legacy of rather unprofessional developers who ...
5
votes
3answers
7k views

Missing init.d/apache2 file

I am new to linux and just recently messed up my first apache/tomcat configuration. After trying to delete apache and tomcat, and now trying to reinstall apache 2, I am missing the init.d/apache2 file ...
5
votes
2answers
8k views

How can I get TLSv1.2 support in Apache on RHEL6/CentOS/SL6?

I'd like to have TLSv1.2 support in Apache on my Scientific Linux 6 (RHEL6 rebuild) server. Is there some semi-supported pathway to getting this working? Preferably with minimal custom rebuilding. ...
5
votes
4answers
5k views

How do I create web pages in my home directory and have the web server serve them in my web browser?

I have recently installed the Apache web browser in my Debian Squeeze (using command tasksel and selecting [ ] Web server). Now I get it to start via sudo /etc/init.d/apache2 start and then I go to my ...
5
votes
2answers
1k views

Permissions: What's the right way to give Apache more user permissions?

Context: I am making an in-browser control panel that gives me one button access to a library of scripts (.sh and .php) that I've written to process various kinds of data for a project. It's a "one ...
5
votes
3answers
312 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 ...
5
votes
1answer
1k views

Blocking visitors that access by server IP address

My Apache Server IP address is 192.168.1.100 and the Domain Name is test.local. If a user types in the URL, say "http://test.local", then they should be allowed. If a user tries to access "http:// ...
5
votes
2answers
5k views

Localhost .htaccess not working on Ubuntu

I have been trying to get my .htaccess file to work on my localhost. I know that the file works because it is on my server and works. However it doesn't seem to be working locally. I have followed ...
5
votes
1answer
156 views

Apache Authorization for the Allowed Users?

I have read the answer to this question: http://stackoverflow.com/questions/4102763/apache-basic-authentication-except-for-those-allowed It helped me understand how to not authenticate some users ...
5
votes
1answer
157 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 ...
5
votes
3answers
3k views

A Web ssh/telnet client

I'm in kind of a tight spot right now. I wanted to know if someone has seen a HTML, or PHP web ssh client as both my company and school block everything besides port 80. I'm a control freak when it ...
5
votes
2answers
3k views

How do I install mod_pagespeed using apt-get?

I remember seeing an article at one time on how to do this, but now I can't find it. I have seen other install directions. I want to make sure I can easily update it via apt.
5
votes
1answer
263 views

Unkillable apache2 processes

After upgrading from debian lenny to squeeze (apache2 2.2.16-6+squeeze4 and php 5.3.10-1~dotdeb.1), my apache processes started to exit with segmentation fault. It happens every 5-30 minutes (for 1 ...
5
votes
1answer
367 views

How can I setup Apache on Linux to stream WMV-HD to Xbox 360?

What I am looking for is a free and open source solution. If the distro I use matters, it is Open SUSE. VLC supports only WMV1&2.
5
votes
1answer
109 views

Slow ikiwiki after first run

I have local ikiwiki on my notebook (with apache as local webserver). When I save an edit the first time after booting and logging in, saving is very slow (but the second time saving is at normal ...
4
votes
3answers
9k views

Does curl have a timeout?

So far I couldn't find anything really, but is it true that curl doesn't really time out at all? user@host:~# curl http://localhost/testdir/image.jpg I'm asking because I'm redirecting any request ...
4
votes
2answers
572 views

Apache refuses to start on any port

I can't seem to get Apache to start on any port. I'm always getting the error: apache2(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 I checked to make sure that ...
4
votes
1answer
1k views

recovering deleted file held open by apache?

suppose an apache log file gets deleted but its held open by apache then this is what i am doing. pid=$(lsof | grep text.txt | awk '/deleted/ {print $2}') fd=$(lsof | grep text.txt | awk '/deleted/ ...
4
votes
2answers
20k views

How to configure SSL in apache?

I have installed apache in RHEL 6. Everything is working fine. What all changes and configurations should be done to use https://localhost:443/. If I change the "Listen 80" to 443 it is throwing an ...
4
votes
1answer
1k views

Bash, remove lines containing string with grep

This is currently deleting the whole contents of the file in question: #!/bin/bash rpc_port="9201"; dir="/etc/apache2/ports.conf" cat $dir | grep -v "Listen $rpc_port" > $dir The file contents: ...
4
votes
2answers
572 views

apache and php Segmentation fault [closed]

I have recently migrated to Archlinux. I installed Apache, php and mysql according to the Arch Linux LAMP wiki page. Now I have setup a virtual host for my new Symfony project. For every request I ...
4
votes
1answer
128 views

If I'm logged in as root, how do I restart mysql or apache with options?

I know the commands to restart/stop/start, but when I try to pass options it doesn't seem to work! CENTOS 6, MySQL 5.14 service mysql restart service httpd restart Then I tried this: ...
4
votes
1answer
1k views

How to configure permissions to allow apache to securely have access to a file in a shared environment?

This is a follow up question from my previous, but I felt it might be more Linux based. http://serverfault.com/questions/414207/how-to-set-linux-permissions-to-allow-apache-to-have-access-to-a-file ...
4
votes
1answer
13k views

apache2 Invalid command 'SSLEngine'

Running: CentOS6 x64 When I restart httpd, I get the following error. What am I missing? [root@localhost ~]# service httpd restart Stopping httpd: [ OK ...
4
votes
2answers
749 views

Limiting the Size of Apache HTTPD Memory Footprint

I have a web server running Cent OS 5 with Apache. I have over 1GB of Ram and the MaxSpareServers set to 15. This would be fine under most situations, but for some reason my httpd processes are ...
4
votes
1answer
95 views

How to set a directory's permissions for group read/execute access

I am running Arch and have just install XAMPP. I have change changed my document root to /srv which is a separate EXT4 partition. I have set the Apache HTTP server to use a group called "http". I have ...
4
votes
2answers
879 views

Access VirtualBox Debian Apache Guest on Windows Host

I am running Oracle VirtualBox with Debian as guest OS on a Windows 7 host. I have installed Apache and specified the following two network adapters in VM: Bridge Host-only w/ the same IP set as ...
4
votes
1answer
2k views

Where do I set FollowSymLinks?

I have just set up an Apache 2.2 server on a new Linux Mint installation. I am recreating a previous set up I had on an old Ubuntu machine. On my previous computer, I had to enable FollowSymLinks in ...
4
votes
2answers
695 views

How to set secure permissions for multiple users and multiple websites?

On a Gentoo 3.2.12 server with apache2+php, there are several websites running: /www /website1 /website2 ...etc The apache user should have read-only access to all the websites. There ...
4
votes
1answer
51 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 ...
4
votes
1answer
893 views

How can I start Apache on Arch Linux w/systemd using passphrase protected SSL keys?

I'm relatively new to using Arch Linux and think I must be missing the obvious way to do this correctly, but –short of starting the daemon on my own– I can't figure out how to get passphrase protected ...
4
votes
2answers
685 views

How to Update Apache to allow Pseudostreaming on CENTOS 5.5 & WHM

I can't figure out how to get pseudostreaming on my Apache server (CENTOS 5.5 i686). I've read this article and these install instructions. I cannot install httpd-devel or mod_ssl via yum; I get ...
4
votes
1answer
278 views

Configuring Apache to Require a Client Certificate

I want to implement mutual authentication (two - way ) with apache web server. References : 1.Failed to sign CSR with the CA root key 2.Firefox error message when adding client certificate ...
4
votes
1answer
846 views

MySQL stop/waiting issues; “can't connect … through socket” [duplicate]

So this was my first time putting up a LAMP stack on a Bodhi machine (previously experience with WAMP, and LAMP on 10.04); I got Apache going, and a Drupal install begun, then I go to create a new ...
3
votes
2answers
208 views

How to host a website on personal computer

I want to start hosting my website at my own computer as well websites of my friends too (say mini hosting platform). I learned Debian, Bind9 and Apache for this purpose. On my system everything is ...
3
votes
2answers
2k views

Sync with a Directory Listing of An Apache Server

Is there an easy way to keep a folder synced with a directory listing via HTTP? Edit: Thanks for the tip with wget! I created a shell script and added it as a cron job: remote_dirs=( ...
3
votes
1answer
97 views

Can ssl folder be removed without causing conflict

In /etc/httpd the ssl folder, if that is removed does that mean any site on the server if directed to https:// will not throw warning? I got a certificate a while back but soon realized if not a paid ...
3
votes
1answer
167 views

How do I stop Apache from running as root?

New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before. I started ...
3
votes
5answers
8k views

Apache won't start on Fedora 15

I can't get Apache to start on Fedora 15. I downloaded a project into /var/www/html and changed myself to the owner (recursively), though I don't think I changed any SELinux contexts or anything like ...
3
votes
1answer
39 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
368 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 ...
3
votes
3answers
230 views

How do I find where Apache keeps the log files?

I need to find where Apache is keeping the access and error logs for a site. I have root access to a server where dozens of sites are hosted. I'm trying to debug one of those sites. When I browse the ...
3
votes
1answer
195 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
1answer
462 views

Bot requesting odd resource in apache logs

While studying for the RHSCA exam I set up my first home server and quickly found that bots had already started requesting commonly vulnerable files. It was alarming at first, then just purely amusing ...