Open-source HTTP server.

learn more… | top users | synonyms (1)

68
votes
11answers
9k 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 ...
14
votes
2answers
6k 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 ...
38
votes
2answers
15k 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 ...
16
votes
2answers
18k 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 ...
104
votes
8answers
220k 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 ...
15
votes
4answers
34k 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 ...
27
votes
5answers
28k 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?
5
votes
2answers
8k views

Cannot start XAMPP on Ubuntu 11.10

When I try to start XAMPP with sudo /opt/lampp/lampp start command it gives me a message like this. Starting XAMPP for Linux 1.7.7... XAMPP: Another web server daemon with SSL is already running. ...
2
votes
2answers
418 views

Horizon: Apache exceptions at import_module

I've deployed Openstack using juju, and everything looks normal except that I cannot browse to openstack-dashboard. I get error 500 Internal Server Error. I looked through apache2 logs at that node ...
15
votes
5answers
16k 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?
21
votes
5answers
64k 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? ...
11
votes
4answers
7k 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
15k 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 ...
5
votes
1answer
10k views

Easy way to change apache www location

instead of chaning permissions to /var/www, installing nautilus permission related extensions or having to execute gksu i want to know an easy to do way of changing /var/www to another place like ...
46
votes
8answers
181k 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?
45
votes
7answers
74k 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 ...
15
votes
4answers
14k 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 ...
5
votes
3answers
7k views

Downgrade PHP to PHP5.2?

I want to install PHP 5.2 in Ubuntu 11.04 , I had some script that did that thing good but only on Ubuntu 9, anyone has a script / instructions how to do it?
0
votes
3answers
3k views

Cannot start XAMPP

When I try to start XAMPP with /opt/lampp/lampp start command it gives me a message like this. Starting XAMPP for Linux 1.7.7... XAMPP: Another web server daemon is already running. XAMPP: ...
0
votes
2answers
928 views

Apache Not Accepting a Path in My Home Folder

I have trying to set up an Apache site to use a folder in my home folder without any success. I exactly followed the steps in this page: https://help.ubuntu.com/community/ApacheMySQLPHP yet I did not ...
1
vote
1answer
1k views

Apache / MySql is not running. What is wrong?

I installed lampp / xampp on my Ubuntu 12.04. After installing, Apache and MySQL were running properly. Now, they're not. Here's what I get when I try to run apache: Command: /etc/init.d/apache2 ...
0
votes
3answers
485 views

Php doesn't work on Apache server

I installed LAMP sudo tasksel install lamp-server I can run my site, but the php code is just displayed as text. I have tried this solution, but it didn't help me. When I try to run php script ...
61
votes
1answer
90k 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?
20
votes
3answers
19k 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.
27
votes
3answers
63k 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.
5
votes
6answers
36k 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 ...
2
votes
2answers
14k views

How to install CodeIgniter?

Please give me a step by step process on how to install CodeIgniter on Ubuntu. I'm still a newbie. Thank you!
6
votes
1answer
6k 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 ...
3
votes
2answers
13k views

Why doesn't apache2 respect my envvars file?

My envvar files has these lines in it: export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data My apache2.conf has these lines in it: # These need to be set in /etc/apache2/envvars User ...
2
votes
2answers
4k views

How do I apply a security update to apache

I have been running some penetration tests against our webserver and it's come up with a few issues. One of them is that apache needs a security update (http://www.ubuntu.com/usn/usn-1765-1/). I am ...
2
votes
3answers
2k views

How to set a personalized port as default in Apache?

My website work only if I run: domain.com:44400 How to set port 44400 as the default in Apache? I need have access by domain.com not domain.com:44400
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 ...
0
votes
1answer
716 views

Error installing Apache2 Server

I'm trying to install apache2 server, but it gives following error message: It looks like you've deleted /etc/apache2/mods-available/cgid.load, so mod_cgid cannot be enabled. To fix this, ...
0
votes
0answers
685 views

Problems starting Apache2 on Ubuntu 12.04.1 LTS

I recently installed Ubuntu 12.04.1 on my EC2 Micro instance and then installed Apache2 and PHP5. I am now having trouble starting Apache2, I've checked the error logs and here's the result: [Sun Oct ...
4
votes
2answers
7k views

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 ...
3
votes
2answers
9k views

Ubuntu 13.10 gives “Package 'libapache2-mod-auth-mysql' has no installation candidate” error [closed]

UPDATE: Because Apache 2.4 is the default version (instead of the previous 2.2) this error occurs. However as can be seen here all future versions of Ubuntu 13.10 and above will not support this ...
3
votes
3answers
26k views

can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' [duplicate]

I just installed appache, MySQL and PHP, suring my installation, I was prompted for a MySQL root user password, but when I start my MySQL, it pops the error, and I just can't seem to find a way around ...
2
votes
3answers
8k views

phpmyadmin throws a 404 on opening

I have installed php5 and phpMyAdmin from the Ubuntu Software Centre on a fresh install of Ubuntu 13.04. when I enter localhost in my browser the following is displayed: It works! This is the ...
2
votes
2answers
691 views

Should I as a developer use var/www in conjuction with apache?

I come from a strong Windows background. Therefore with IIS I have some site on my D drive, I then point IIS at this location and start serving files. With Apache though it seems var/www is the ...
1
vote
1answer
122 views

Apache2 cannot find sites after update [duplicate]

after I updated my server 1 hour ago to 14.04 LTS I can't find/load the sites hosted on that server. I use apache2 and haven't really configured anything else than 2 enabled sites on it. As of now the ...
1
vote
1answer
1k views

Why is Apache failing to restart? “review the situation by hand”

ubuntu@fast:~$ /etc/init.d/apache2 restart * Restarting web server apache2 [fail] * There are processes named 'apache2' running which do not match your ...
1
vote
1answer
24k views

The following packages have unmet dependencies [duplicate]

The following packages have unmet dependencies: apache2: Depends: apache2-mpm-worker (= 2.2.22-1ubuntu1) but 2.2.22-1ubuntu1.2 is to be installed or apache2-mpm-prefork (= ...
1
vote
2answers
1k views

500 Error on index.php file

I have found a question very similar to this, which I thought would solve my problem. However, after changing my .htaccess file, with index.php on the end of the list, and then index.php as the only ...
1
vote
1answer
7k views

How do I restart/reload Apache when it can't determine the domain name? [closed]

After installing Xdebug I tried to restart or reload Apache and I received the following message: $ sudo /etc/init.d/apache2 reload * Reloading web server config apache2 apache2: Could not reliably ...
1
vote
2answers
9k views

403 Forbidden Error when accessing enabled virtual host

When accessing a site defined in my local dev environment, I can't seem to get past a 403 Forbidden error. Under /etc/apache2/sites-available/ I have defined a file fun.local: <VirtualHost ...
0
votes
1answer
4k views

How can I open specific ports for my Apache server?

How can I open specific ports for my apache server under linux? I'm trying to build a connection with a online game that sends messages and receives to a specific port. I want to make my apache ...
19
votes
3answers
25k 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.
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 ...
5
votes
1answer
15k views

Configuring Permissions for FTP and Apache

I have a web server (Apache2) that i access with FileZilla. On my web server i have a dir /home/admin/www that i binded to /var/www. So i can access it with FTP. This works perfect! But everytime ...
7
votes
3answers
16k 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 ...