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
7 views

Permission in /var/www

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
7 views

How to enable php on Apache2 in Xubuntu 16.04

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 ...
0
votes
0answers
14 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
18 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 ...
-4
votes
1answer
21 views

Apache Working From Inside

I would like to know how an Apache Web Server works from the inside, which includes its modules. And how Apache opens it's PHP Module when it finds file.php but doesn't do it in file.html, although ...
-1
votes
1answer
13 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
1answer
33 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
14 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 ...
2
votes
0answers
10 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
17 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
13 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
17 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
39 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
12 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
10 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
0answers
42 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
16 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 ...
0
votes
0answers
56 views
+100

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
7 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{ ...
0
votes
1answer
63 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
20 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"); ...
0
votes
2answers
50 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
16 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
32 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
12 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
44 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
7 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
20 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
14 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 ...
2
votes
2answers
244 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: │ ...
0
votes
0answers
19 views
+50

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
29 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
12 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 ...
0
votes
3answers
981 views

Ubuntu 16.04 upgrade killed owncloud … and many other things but right now I need help with authorization

Ubuntu 16.04 is a nightmare. I have had to fix mysql php zoneminder ... my website doesn't work anymore and owncloud is giving me an error. When I try to open owncloud I get the following: ...
-1
votes
0answers
8 views

am getting following error when am going to upadate and install cmd in root for apache2 in ubuntu 14.0 [duplicate]

root@ubuntu-1gb-sgp1-01:~# sudo apt-get install apache2 E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory) E: Unable to lock the administration directory ...
7
votes
4answers
3k views

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

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 ...
1
vote
1answer
301 views

PHP and Apache2 broken after upgrade to Ubuntu 16.04

I've been having a lot of trouble fixing up the remains of my server after upgrading to Xenial yesterday. PHP apps run as a mess of code, and ownCloud 'can't be found on the server' anymore. It may ...
2
votes
1answer
32 views

How do I permanently removing a ban stored by Fail2Ban

I have two filters that have banned local addresses. I have added the addresses to ignoreip but the damage was done already and the bans are in place. Every time I reboot my computer I have to do an ...
1
vote
1answer
10 views

404 NOT FOUND when I try to access my project's index.php

I have a 404 NOT FOUND when I try to access my project's index.php with LAMP installed. I thought of /etc/apache2/apache2.conf to make sure that the rewrite module is enabled. but I face the same ...
7
votes
2answers
2k 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 ...
4
votes
2answers
909 views

PHP rendered as text after Ubuntu 16.04 upgrade

Apache is rendering PHP files as text after Ubuntu 16.04 upgrade. Apache is installed and running. PHP7 is running. When I execute the following command I get the correct output: php -r 'echo ...
2
votes
2answers
444 views

localhost/phpmyadmin not working on ubuntu 16.04

recently fresh installed Ubuntu 16.04 removing Ubuntu 14.04. I am trying to setup LAMP on local machine and have installed PHP7.0, mySql and phpMyadmin. All is working fine, http://localhost is ...
1
vote
0answers
37 views

Permissions to write files in the apache folder /var/www/html from PHP

I have apache running on Ubuntu and I'm trying to write (copy an image) in the following folder: /var/www/html/images I'm trying to write it from HTML/PHP <?php $uploaddir = ...
4
votes
4answers
4k views

phpmyadmin missing mbstring extention Ubuntu 16.04

I upgraded my Ubuntu 14.04 to 16.04. But my phpmyadmin has error The mbstring extension is missing. Please check your PHP configuration. I searched somewhere but no solution on Ubuntu. Please help ...
0
votes
1answer
165 views

I'm getting this error when try to update to php5

When I try to upgrade php from 5.3 to 5.6, this wild error appears Extracting templates from packages: 100% (Reading database ... 98172 files and directories currently installed.) Unpacking ...
0
votes
0answers
28 views

Apache 2 failer

I am having a problem with configuring Apache 2 on Ubuntu 15.04, when a run the command sudo service apache2 restart, I get the error below Job for apache2.service failed because the control process ...
0
votes
0answers
12 views

apache multiple secure subdomains

So I have tried a couple tutorials, this is my latest result on Ubuntu Server 15.10 ports.conf # If you just change the port or add more ports here, you will likely also # have to change the ...
1
vote
1answer
28 views

How to setup Restricted (permission) access for Directories in Apache2 web server

I am a new system admin and learning Ubuntu. I have to setup a restricted (permission) for directories in Apache web server. The scenario is as follows. The folders are, /var/www/data/ ...
0
votes
0answers
12 views

configuring multiple secure sites in one config? (server)

im trying to list port 80 redirects along with the 443 stuff so all my subdomains are secure and if you go to any of them they auto redirect you to https this is my conf. <VirtualHost *:80> ...