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)

2
votes
1answer
672 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
51 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
97 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
168 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
11 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
19 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
104 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
77 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 ...
0
votes
4answers
4k 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: ...
22
votes
4answers
27k 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 ...
3
votes
1answer
1k 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
51 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
13 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 ...
15
votes
4answers
13k 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 ...
8
votes
2answers
4k 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 "\n\...
3
votes
3answers
4k 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
82 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 = '/var/www/html/...
5
votes
0answers
4k views

phpmyadmin not working due to missing mbstring extention [duplicate]

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
226 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 apache2-...
0
votes
0answers
37 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
25 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
52 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/ /var/www/...
0
votes
0answers
18 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> ...
0
votes
0answers
11 views

We changed where our website was hosted, now we get an Apache screen when we go to our URL from the computers connected to our server

So we are in the process of cleaning up a very complicated mess our last IT person made with pretty much everything. When she left we had no details on what was done so hopefully someone can help us ...
1
vote
2answers
31 views

Apache2 won't start, doesn't exist?

Running on Ubuntu 14.04, I've attempted to install Apache with: sudo apt-get install apache2. This is successful I then type sudo service apache2 start. Nothing happens at all. When I navigate to http:...
0
votes
1answer
49 views

I have an unwanted Apache 2 redirection between my virtual Hosts, seems to be since latest update

As said in the title, I discovered yesterday that all my virtual hosts are redirected to the last (alphabetically, if it matters) virtual host. I have been checking, and did not see any changes made ...
0
votes
2answers
66 views

ubuntu server 14.04 LTS too slow

Last two weeks my ubuntu server is too slow. It happens every day. All the services are pretty slow or died. Reboot server helps for 4-5 hours and after that issue occurs again. I've made screenshots ...
0
votes
1answer
10 views

cannot define phpversion

I installed LAMP on my Ubuntu 14.04. Then , I want to upgrade my php version. I checked my PHP version : php -v PHP 7.0.5-3+donate.sury.org~trusty+1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP ...
0
votes
1answer
61 views

xmlrpc.php not found or unable to stat [Ubuntu 14.04 Server]

I just setup a new Ubuntu server with a LAMP stack. I'm using it only for some React.JS development, and has no domain name associated to it. I'm finding that my error log is riddled with this error: ...
0
votes
1answer
55 views

Newbie: Slow Apache2 Response Time

As the title says I'm a newbie with this stuff but I'm willing to learn what I need to know. I'm simply ignorant atm. This is a Rackspace server with Ubuntu 15.10 running Apache2. I have a PHP web ...
0
votes
0answers
36 views

Hosting a website

I did all the steps needed to host a website from my pc, but the site does not get uploaded to the internet. I can see the site on my pc, but not on the internet with other pc.(this means only in the ...
0
votes
0answers
50 views

Running a Python script on an apache2 version 2.4 server

I have a python script (python.py) located in the /var/www/html/Python folder. The script saves some images to another directory (/var/www/html/Data). I have the x file permission on the python.py ...
0
votes
1answer
40 views

Would install LAMP conflict with python?

I am currently using ubuntu 14.04. I have PyCharm installed and using django-oscar with mysql. I am wondering what I would install in order to get php working? I am used to windows installing wamp to ...
0
votes
0answers
83 views

a2enmod mpm_worker (ERROR: Module mpm_worker does not exist!)

I have ubuntu 12.04 box where I have installed apache using (apt-get install apache2) it install everything well then i need mpm-worker so i installed mpm-worker using this command (apt-get install ...
0
votes
1answer
41 views

Give access to php to /home folder

I am need for apache to have access on all (well... most anyway) user folders on the same machine, so that I can access some data, do some magic and then display them on a webpage for remote viewing. ...
3
votes
3answers
713 views

Error while installing Apache on 12.04 LTS

On Ubuntu 12.04 LTS server I need Apache 2.4.5 or greater. I do this: add-apt-repository ppa:ondrej/php5 apt-get update apt-get install apache2 But when I run the last command I get: Setting up ...
0
votes
0answers
19 views

ubuntu lamp uninstalled and lamp folder data is not backup. how to backup data in a lamp folder?

please sir/madam my problem is ubuntu lamp server is uninstalled and this folder are not back up data and my data is lose . please back up data in lamp folder related ...
0
votes
0answers
29 views

apache logs show host IP not users

This is a xen bridge issue. I have a web server guest. When people click on a web page, the apache logs show the IP of the bridge, not the persons IP who clicked on the page. The bridge should be ...
0
votes
1answer
42 views

Xen domu apache

This is a Xen bridge issue. I have a web server guest. When people click on a web page, the apache logs show the IP of the bridge, not the persons IP who clicked on the page. The bridge should be ...
0
votes
1answer
204 views

Apache 2.4.7 doesn't load all .css files

I run a server with Ubuntu and Apache 2.4.7 and for debugging I run locally XAMPP Version 5.6.19. For the first time I noticed a difference in the page I'm developing. On the XAMPP Apache works ...
0
votes
0answers
43 views

How do i configure django 1.8 for production with apache 2.4

I am new to developing and this is the first time I have worked on a website and facing huge problems with deployment of the site. Official Django 1.8 documentation asks me to update httpd.conf at /...
0
votes
0answers
45 views

What is wrong with my Ubuntu VM?

I've been working on my first android application using a LAMP server on a VirtualBox VM, but sometimes the IP address changes which makes me have to change all of my php script addresses on my app ...
0
votes
1answer
54 views

Setting up domain with LAMP server

Not sure if this is the best forum so let me know and I'll delete it if so. I've setup a LAMP server on Ubuntu 14.04 which works fine the issue is, right now I can only access it through the public ...
7
votes
2answers
20k 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 ...