Open-source HTTP server.

learn more… | top users | synonyms (1)

24
votes
2answers
36k 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 ...
71
votes
12answers
14k 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
21k 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 ...
25
votes
2answers
36k 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 ...
183
votes
8answers
439k 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 ...
5
votes
2answers
8k 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 ...
22
votes
4answers
47k 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 ...
30
votes
6answers
35k 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?
10
votes
4answers
46k 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 ...
7
votes
2answers
11k 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
597 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 ...
70
votes
8answers
116k 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 ...
23
votes
5answers
30k 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?
29
votes
6answers
115k 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? ...
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 ...
10
votes
8answers
45k 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] ...
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?
3
votes
1answer
59k 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 /> ...
16
votes
5answers
25k 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 ...
11
votes
5answers
19k 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 ...
8
votes
1answer
19k views

Easy way to change apache www location

Instead of changing 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 ...
4
votes
1answer
19k views

permission denied for root@localhost for ssh connection

I just installed Ubuntu 14.04 and LAMP on that. Then, I wanted to configure my server, so tried out This tutorial. When I give the command: ssh root@localhost I get : Permission denied, please try ...
2
votes
1answer
39 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 ...
82
votes
8answers
337k 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?
49
votes
3answers
134k 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.
22
votes
2answers
35k 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 ...
3
votes
3answers
17k 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
1answer
23k 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 ...
8
votes
6answers
28k views

Unable to set password for the mysql “root” user

I am new to Ubuntu. I am running Ubuntu 12.10. I am trying to install apache,php,mysql. However I have installed apache and it is running perfectly. sudo apt-get install apache2 But when I tried to ...
3
votes
3answers
928 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 ...
0
votes
4answers
4k 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
984 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 ...
6
votes
4answers
38k views

How to add custom directory e.g. phpmyadmin?

As my knowledge about apache is minimal. I'd like to let it grow so I'd have more experience with LAMP. My hot question for today is: How to add custom directory to webserver? (e.g. phpmyadmin)? My ...
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
5k 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 ...
92
votes
2answers
177k 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?
40
votes
3answers
40k 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.
28
votes
3answers
39k 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.
11
votes
3answers
51k 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: ...
11
votes
3answers
49k 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 ...
10
votes
4answers
50k 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 ...
9
votes
6answers
56k 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
16k 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
3answers
13k 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 ...
6
votes
1answer
7k 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
2answers
21k 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 ...
3
votes
1answer
834 views

Apache not rendering Bugzilla cgi

I've just tried to install Bugzilla on my machine for test purposes. I'm going to evaluate the Bugzilla REST API for a company i'm currently interning at. The problem is that when I go to ...
2
votes
1answer
7k 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
1answer
17k 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
5answers
10k 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