Open-source HTTP server.

learn more… | top users | synonyms (1)

21
votes
2answers
21k 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 ...
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 ...
41
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 ...
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 ...
145
votes
8answers
329k 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 ...
19
votes
4answers
41k 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 ...
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?
7
votes
4answers
34k 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 ...
6
votes
2answers
10k 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
532 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 ...
56
votes
8answers
93k 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 ...
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?
23
votes
5answers
89k 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? ...
9
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] ...
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 ...
6
votes
1answer
15k 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 ...
62
votes
8answers
251k 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?
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 ...
5
votes
3answers
8k 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
960 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
3k 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 ...
81
votes
2answers
131k 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?
35
votes
3answers
89k 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.
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 ...
2
votes
2answers
15k 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 ...
5
votes
3answers
12k views

Is it easy to install Apache web server on Ubuntu desktop?

So I have decided to build a Ubuntu computer, for now I am going to dual boot with Win7, and then install apache web server. Figured I would give the whole web thing a try. Did some searching but ...
3
votes
1answer
20k views

#1045 Cannot log in to the MySQL server

I am totally new in linux/ubuntu I am trying to setup lamp on my OS, however I've installed apache , php , mysql by following commands: sudo apt-get install apache2 sudo apt-get install php5 sudo ...
4
votes
2answers
17k 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
1answer
6k 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 ...
1
vote
5answers
5k 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
0
votes
3answers
127 views

How to access a website under Ubuntu

I am newbie to Ubuntu and trying to migrate from Windows but there is something I can't understand in web developing. In windows I just install the server and make a folder in the www folder or ...
10
votes
1answer
900 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 ...
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 ...
4
votes
1answer
2k views

php not executing on apache server

I have just reinstalled apache and php5 but when I visit my doc root it just downloads a "download" file and when I try documentroot/index.php it just downloads the php, I have php installed but it ...
3
votes
3answers
13k 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 ...
3
votes
3answers
37k 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 ...
3
votes
1answer
13k views

Apache gives 403 Forbidden

Server: Ubuntu 12.04 w/ LAMP I can access the default index.html, but I created a symbolic link to a folder in my Dropbox. Whenever I try to access 192.168.2.6/Joomla (Joomla is the symbolic link), I ...
2
votes
3answers
218 views

How to deploy: ubuntu | apache | python | C++ | mysql [closed]

What if you want to make a non trivial web site and/or web service? How to deploy production server Apache with python for frontend and C++ for backend and MySQL for persistance? What glue should ...
2
votes
1answer
46k views

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: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> ...
2
votes
2answers
10k views

Portforwarding from host to guest using port 80, but it doesn't work

I installed ubuntu server inside a virtual box(11.04), then i configured apache. Inside virtual box setting, i made a port forwarding from port 80(host) to 80(guest), i open my web browser on my ...
0
votes
1answer
937 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, ...
4
votes
2answers
13k 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
10k 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 ...
2
votes
1answer
30 views

File isn't where locate says it is

I'm trying to find a certain file for apache so I used the locate command to find it, however, when I go to the directory that locate says it is in, the file isn't there. Does anyone know why this ...
2
votes
2answers
779 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 ...