Questions tagged [apache2]

Use this tag for question related to configuring and using Apache on Ubuntu or one of Ubuntu's official derivatives.

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
The Apache HTTP Server is a project of The Apache Software Foundation.ref


Apache HTTP server can be installed using apt-get.
Or, another common method of installing Apache is by using taskel and setting up a lamp stack.

Links

4583 questions
171
votes
2 answers

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?
vinoth
  • 1,811
73
votes
4 answers

Problem with restarting Apache 2

I'm trying to restart Apache 2: sudo service apache2 restart But get the below error: * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName'…
Hamed Kamrava
  • 2,335
  • 11
  • 34
  • 49
51
votes
4 answers

Correct permissions for /var/www and wordpress

I have set up a LAMP server and I have access via SSH and to the "it works" page from a web browser from inside my network (via ip address) and from outside using dyndns. We have some Wordpress projects that sit in subdirectories in…
dpbklyn
  • 855
43
votes
5 answers

Apache can't access folders in my home directory

I have changed the configuration of Apache to point towards a folder in my home directory: ServerAdmin webmaster@localhost DocumentRoot /home/dbugger/html Options FollowSymLinks …
34
votes
4 answers

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 apache2.2 to apache2.4, but that didn't work. What…
27
votes
4 answers

cgi-bin not working

I reinstalled kubuntu 13.10, cgi-bin is not working. Apache downloads the cgi instead of executing it! I have the latest apache with cgi mod enabled. To 000-default.conf, I added these options: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Ivan Borisov
  • 716
  • 1
  • 7
  • 15
25
votes
2 answers

Apache2: Forbidden You don't have permission to access /dir/ on this server

I can access localhost but not the sub directories index.html My default conf looks like: ServerAdmin webmaster@localhost DocumentRoot /var/www Options FollowSymLinks AllowOverride…
18
votes
5 answers

Why am I getting the Apache2 Ubuntu Default Page instead of my own index.html page?

I have an Ubuntu 14.10 computer that is used for local website testing, it is not serving to the internet. On it, I have seven websites set up. However, when I access two of the seven, I get the Apache2 Ubuntu Default Page instead of my own index…
Questioner
  • 6,839
17
votes
8 answers

apache2 error Could not open configuration file /etc/apache2/conf.d/: No such file or directory

I have just upgraded my Ubuntu 13.10 and apache2 is not working. When I try to start the apache2 server it is printing following errors: * Starting web server apache2 * The apache2 configtest failed. Output of config test was: apache2: Syntax…
Sundar Elumalai
  • 171
  • 1
  • 1
  • 3
16
votes
5 answers

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. ______________________________________________________ Apache/*.*.** (Ubuntu)…
Amith KK
  • 13,412
15
votes
1 answer

apache2.service is masked

When I try to restart apache2 by using the command: sudo service apache2 restart It gives me this error: Failed to restart apache2.service: Unit apache2.service is masked. Is this a hosting-related problem?
Vitalynx
  • 153
15
votes
3 answers

How do I make apache run a cgi instead of showing the text?

I'm trying to install bugzilla 4 on ubuntu 11.04 I've added the following to my httpd.conf AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride…
FigBug
  • 313
15
votes
5 answers

Apache doesn't execute PHP files, but makes me download them

So I setup my server using this tutorial, and when the test.php file works with no problem when I enter the address using my server's IP as http://1.2.3.4/test.php However, if I use virtualhosts, the browser just offers to download the file rather…
13
votes
5 answers

Apache, problem Failed to start LSB: Apache2 web server

I use Ubuntu 16.02. When i try sudo service apache2 restart, it says: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. Then I type:…
A.Verber
  • 133
13
votes
2 answers

Cannot find /etc/apache2/sites-available/default when configuring Apache

I followed the instruction here to configure a PHP development environment. First: sudo tasksel install lamp-server It succeeded, and It works! is outputted in http://localhost/. Then: sudo cp /etc/apache2/sites-available/default…
user159
  • 233
1
2 3
23 24