Skip to main content

Questions tagged [apache2]

Use this tag for question related to configuring and using Apache on Ubuntu or one of Ubuntu's official derivatives.

Filter by
Sorted by
Tagged with
517 votes
14 answers
1.8m views

Apache error "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 fully ...
Deepu's user avatar
  • 5,317
324 votes
13 answers
1.7m 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 seems not to work in Ubuntu. How do I restart Apache?
Jai Puri's user avatar
  • 4,039
299 votes
5 answers
1.1m 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.
Stann's user avatar
  • 15.2k
263 votes
4 answers
312k views

How do I stop Apache2 from automatically starting on boot?

How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.
chip's user avatar
  • 2,901
221 votes
7 answers
964k 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. I have found three different php.ini files (no idea why there ...
Michael's user avatar
  • 2,321
194 votes
10 answers
1.1m 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? ...
Jürgen Paul's user avatar
  • 2,107
184 votes
4 answers
600k views

How can I downgrade from PHP 7 to PHP 5.6 on Ubuntu 16.04? [duplicate]

I am trying to revert my PHP version to 5.6 from 7 and though I removed PHP 7 and then installed PHP 5.6 I still seem to be running version 7. Is there a simple method for moving through PHP versions ...
dibs's user avatar
  • 3,509
172 votes
2 answers
380k 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?
vinoth's user avatar
  • 1,821
154 votes
11 answers
366k 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 ...
urok93's user avatar
  • 1,959
139 votes
12 answers
1.0m views

Apache not able to restart

Trying to restart apache from terminal using the following command: sudo service apache2 restart When executing that command, I'm getting below error: Job for apache2.service failed. See "...
Gautam Savaliya's user avatar
110 votes
6 answers
348k views

Apache: access denied because search permissions are missing

I know this question is asked a lot, but the solutions I saw didn't work for me. I only have one virtual host enabled, and I'm trying to enable access to a folder that's not under the document root ...
Yotam's user avatar
  • 1,379
101 votes
2 answers
379k views

Can't find httpd.conf

I have installed Ubuntu 14.04 on a laptop and installed apache 2 (version 2.4.7) and PHP 5. I cannot find httpd.conf. I need to change it because when I try to open a .php page I see a download box. ...
fosslinux's user avatar
  • 3,831
94 votes
5 answers
520k 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: ...
Farukh's user avatar
  • 1,063
89 votes
6 answers
1.6m views

How can I chmod 777 all subfolders of /var/www?

I’m running a webserver and FTP server, wherein /var/www is bound to /home/user/www. I set both directories to chmod 777 (which is fine since it’s for testing only). I can upload files into /home/...
user1645034's user avatar
  • 1,059
80 votes
3 answers
189k views

how to find out the apache version installed in ubuntu?

how to find out the Apache server version installed in Ubuntu 14.04?
Sumanshu Singh's user avatar
80 votes
2 answers
68k 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 ...
Luis Alvarado's user avatar
79 votes
12 answers
327k 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 ...
Gunner Barnes's user avatar
77 votes
12 answers
183k views

How to have two versions of PHP installed and switch easily between them?

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?
Debiprasad's user avatar
73 votes
4 answers
329k views

Problem with restarting Apache 2 [duplicate]

I'm trying to restart Apache 2: sudo service apache2 restart But get the below error: * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified ...
Hamed Kamrava's user avatar
71 votes
7 answers
212k views

Upgrade to 16.04. php7 not working in browser

I just upgraded from 14.10 to 16.04 and am not sure how to configure PHP 7 in apache. I did modify the php7.0.conf file to uncomment that last lines, restarted apache2 and no change. Do I need to ...
David Wright's user avatar
70 votes
7 answers
386k views

PHP script 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 file. I have PHP installed ...
user2919631's user avatar
69 votes
2 answers
134k 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 ...
user217019's user avatar
66 votes
3 answers
357k views

Permissions problems with /var/www/html and my own home directory for a website document root

I'm trying to not give 777 permission in my /var/www/html folder, but I want to edit my files without sudo. So I thought to create a symlink of a folder in my home directory within /var/www/html. I ...
André Carvalho's user avatar
64 votes
3 answers
74k views

Is there any difference between apache2 and httpd?

Today I was installing phpmyadmin on Ubuntu 12.04 and after a while a dialogue popped up stating what server I want to use; apache2 or httpd Are these, two different kinds of server?
Curious Apprentice's user avatar
64 votes
1 answer
124k views

Install 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', ......
Lance Roberts's user avatar
59 votes
6 answers
264k views

Is this a correct way to enable htaccess in Apache 2.4.7

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 ...
CluelessNoob's user avatar
  • 2,313
56 votes
2 answers
532k views

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? [duplicate]

I am using ubuntu 13.10 on evaluation board and my internet is not working. Also i need to install softwares and apt-get install is also not working. Terminal says : E: Unable to fetch some archives,...
mong cape's user avatar
  • 569
56 votes
1 answer
329k views

Where is apache web root directory on Ubuntu? [duplicate]

On Ubuntu Trusty, which is the apache root directory for web pages?
George Udosen's user avatar
54 votes
2 answers
153k 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 ...
akxer's user avatar
  • 2,046
54 votes
8 answers
136k 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 Ubuntu+...
Jiew Meng's user avatar
  • 10.4k
54 votes
2 answers
301k views

Can't install php5 on Ubuntu 16.04

so I've recently installed my first Ubuntu, to be precise, a daily build of 16.04, on my new laptop since the hardware was to new for 15.10. Now I'm in the process of setting it up and I want to ...
user529857's user avatar
53 votes
3 answers
182k views

setting up subdomain on ubuntu server

I have a server at mysite.no-ip.org. Everything is working fine and I have a blog and owncloud that I access writing mysite.no-ip.org/blog and mysite.no-ip.org/owncloud. Now, I want to create ...
user1983400's user avatar
51 votes
4 answers
177k 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 ...
dpbklyn's user avatar
  • 855
50 votes
6 answers
287k 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 ...
George Pearce's user avatar
49 votes
3 answers
343k views

How to make a directory permanently writable?

I am using LAMP stack for development and I have a problem with making /var/www permanently writable. I use this command: sudo chmod -R a+rwX /var/www This works, but after putting a web app and ...
potomato's user avatar
  • 591
48 votes
5 answers
214k views

default permissions for /var/www

I was trying to open a file and write to it with PHP at /var/wwwfolder but it wasn't working so I did sudo chmod 777 /var/www now I want to set the permissions for /var/www to the default. what are ...
Hossein Hosseinvand's user avatar
48 votes
8 answers
322k views

Change Apache document root folder to secondary hard drive

I installed the ubuntu 12.04 server edition for my server pc . i had installed lamp server. i need to change the var/www location to my secondary hard disk location. i was configured so many time to ...
Moovendra Dhinesh babu's user avatar
46 votes
4 answers
370k views

The requested URL /phpmyadmin was not found on this server

When I was restarting the apche2, I was getting this message.. sudo service apache2 restart * Restarting web server apache2 ...
5yaz khan's user avatar
  • 561
44 votes
3 answers
61k 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.
shubham's user avatar
  • 661
43 votes
6 answers
336k 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 ...
vnay92's user avatar
  • 533
43 votes
4 answers
120k 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 ...
seadowg's user avatar
  • 565
43 votes
7 answers
204k 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 ...
Piotr Kula's user avatar
43 votes
5 answers
251k views

Apache can't access folders in my home directory

I have changed the configuration of Apache to point towards a folder in my home directory: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /home/dbugger/html <...
Enrique Moreno Tent's user avatar
40 votes
3 answers
49k views

Why do I still see an Apache site on Nginx?

I installed nginx then I installed apache2, after a while I removed apache2. After a couple of weeks I noticed something strange when I accessed http://localhost: nginx handles the request but when I ...
Newbie's user avatar
  • 570
40 votes
6 answers
54k 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.
myusuf3's user avatar
  • 34.5k
39 votes
2 answers
82k 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 ...
0R10N's user avatar
  • 2,126
39 votes
9 answers
142k views

Ubuntu Apache2 DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

I have a web server running Ubuntu 17.04 that I am attempting to set up with Apache. Everything ran great until I decided to host two websites on a single machine through virtualHosts. Now apache ...
timhyd's user avatar
  • 491
39 votes
4 answers
188k 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 option....
Evan Mattson's user avatar
37 votes
7 answers
46k 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?
Rahul Prasad's user avatar
36 votes
8 answers
164k 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] [...
Amandeep Singh's user avatar

1
2 3 4 5
95