The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.

learn more… | top users | synonyms (1)

26
votes
7answers
51k views

What is the best Apache logs Analyzer? [closed]

What real-time log analyzer can you suggest for Apache access and error logs? There is a list of web analytics software on wikipedia, but it would be great to hear opinions from people with ...
14
votes
3answers
1k views

What are some great resources for mastering Apache administration?

I've been working with Apache for a couple years now and am comfortable with basic administration and configuration. However, I'd really like to increase my skill set from basic administration to ...
12
votes
5answers
492 views

Is it worth looking into a webserver other than apache?

I've traditionally deployed my sites under apache, simply by default. I've heard things about NGinX though and I'm wondering under which conditions it would be superior. In addition to apache and ...
9
votes
4answers
257 views

Cheap server stress testing

The IT department of the nonprofit organization I work for recently got a new virtual server running CentOS (with Apache and PHP 5), which is supposed to host our website. During the process of ...
9
votes
1answer
391 views

Why chmod 777 is not secure?

chmod 777 file change the permissions of the file file to read, write, and execute for all. Ok, so the file can be manipulated in any way by any script on the server. But why is this not ...
9
votes
3answers
139 views

How do I ensure that my content is sent via gzip in Apache?

Is there some setting that I can search for in Apache configurations to make sure that all pages, CSS, and JavaScript are sent via gzip? Are they located in different places for different Operating ...
8
votes
4answers
191 views

Can missing anchors be logged?

If I have a broken link it gets logged with a 404. If I have a link to an anchor and the anchor is missing, I don't get an entry in the log. How can I find those broken anchor links, especially if the ...
8
votes
3answers
558 views

Tactics for dealing with misbehaving robots

I have a site that, for regulatory reasons, may not be indexed or searched automatically. This means that we need to keep all robots away and prevent them from spidering the site. Obviously we've had ...
8
votes
3answers
2k views

Forcing SSL and www in .htaccess

I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
7
votes
2answers
19k views

Can I skip the PEM pass phrase question when I restart the webserver?

After buying a multi-domain SSL certificate I have started testing it with the Nginx webserver (following documentation in their SSL wiki page). Everything is fine, it works and I get a green ...
7
votes
1answer
9k views

How can I redirect port 80 to a different port with Apache?

I have tomcat running on port 8080 and want a particular URL, lets say http://example.com/app, to actually point to example.com:8080/app I have other content on the website that should remain ...
7
votes
2answers
281 views

Is there any way to diagnose which PHP or Perl scripts consume the most CPU time on a production server?

On a slightly under-powered server, it occasionally gets hit by lots of robots crawling simultaneously. Whilst one solution is to look into throwing more processing power at the web server, it has ...
7
votes
2answers
2k views

Why does my site only work with a www in the URL?

I'm a bit confused as the following points: There is a simple text website, with no javascript, that works only with the prefix. http://www.mysite.corporation.com works but ...
7
votes
4answers
236 views

Is there an SVN UI for hosting server?

We are considering upgrading to either a dedicated or cloud server. What I would really like is for the hosting account to have SVN installed on it. With a UI that I can use. So when I make a change, ...
7
votes
5answers
167 views

Access site not working for the owner

I made a website, and it works for everyone except for the site owner, who cannot access the site. He gets a "server could not be found" error. I went to his house and the issue occurs for all of his ...
7
votes
1answer
278 views

403 error on index file

When I try to access index.py in my server root through http://domain/, I get a 403 Forbidden error, but when I can access it through http://domain/index.py. In my server logs it says "Options ExecCGI ...
7
votes
2answers
397 views

Apache - How to NOT log 301 redirects

I recently re-designed my site and a lot of the URLs changed. I have already setup rewrite rules in Apache to redirect old URLs to the new URLs. That's all working. My question is, how can I get ...
7
votes
1answer
267 views

Apache rewrite rules for development workstation and server

I've got developers editing pages for several sites on a WAMP stack and then uploading to the public servers running LAMP stacks. We're pretty happy with it, but we have this minor annoyance: we can't ...
7
votes
1answer
346 views

Problem with .htaccess and mod_rewrite after moving site to new server

The site seems to draw the correct links but its not redirecting me to the correct view. The same code works fine on the old server here http://ruse.systemio.net/q&a/. The new server is here ...
7
votes
1answer
664 views

Permissions for serving up temporary files

I have a system (web based application) which pulls file attachments from a 3rd party system via SOAP. These are in turn on our system created as files in a directory. When a user of the system ...
7
votes
5answers
277 views

Tracking down memory issues affecting a website

I've got a website (Wordpress based) that became unresponsive. I SSH'd into the server and saw that we were out of memory. Errors in my apache log files indicated the same... things failing to be ...
7
votes
3answers
1k views

Does using LiteSpeed instead of Apache speed up WordPress?

I've read that Litespeed is a lot faster than Apache. I use mostly WordPress and Joomla sites and am looking for a new server. Will I see a significant increase in speed of WordPress being on a ...
6
votes
3answers
3k views

Where do I create the file .htaccess, in order to serve my HTML5 cache manifest file correctly?

From a post on http://diveintohtml5.org/offline.html (Wayback Machine Copy) Your cache manifest file can be located anywhere on your web server, but it must be served with the content type ...
6
votes
3answers
3k views

How to restart Apache without reseting users sessions?

User is logged-in a PHP website > I restart Apache > User needs to log-in again. How to prevent this? (I don't want user to need to log-in again)
6
votes
3answers
162 views

Use Apache to prevent a PHP script from connecting to a specific domain

Is there a way to prevent apache from connecting to a specific domain e.g. somesite.com? I have a PHP script that trying to connect to specific host, and I would like to prevent that.
6
votes
2answers
1k views

Apache: How can I force the browser to reload CSS files?

How to force the user's web browser to reload CSS files with Apache Server? I updated my website's CSS file but some users are still seeing problems that would be resolved if their browsers fetched ...
6
votes
3answers
3k views

What are the pros and cons of running PHP as an Apache module or a FastCGI?

My VPS is giving me the option between running PHP as an Apache Module or a FastCGI. How should one make this decision? Performance? Security? Ease of use? Compatibility? I'm using PLESK.
6
votes
2answers
157 views

Separating static/uploaded content from the site

I have a site where I anticipate to have a large amount of users. I've heard that it is a good idea to separate user content (uploaded images) and place them on a separate static server where lighttpd ...
6
votes
1answer
2k views

.htaccess rule to redirect from 404 to search results

When a user (or a bot) request on non existing page, I want to redirect him to the search results. I prefere to do it with the .htaccess file using something like: ErrorDocument 404 ...
6
votes
1answer
402 views

Best practices for streaming videos to a large concurrent user base?

What are the best ways to stream videos for a user base of more than 1000 users? What among the below would be the best way to use? An html tag to embed the video in the source element. To use a ...
5
votes
4answers
133 views

WebHosting solutions allowing self-made Apache modules [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I am searching for a web hosting solution that would allow me to use my own Apache modules written in C. Have you ...
5
votes
1answer
8k views

How to pass GET parameters to rewritten URL?

I have an .htaccess rewrite rule like this: RewriteCond %{SCRIPT_FILENME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^search/(.*)$ search.php?q=$1 What this does is, if someone visits ...
5
votes
1answer
1k views

Why has Apache begun running a single process as root, and another as root and the wwwdata user?

I am running Apache Worker-MPM, PHP 5.3.2, and FCGID. Apache runs better than before, but I noticed that there is an apache process running as root and a second process that runs as both root and ...
5
votes
5answers
12k views

“File does not exist” in apache error log

This is an example of an error in out log file: File does not exist: /var/www/website/female, referer: http://www.website.com/female/dresses/A-Dress-Black "/female" doesn't exist, because we use ...
5
votes
3answers
15k views

How to remove trailing slashes from URL with .htaccess?

The situation Across the entire domain, we'd like the URLs to hide file extensions and remove trailing slashes, independent of the domain name itself (as in, works on any domain). Sample of our ...
5
votes
2answers
177 views

Can a 403 error ever be client side?

I've got a well-established web application. It's working for lots of people with a variety of browsers and platforms. But, there's this one guy... He's getting a "403 Forbidden" on his side, I've ...
5
votes
2answers
9k views

How can I diagnose an Internal Server Error?

I was trying to host a zend-framework project on new host provider. After uploading everything and configuring the database connection I have encountered Internal Server Error message. My service ...
5
votes
1answer
354 views

How should incorrectly encoded URLs be handled?

Just recently noticed that some sites link with the URL incorrectly percent-encoded, to which my server (LAMP) responds with a 404 Not Found. For example, for a URL of mine like this: ...
5
votes
1answer
203 views

How to get rid of crawling errors due to the URL Encoded Slashes (%2F) problem in Apache

The Google web crawler has indexed a whole set of URLs with encoded slashes (%2F) for our site. I assume it has picked up the pages from our XML sitemap file. The problem is that the live pages will ...
4
votes
6answers
760 views

Is it dangerous to keep Thumbs.db on a web server?

Windows Thumbs.db system files that are in most of folders were uploaded with all other files from the localhost to the server. Is it dangerous, if you forget to delete them on the server? I am on ...
4
votes
5answers
800 views

Site compromised .htaccess files everywhere

Some of the sites we're hosting are compromised by... I don't know what. Every directory on the webserver contains a .htaccess file which redirects a user coming from a search engine to a page which ...
4
votes
2answers
3k views

How to add multiple websites on a single IP address?

I have a VDS server and a dedicated IP address. The question is how to add multiple sites in a single domain? For example I have 3 sites as below: www.company.co www.webdesign.com www.inet.com ...
4
votes
5answers
733 views

Tool for clickstream anlyzing of Apache logs?

Are there any good tools to analyze the clickstream of individual users in Apache web server logs? For example, I'd like to be able to click on a visitors IP address and see all pages the user ...
4
votes
3answers
122 views

How can I determine the trending pages on my site?

I'm looking to see what the "hot" pages are on one of my sites. I want to see for various timeframes, what the top-50 pages are. I'm only concerned with the current month's data. I'm going to create ...
4
votes
2answers
71 views

Best process for upgrading a live server

I just recently started at a new company, and their live server has PHP v5.2.6 (yes, circa 2008). A site I recently designed for them actually wouldn't work on it because PHP is so old, so I've now ...
4
votes
2answers
135 views

I want to use gzip compression in Apache

I want to enable gzip compression for acethehimalaya.com. Can anybody please tell me what is the best way of achieving compression in an Apache Webserver?
4
votes
4answers
253 views

How to restrict access to my site using htaccess

How to disallow access to site except me?
4
votes
2answers
141 views

Ditch cPanel / WHM in favour of manual seup

We currently use cPanel / WHM on a reseller account but are looking at getting a dedicated server. My first thought was to duplicate this set up on the dedicated box to allow us to quickly create new ...
4
votes
2answers
152 views

Website hack resulting in auto redirect - where to start looking?

My website is being redirected to a non-existent page (/showpage.php) for some users when they hit the homepage. For other users, the site works fine. I have looked in the index.php files and some ...
4
votes
1answer
155 views

Apache create index for directories without one specified.

Currently, I use a PHP script to list the contents of a directory that does not have an index file, but I don't want to have to copy it to every directory without an index. Can Apache do it ...