Open-source HTTP server.

learn more… | top users | synonyms (1)

203
votes
8answers
483k 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 ...
99
votes
2answers
197k 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?
91
votes
8answers
378k 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?
74
votes
12answers
17k 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 ...
72
votes
8answers
125k 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 ...
66
votes
3answers
158k 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.
44
votes
3answers
45k 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.
43
votes
2answers
23k 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 ...
38
votes
5answers
14k 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 ...
36
votes
4answers
133k 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 ...
32
votes
2answers
126k 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 ...
31
votes
5answers
127k 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? ...
31
votes
3answers
42k 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.
30
votes
6answers
36k 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?
27
votes
5answers
34k 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?
26
votes
2answers
44k 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 ...
26
votes
3answers
38k 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 ...
25
votes
1answer
13k 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 ...
23
votes
4answers
51k 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 ...
23
votes
2answers
39k 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 ...
22
votes
2answers
55k 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', ...
19
votes
5answers
44k 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 ...
18
votes
2answers
31k 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 ...
16
votes
5answers
28k 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 ...
16
votes
4answers
9k 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. ...
15
votes
3answers
62k 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: ...
15
votes
2answers
48k 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 ...
15
votes
6answers
8k 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
8answers
54k 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] ...
14
votes
3answers
58k views

How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal?

I'm relatively new to the world of unix command line web server management/administration. Many hosts with control panel administration options allow you to change how PHP is run with a simple ...
14
votes
5answers
26k 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
5answers
52k views

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 ...
12
votes
3answers
43k 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 ...
12
votes
4answers
9k 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 ...
12
votes
7answers
33k 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 ...
11
votes
4answers
66k 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 ...
11
votes
5answers
20k 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
44k 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
10k 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.
11
votes
1answer
392 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
4answers
56k 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 ...
10
votes
1answer
2k 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
5answers
17k views

GUI tools for Apache

Are there any GUI tools for configuring and monitoring Apache?
10
votes
2answers
4k 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
6answers
40k views

Why Apache virtual hosts on Ubuntu 14.04 is not working?

I installed Apache 2.4 on Ubuntu 14.04 and it was working fine by http://localhost/ address. But when I tried to add a new virtual host, for example http://bow.loc and restart apache, new address was ...
9
votes
1answer
26k views

How do I enable the mod_rewrite Apache module for Ubuntu 11.04?

In other linux like CentOS, it works but i am not getting it running in Ubuntu 11.04. /var/www/html/folder/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module ...
9
votes
1answer
15k views

How do we know that a directory is apache writable?

I've been told that I should create a images folder and an assets folder, and that I needed to make sure that: "they are apache writable". I've also been told to make the app/runtime directory ...
9
votes
2answers
12k 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 ...
9
votes
5answers
33k 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
6answers
61k 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 ...