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

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

Apache not following RewriteRule for a symlinked dir

If I have a bad symlink as such: $ mkdir newmedia $ ln -s newmedia media $ rmdir newmedia So now media\ is a broken link My .htaccess has RewriteRule '^media.*$' https://www.google.com [R=301,L] ...
0
votes
0answers
20 views

Apache2 URL not found mystery

I've been running a LAMP stack on a 15.04 dev machine for about a year without a problem. I have some sites running on localhost and others resolving from virtual hosts. No problems at all. ...
2
votes
0answers
46 views

Error after attempting to update php lampp and reinstall lampp

I tear my hair, it's been almost one day I try to reinstall lampp but it doesn't work. It's been almost one day I try to reinstall lampp on my ubuntu 14.04 LTS in vain. I installed first lamp with ...
0
votes
1answer
18 views

redirect https in *.conf file

On the WWW I can find a lot of info for redirecting http to https. But this isn't exactly what I need. I need to redirect on old dns name to a new one, http and https. Can somebody point me in the ...
0
votes
1answer
52 views

php.ini per-directory won't parse (using FastCGI)

Ubuntu 12.04 Apache 2.2.22 PHP 5.3.10 [running as libapache2-mod-fcgid] [trying to match a development server vs. my web host] I managed to get fcgi to work using a wrapper and have registered the ...
0
votes
1answer
74 views

Apache2-mod-ruid2 doesn't work

I set up an Ubuntu 16.04 server with Apache2 and PHP7 cgi. So far so good but as soon as I install ruid2 sudo apt-get install libapache2-mod-ruid2 Apache stops to work properly. I get a ...
1
vote
0answers
174 views

Apache2 and Mysql gone wrong after upgrade to 16.04

After I installed Ubuntu 16.04 I was not able anymore to access to my Mysql server from h-ttp://localhost/phpmyadmin. I tryed to uninstall and install mysql but unsuccessfully. I discovered that the ...
0
votes
1answer
39 views

Can't find files deleted from /var/www/

I was working on some files located inside my Apache's /var/www/html/ and accidentally deleted them. I did this via right-click "Move to Trash". However, looking at my trash folder, they aren't there....
1
vote
1answer
53 views

Should I modify this file (/etc/apache2/sites-available/default-ssl.conf) while changing Apache “DocumentRoot directory”?

I'm wishing to change my Apache DocumentRoot directory from /var/www/html/ to /path/to/another/directory. I've modified these files, /etc/apache2/apache2.conf and /etc/apache2/sites-available/000-...
0
votes
0answers
29 views

Writting files in the folder /var/www/html from PHP of Apache server

I have apache running on Ubuntu and I'm trying to write (copy an image) that is upload in the following folder: /var/www/html/images I'm trying to write it from HTML/PHP as per the following code &...
0
votes
0answers
40 views

why isn't my file uploading?

I am currently using ubuntu with phpstorm php interpreter in phpstorm: PHP5.5 (5.5.9-1ubuntu4.16) Somehow when I try to upload a file, it just gives me empty array but I tried the same script using ...
0
votes
0answers
69 views

Cannot get PHP5-FPM to work on Ubuntu 14.04 with Apache 2.4

I have been trying all day to upgrade my regular LAMP stack to use PHP5-FPM instead of Apache's default mod_php, but I just can't get it to work! I'm not sure if it's because I'm upgrading to PHP5-...
0
votes
1answer
39 views

Main DocumentRoot refuse to go and i tried everything

I am getting frustrated now as i have removed all default vhosts and made all necessary changes but Main DocumentRoot refuses to go root@example:/etc/apache2# apache2ctl -S VirtualHost configuration: ...
0
votes
0answers
20 views

Virtual hosting on port 8008 not working

I have Apache 2.4.7 on Ubuntu 14.04. I am trying to get a virtual host working, listening on port 8008. My conf file is below. I am getting the default page instead of mysite <VirtualHost *:8008&...
0
votes
1answer
40 views

apache timeout?

I have a dedicated server with apache2. recently apache have started to die when the site is not being used. example yesterday 8am i was doing some programming on the site everything worked fine. ...
0
votes
1answer
64 views

Run php File in Browser from Command Line

I have apache2 working and can run php files by navigating to localhost using chrome browser. However I'd like to be able to launch the files within the browser from the command line. google-chrome ...
0
votes
1answer
743 views

Cannot install php-curl on Ubuntu 16.04 & PHP 7

Command: sudo apt-get install php-curl Output: Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: ...
1
vote
2answers
148 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 though in create a symlink of a folder in my home directory within /var/www/html. I ...
0
votes
1answer
130 views

How to enable php on Apache2 in Xubuntu 16.04 [duplicate]

I've just updated the OS to version 16.04 and now php scripts don't get executed, I've just got the source code back. How can I enable php on 16.04? I've try to call this command: sudo a2enmod php7....
0
votes
0answers
42 views

Multi Virtual host not working on aws ubuntu Apache2

Multiple virtual hosting not working on my ubuntu.Both the two domain pointing to one when a2ensite enabling site. I have tried so far Method 1: My custvantage.conf file <VirtualHost *:80> #...
1
vote
1answer
43 views

“loop involving service”: apt-get install breaks dpkg

One apt-get install went bad, now every apt command results in it trying to get apache2 into a consistent state, which of course crashes. I'm not sure that the package that did it matters, but it was ...
-1
votes
1answer
45 views

How we install Apache and Nginx together and check default page as both uses same port 80

$sudo apt-get install apache2 $Sudo apt-get install nginx Both installed but only apache is running and if we go for nginx after stopping service of apache ,nginx service is running but not showing ...
0
votes
2answers
327 views

PHP installation appears to be missing the MySQL extension

After upgrading my ubuntu from 15.10 to 16.04 LTS, it is showing an error Your PHP installation appears to be missing the MySQL extension when taking any local website from my lamp. When I tried to ...
0
votes
0answers
62 views

can't install phpmyadmin

Please help , I installed phpmyadmin previously , I had an error so i used all methods I found to delete it, but now I can't install it again. That's what I get .. sudo apt-get install phpmyadmin ...
3
votes
0answers
23 views

Apache2 doesn't start. Ubuntu 14.04

I've installed apache2, everything was fine. But after restart the system it doesn't start. When I open localhost in browser I get the error: ERR_CONNECTION_REFUSED. I tried to start it by sudo ...
0
votes
1answer
26 views

Changing the HTML file for Apache

I recently bought a domain and put an HTML and a CSS file for Apache with Ubuntu. Anyway, now I want to change them. I removed the CSS file with cd /var/www/HTML and writing sudo rm blabla.css. But ...
0
votes
1answer
20 views

Apache2 All catalogs without index.html or php are forbidden

All catalogs that havent index.html, or .php are forbidden. I can't access it by server (for example I can't use css in folder css). My apache2.conf <Directory /> #Options Indexes ...
0
votes
2answers
77 views

apache error AH00526: Syntax error on line 1 of -c/-C directives:

I recently upgraded to php56. Now I am unable to run apache. I am getting:- This site can’t be reached localhost refused to connect. when trying to run localhost When I run the command httpd -t -...
0
votes
0answers
51 views

Problem with webserver. LAMP not working as expected. Can somebody help me?

Ok, this problem is driving me crazy. I had IIS 7.0 before in Windows Server 2008 and hosted there 8 wordpress websites. Websites can show from outside without problem, also I could access ...
0
votes
0answers
9 views

how to deny hosts to apache2..?

regarding a specific answer for how to deny access for the outer world to my apache2 webserver. ssh should be allowed and my official network should be able to access the web sites but no access from ...
0
votes
0answers
14 views

How to deny outer world from accessing the webserver?

I have a Wordpress Server hosted on Apache2 in my official network. I don't want this site to be accessible to the outer world. This should only be accessible in my office network. What can be done on ...
0
votes
0answers
33 views

Apache2.4 PHP 5.6 Ubuntu 15.10 No Input File Specified

I am running a VPS with Ubuntu 15.10 using Apache 2.4 as my web server and I am kind of new to servers and stuff but I am currently creating an API. I first did this on my localhost. This worked ...
0
votes
1answer
142 views

Ubuntu 16.04 server ports are closing on their own

I am running squirrelmail, apache2, and postfix on Ubuntu 16.04 server edition. The server works fine, but if I don't use it for about an hour port 80 and 25 become closed for anyone trying to connect ...
0
votes
0answers
42 views

Xampp installation went correct , but in localhost I get the “Apache2 default page”, didn't get xampp home page

I download Xampp from apachefriends.org and install it using the procedure which is published in computernetworkingnotes.com. I got the installation wizard and I installed it to check whether it ...
3
votes
1answer
110 views

Apache startup script keeps lock file open

I am writing a bash script for a backup task. Among other things (file system freeze, database lock, snapshots,...) it involves shutting down Apache and restarting it after the Backup. Since that ...
0
votes
0answers
13 views

R script cannot run on Ubuntu

I have an rhtml, which I would like to use on an Ubuntu server. I think, it cannot interpret my code, it gives output like this in browser: range<-max2-abs(min2) m[i,j]<-range } else{ range<-...
2
votes
1answer
558 views

pdo_mysql removed on updating to 16.04

I recently updated to 16.04 LTS. And it updated my php to 7.0. Now it some how removed pdo_mysql. I need this extension to develop magento website. In phpinfo, I find pdo support: enabled pdo ...
0
votes
0answers
50 views

Problem with Apache2 after upgrading to 16.04 webpage not displaying correctly

I have a page that displays my radio station information. It looks something like this: <html> <body style="background-color:transparent"> <?php require("config.php"); $db->...
0
votes
2answers
92 views

Apache configuration

I am new to Ubuntu , I am configuring Apache to read root document from my home directory sites directory I edited the (default) file under /etc/apache2/available-sites to read from /home/username ...
0
votes
0answers
26 views

Run 2 localhost services at the same time

I'm trying to run ERPNext and ZoneMinder at the same time on my Linux Ubuntu 15.10 machine. At the moment I already have up and running ERPNext and after making the installation of ZoneMinder when I ...
0
votes
0answers
35 views

How to install php5 on Ubuntu terminal? [duplicate]

I'm having a problem installing PHP5 on Ubuntu. I've installed apache, but when I try to install PHP5 I get the error: E: package 'libapache2-mod-php5' has no installation candidate
0
votes
0answers
13 views

localhost forbidden after installing wordpresss

I've just installed wordpress and my apache server was working as normal before i started doing it following this tutorial. When i now tro to acess my server i am getting 404 forbidden whenever i try ...
0
votes
1answer
147 views

Trouble installing PHP5 modules

I followed this speed tutorial: https://www.liberiangeek.net/2015/11/how-to-easily-install-wordpress-on-ubuntu-15-10/ but I got stuck at Step 4... When I run following code in the terminal: sudo ...
0
votes
1answer
10 views

Prevent that browser loads a site from cache which is protected by basic authentication

Is there a way to configure Apache 2.4.7 such that when I query a HTML file which is protected by basic authentication the browser doesn't load parts of the site he has already in the cache? I'm ...
0
votes
1answer
31 views

Changes on Virtual Host Definition have no effect - Apache2

I use Ubuntu 14.04.4 and Apache 2.4.7 In the directory /etc/apache2/sites-enabled/ are to files called 000-default.conf for http connections and ssl.conf for https connections, which works fine. ...
0
votes
0answers
18 views

Ubuntu server and mysql with bitnami

I'm hoping someone can help me or point me in the right direction. I have an Ubuntu 14.4 server running as a web server which we run a WordPress installation on, We've used the Bitnami installer to ...
4
votes
1answer
2k views

Can't get mysql/phpmyadmin to work after updating to 16.04

After the update, mysql/phpmyadmin stopped working. When I do: sudo dpkg-reconfigure phpmyadmin I get this error: An error occurred while installing the database: │ ...
1
vote
2answers
91 views

Apache2 gzip not working?

I've done almost everything on the internet to gzip my content. It does not seem to work. I've done so much that I can't possibly put everything I've tried here, so here's some of the things I've ...
0
votes
0answers
70 views

Owncloud unclear error

I just updated from Ubuntu server 14.10 to 16.04 and also from owncloud 8.2 to onwcloud 9.0 with php 7. When I want to start owncloud the following errors occur, and I do not know how to handle them. ...
0
votes
0answers
19 views

Subversion issue

I have launched an instance with AMI powered by Bitnami that has Apache, Java, Wildfly and Mysql pre installed. The version of Apache(httpd) is 2.4.18. I installed the subversion using: sudo apt-get ...