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
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
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
25 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
97 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
36 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
104 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
11 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{ ...
1
vote
1answer
261 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
39 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
70 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
19 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
98 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
9 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
30 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
16 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
1k 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
1answer
69 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
59 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
15 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
2k 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: ...
17
votes
4answers
12k 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
940 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
45 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
12 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 ...
12
votes
4answers
7k 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 ...
7
votes
2answers
2k 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 ...
3
votes
3answers
2k 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
56 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 = ...
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
205 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
35 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
19 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
45 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
14 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
21 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 ...
0
votes
1answer
48 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
59 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
9 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
43 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
37 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
35 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
37 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
32 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
56 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
37 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
681 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 ...