Open-source HTTP server.

learn more… | top users | synonyms (1)

142
votes
8answers
327k views

Could not reliably determine the server's fully qualified domain name?

When I restart my apache server using the command sudo /etc/init.d/apache2 restart I get the following error: Restarting web server apache2 apache2: Could not reliably determine the server's ...
81
votes
2answers
130k views

How to enable mod_rewrite in Apache?

I just installed the LAMP stack on my Ubuntu system. The redirection is not working for me. I don't know how to fix it. Can anyone help me?
69
votes
11answers
11k views

What's the easiest way to set up a LAMP stack?

I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be ...
62
votes
8answers
250k views

How do you restart Apache?

I switched from SLES to Ubuntu and now I want to restart my local server. In SLES I used : rcapache2 restart but this somehow seems not to work in Ubuntu. :( How do i restart my Apache?
56
votes
8answers
92k views

How can I access Apache (on VirtualBox guest) from host?

I installed Apache on an Ubuntu VM. When I go into the guest and load up Firefox I can see that Apache is working fine when I browse to localhost. I would like to access this same page through the ...
40
votes
2answers
18k views

Why shouldn't /var/www have chmod 777

When developing a page on a localhost, I sometimes get a "Permission denied" error which I can solve by running chmod -R 777 /var/www. However, people are telling me that this is a bad idea for ...
35
votes
3answers
88k views

Where are the Apache and PHP log files?

I've installed Apache, PHP, and MySQL on Ubuntu 10.10 desktop edition, and it's working fine. Except I have no clue where to look for Apache or PHP log files.
29
votes
3answers
28k views

how to disable apache2 server from auto starting upon boot up

I was wondering how can I disable the apache2 server from running upon boot up? I can't seem to find an option which disables it to auto start when I turn on the machine.
29
votes
5answers
6k views

How to easily start a webserver in any folder?

I'm looking for a relatively painless way to launch a web server with document root in any folder I specify (or better yet, where I'm launching). I often try out new things like JS frameworks or so ...
29
votes
5answers
32k views

how to stop apache2, mysql from starting automatically as computer starts?

my os is 11.04. i have apache2 & mysql installed. how to stop apache2, mysql from starting automatically as computer starts?
23
votes
5answers
88k views

Permanently removing apache2

It seems a simple apt-get remove apache2 does not completely remove apache2 as I can still see it on one of the processes when running top. How does one remove apache2 completely on his ubuntu server? ...
23
votes
1answer
12k views

Apache virtualhosts no longer working after update to 13.10

I updated my kubuntu to 13.10 today and my virtualhosts that worked perfectly before are no longer working. the s2ensite and a2dissite commands claim "site xxxxxx does not exists" even the files are ...
21
votes
2answers
20k views

Where to place my local website starting with the 2.4.7 version of apache2?

I recently installed Ubuntu 14.04, then I installed lamp-server and placed my webpages in /var/www directory, but when I opened localhost in the browser there was nothing. I think that happened ...
20
votes
3answers
32k views

How to keep apache and mysql from starting automatically

Is there a way to make apache and mysql not run automatically on startup? Currently, whenever I boot my machine, they start automatically and run in the background. I am using Ubuntu 12.04.
19
votes
4answers
75k views

Problem with restarting Apache2 [duplicate]

I'm trying to restart apache2 : sudo service apache2 restart But get below error : Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully ...
19
votes
4answers
40k views

How can I reinstall Apache HTTPD after deleting some of the configuration files?

I recently was messing around with my Apache config and wanted to reinstall so I could start from fresh. I followed some forum posts about reinstalling the apache2 package and this ended up deleting ...
19
votes
2answers
29k views

403 error after upgrading to apache2.4

After upgrading from Ubuntu 13.04 server, the www pages won't display themselves. Error 403 Forbidden You don't have permission to access / on this server. I've changed access control saves from ...
18
votes
2answers
40k views

Install of mod_proxy to get ProxyPass to work

I've been trying to follow these instructions, so that I could get the Citadel mail server to work alongside Apache, but I get an error when I try to restart Apache: Invalid command 'ProxyPass', ...
17
votes
2answers
25k views

Upgraded to Ubuntu 13.10 - Apache not able to start

I updated to Ubuntu 13.10 (from Ubuntu 13.04) last weekend, and now Apache is not being able to start. It was working perfectly well until the upgraded, and I haven't changed anything myself. When I ...
17
votes
5answers
22k views

How to have two version of PHP installed and switch easily?

I want to have both PHP 5.2.17 and PHP 5.3.5 installed on my Ubuntu machine and switch as per my necessity. How can I achieve this?
16
votes
4answers
20k views

How to make Apache run as current user

I think for a development machine, its more convenient to run Apache as the current user to simplify permissions problem? How do I do that? I think its suexec but how do I configure it in ...
15
votes
6answers
7k views

upstart-supervised init script for Apache?

I want to run apache on Ubuntu 10.04, and use the nice supervision stuff in upstart (I'm not just talking about the apache init script, but proper service supervision a la daemontools - which is to ...
14
votes
2answers
61k views

Find the correct php.ini file

I am currently trying to locate the correct php.ini file to edit it and restart apache so the changes will take place and I'm stumped. What I have done... I have found three different php.ini files ...
13
votes
4answers
21k views

Custom Apache 404 page

I want to customise the 404 page of my Apache Webserver on Ubuntu to something other than the general: Not Found The requested URL /***** was not found on this server. ...
13
votes
3answers
6k views

How do you install mod_wsgi?

I ran the following commands sudo apt-get install libapache2-mod-wsgi sudo a2enmod mod-wsgi I keep getting this extremely frustrating message ERROR: Module mod-wsgi does not exist! Please help. ...
12
votes
5answers
29k views

Cannot get mcrypt for PHP5

I've done this many times: sudo aptitude install php5-mcrypt sudo apache2ctl restart aptitude says mcrypt is installed. I've reinstalled it 3 times already. I've restarted apache about 20 times ...
12
votes
4answers
8k views

Install Apache, Php, Mysql latest versions not available via apt

I need to install the latest versions of apache, php and mysql that are available on their websites, but the problem is that apt repositories don't have these updates versions yet. Versions that I ...
11
votes
5answers
17k views

Apache symlinked to home directory - Permission Errors

im having a few problems symlinking my /var/www/ to a new Webroot directory inside my home folder. I think these stem from my lack of understanding of linux permissions. As far as im aware, symlinks ...
11
votes
3answers
38k views

PHP not working in Apache2 after system upgrade

Recently upgraded my system from Karmic to Lucid. This involved Apache and PHP being updated I believe. Now my server is unable to handle PHP files, any navigation to them is triggering downloading ...
11
votes
1answer
337 views

Strange POST requests to my Ubuntu server - am I in trouble?

I have an Ubuntu Server 12.04 installed on a VM. This server has apache2-mpm-prefork and libapache2-mod-php5 installed. I was looking through the logs and recently came across these rather ...
10
votes
2answers
17k views

htpasswd executable is missing

I'm running 13.10. Clean install. Ran: sudo apt-get install apache2 I would expect that I would have htpasswd in the /usr/sbin directory along with the apache2 executable. I don't. I can ...
10
votes
4answers
40k views

Grant a user permissions on www-data owned /var/www

I have a simple web server setup for some websites, with a layout something like: site1: /var/www/site1/public_html/ site2: /var/www/site2/public_html/ I have previously used the root user to ...
10
votes
1answer
894 views

Is it okay to use symbolic links in my web server?

I have the following directory setup: /var/www/html and /home/tim/Website/files_here The folder html is actually a link to /home/tim/Website. This means all my Website files are in my home area ...
10
votes
2answers
20k views

Is this a correct way to enable htaccess in Apache 2.4.7 on Ubuntu 12.04

In almost every solution of "How to activate htaccess", they say that the /etc/apache2/sites-available/default file needs to be edited. But there isn't such file in Apache 2.4.7 I read somewhere ...
10
votes
1answer
9k views

How do I use Python with apache2?

I'm trying to get Python working with Apache, however I'm failing to have success with either CGI or mod_python. Does anyone know a good tutorial or something? Thanks.
10
votes
5answers
13k views

GUI tools for Apache

Are there any GUI tools for configuring and monitoring Apache?
10
votes
2answers
3k views

What's the recommended way to install Wordpress from packages on a server?

I've got a LAMP server available from http://91.xxx.xx.xx/ (just an example IP address), and I'd like to install Wordpress there. I've gone as far as doing a simple sudo apt-get install wordpress to ...
9
votes
5answers
32k views

How do I install Apache Tomcat 7?

Troubleshooting with apache Tomcat 7 steps should be followed .... after downloading apache-Tomcat 7 // open terminal go to that downloading file folder in which tar.gz file is still. Untar the ...
9
votes
2answers
6k views

When will Apache 2.4.2 be available in a ppa or normal pkg release?

So Apache 2.4.2 was released on April 17th, 2012. As of yet, it doesn't seem to be in any repositories yet. All I can find out by googling is suggestions of building from the GIT source. I'd rather ...
8
votes
6answers
25k views

Why is my Apache not working after upgrading to Ubuntu 14.04?

[aman@aman-Inspiron-1440:~$ apache2 [Mon Apr 21 17:36:38.019213 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Mon Apr 21 17:36:38.019345 2014] [core:warn] ...
8
votes
4answers
39k views

Why am I getting “Permission denied: make_sock: could not bind to address” when starting Apache2?

I can stop it using /etc/init.d/apache2 stop But when I want to start it again using: /etc/init.d/apache2 start I get this error: Starting web server apache2 ...
8
votes
3answers
28k views

How can I watch the current connections on my Apache webserver?

I am hosting quite a lot of virtual hosts using Apache in a basic LAMP set up with the help of Webmin/Virtualmin. I am looking for a top-like tool in which I can monitor current connections. The ...
8
votes
2answers
602 views

Can I use a desktop install as a server?

I'm new to Linux and Ubuntu is my first distribution. I have chosen Ubuntu because I want to learn more about Linux. I'm under time constraints and need to setup a server as soon as possible. I have ...
8
votes
3answers
1k views

Recommended workflows for Apache virtual hosts?

I do a lot of local web development work on my Ubuntu machine, and I'm constantly setting up virtual hosts in Apache. I don't need to do hard core server management, but I am getting tired of the ...
8
votes
2answers
10k views

AWStats: cannot access /var/log/apache2/access.log

I installed awstats on my new Ubuntu Lucid server, but when cron tries to run it as user www-data, it complains that cannot access /var/log/apache2/access.log: Permission denied. In ...
8
votes
6answers
21k views

Apache fails to start, Address already in use (but not really)

I'm trying to set up a VM running Ubuntu 12.04. I have two virtual hosts configured using port 80, but Apache will not start. I get this error: (98) Address already in use: make_sock: could ...
8
votes
6answers
45k views

Change XAMPP's htdocs web root folder to another one

I'm trying to change the XAMPP's web root default directory /opt/lampp/htocs to another one like /home/me/Dropbox/public_html without success. I've edited the file /opt/lampp/etc/httpd.conf # old ...
8
votes
2answers
5k views

How to setup a Virtual host for local development

Ubuntu 11.04 installed with apache2 and all the relevant packages installed. I have tried most of the blogs and made google and other forums my best friends, yet I'm unable to solve this issue. I ...
8
votes
2answers
6k views

How do I properly set up and secure a production LAMP Server?

It's very hard to find comprehensive information on this subject. Either I found short tutorials on how you perform the installation, as simple as "apt-get install apache2", or outdated tutorials. So ...
7
votes
2answers
25k views

How to solve the phpmyadmin not found issue after upgrading php and apache?

Recently I have install the PHP, Apache, MySQL, phpMyAdmin, python in my Ubuntu Desktop 12.04.3 LTS to use it as a LAMP server. The commands I used to install these are given below: 1: sudo passwd 2: ...