Open-source HTTP server.

learn more… | top users | synonyms (1)

77
votes
7answers
161k 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 ...
67
votes
11answers
7k 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 ...
48
votes
1answer
62k 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?
43
votes
6answers
64k views

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

I installed Apache on Ubuntu in VirtualBox. When I go into the guest and load up Firefox I can see that Apache is working fine when I browse to http://localhost. I would like to access this same page ...
38
votes
8answers
141k 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?
35
votes
2answers
14k 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 ...
24
votes
5answers
25k 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?
21
votes
5answers
984 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 ...
21
votes
1answer
10k 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 ...
20
votes
3answers
52k 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.
20
votes
5answers
51k 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? ...
19
votes
3answers
22k 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.
18
votes
3answers
15k 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.
15
votes
6answers
6k 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 ...
15
votes
5answers
12k 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?
14
votes
3answers
12k 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 ...
13
votes
4answers
30k 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 ...
12
votes
4answers
15k 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. ...
12
votes
3answers
4k 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. ...
11
votes
1answer
215 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
5answers
14k 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 ...
10
votes
4answers
6k 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 ...
10
votes
2answers
8k 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 ...
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
9k views

GUI tools for Apache

Are there any GUI tools for configuring and monitoring Apache?
9
votes
5answers
31k 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
4answers
23k 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 ...
8
votes
2answers
30k 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 ...
8
votes
1answer
7k 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.
8
votes
2answers
542 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
7k 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
2answers
5k 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
27k 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', ...
7
votes
3answers
15k 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 ...
7
votes
1answer
8k 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 ...
7
votes
3answers
15k views

Setting up virtual host

I currently have all my websites as directories under /var/www. I would like to set up a virtual host http://foo/ that points to the /var/www/foo/foo directory (and still keep the default localhost ...
7
votes
4answers
7k views

How to stop Apache access.log grooving every few seconds?

I installed a fresh Ubuntu 12.04 Server + Zend Server CE (MySQL / PHPmyadmin) from deb http://repos.zend.com/zend-server/5.6.0_ubuntu1204/deb server non-free Repository. My apache2/access.log looks ...
7
votes
1answer
4k views

Setting up gitweb/apache2

I have recently began storing code, that I write on a local server I have at home. I was hoping to start a gitweb instance at home so I can see commits and track progress with my other team mates. I ...
7
votes
1answer
4k 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 ...
6
votes
3answers
531 views

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

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 ...
6
votes
1answer
9k views

Ulimit and make_sock errors

I'm trying to configure Redmine for Ubuntu 11.10, using this method Redmine for 11.10 but ran into some crazy snag somewhere with apache. Upon issuing service apache2 restart I get the following ...
6
votes
1answer
5k views

how to set up a ubuntu server to be (securely) available from internet?

(apologize in advance, I'm a pro-windows newly converted to ubuntu... if my questions are obvious, please tell me). I want to build a ubuntu server continuously connected to the internet. I own only ...
6
votes
3answers
12k 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 ...
6
votes
1answer
642 views

Installing Mercurial: start with Ubuntu Desktop or Server?

I need to set up a Mercurial server for experimentation. The setup will be in a virtual machine, and I figured this was a good time to check out Ubuntu (the other option was Windows). The Mercurial ...
6
votes
1answer
2k views

Issue with “ServerName” upon Boot or Restart of Apache2

The Question: I keep getting this error on all apache2 restarts I have on my box here at my home, and I cannot figure out how to get rid of it: * Restarting web server apache2 apache2: Could not ...
6
votes
5answers
10k 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 ...
6
votes
1answer
9k views

VSFTPD 553 error: could not create file

Fresh LAMP server setup with Ubuntu 12.04 and VSFTPD. I'm trying to access the /var/www folder (web root) with FTP user. I created a new user ftpuser and added it to the www-data user group created ...
6
votes
2answers
2k views

Default location of web site content

I am looking to install MediaWiki on a production server (after doing a test on a development one). I could not really understand why the default location for the MediaWiki files is ...