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

bWAPP installation ERROR

I am trying to install bWAPP on my ubuntu gnome 16.04 computer. With this tutorial. When I try out number 6 I get an error 500. My guess is that I didn't set up php correctly. But it could be ...
70
votes
2answers
269k 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. What I have done... I have found three different php.ini files (...
0
votes
1answer
5k views

Error installing Apache2

While installing Apache2 I am getting the following output: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This ...
10
votes
7answers
81k views

Change XAMPP's htdocs web root folder to another one

I'm trying to change the XAMPP's web root default directory /opt/lampp/htocs to another one like /home/me/Dropbox/public_html without success. I've edited the file /opt/lampp/etc/httpd.conf # old ...
0
votes
1answer
39 views

16.04 apache2 is not parsing .php files

Installed 16.04. installed 'apache2'. installed 'php', it gave me php7.0. But now my existng web pages with dot+php extensions are not being pre-processed by apache2. I had a similar problem years ...
0
votes
1answer
17 views

How to give permissions to user www-data (apache+php) to access media/user/sd card slot?

I have a php script that runs from apache2 call that needs to read files in a SD card. The SD card appears mounted in /media/user/name of SD card partition. I tried to read this answer Default file ...
0
votes
0answers
22 views

PHP Scripts doesn't executed

I installed LAMP server successfully.But,I didn't have permission to save my php scripts in var/www/html folder.Then I ask it from this forum and fix it. Now what happen is I can save my phps scripts ...
2
votes
2answers
2k views

Perl .pl file downloads instead of being executed

I'm trying to get OTRS 4.0 working on Ubuntu 14.04. I've followed all instructions to install from source. When I open the site (localhost/otrs/index.pl), an empty .pl-file is served for download. ...
0
votes
4answers
7k views

MySQL not starting in Xampp

I am using Ubuntu 14.04 and Xampp 5.6.3-0. I cannot get the MySQL server to run. I have tried executing these commands so far (run in this order): sudo chmod 755 /opt/lampp/etc/my.cnf sudo chmod -R ...
0
votes
1answer
36 views

You don't have permisission necessary to save the file,PHP Apache [duplicate]

I just installed LAMP server, which works fine. But when I code a PHP script and try to save it in /var/www/html, it says: You don't have permisission necessary to save the file Help me! How do I ...
0
votes
1answer
64 views

How to access ubuntu server 16.04 sever's files from windows 10 PC?

I recently installed ubuntu 16.04 on a machine I built, hoping that it'd serve my home for file sharing, media server and probably for VPN. I have installed Samba and the LAMP server. I also have ...
0
votes
0answers
43 views

Ubuntu Server unable to create directory in PHP

I have setup a little Ubuntu Server for developing some web apps. I have a little script that uses mkdir() to create a directory, but i am getting a permission denied, its a simple command mkdir($...
6
votes
3answers
31k views

apache2 - php5 file upload and post max size

I've installed from the official repos the LAMP server. Into the file /etc/php5/apache2/php.ini i've changed post_max_size = 8M to post_max_size = 32M and upload_max_filesize = 2M to ...
3
votes
2answers
17k views

Changes for upload_max_filesize, memory_limit & post_max_size in the php.ini aren't affect

I'm trying to increase the upload_max_filesize etc in order to import bigger files with PHPMyadmin. I have changed the php.ini and restart Apache. I can see the changes on the PHPMyadmin import ...
0
votes
1answer
29 views

14.04 php5-mcrypt openCart

I have a problem with php5 extension mcrypt. The command php5 -m | grep mcrypt Outputs: mcrypt But during openCart install I see extension mCrypt not installed. I've restarted apache with: ...
-2
votes
1answer
33 views

chmod not assigning permissions properly?

We are testing osTicket which is an open source ticketing system and have set everything up, but when we try to connect to the page we get blank results with the following error logs: [:error] [pid ...
0
votes
0answers
25 views

PHP errors in /usr/sbin/a2query

I am new to Ubuntu, currently on 14.04, I develop on Windows but want to do same on Linux(Ubuntu) I tried to open a PHP file from localhost, I get a blank page. I checked if the PHP module is loaded I ...
0
votes
0answers
14 views

CGI Script not running user problem

CGI Script not running user problem in my AWS server My file: /etc/apache2/sites-enabled/000-default.conf <VirtualHost *:80> ServerName cgi.pipemarket.com ServerAdmin ...
0
votes
0answers
42 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 /...
1
vote
2answers
14k views

Yum install fails on Ubuntu EC2 instance

I'm using Ubuntu 12.04.3 on an AWS EC2 instance. This is my first time with an EC2 so it's all new to me. I'm also not the most experienced Linux guy either, so I apologize if this is a stupid ...
0
votes
0answers
25 views

How do I fix: PHP Fatal error: Call to undefined function Illuminate\\Encryption

PHP Fatal error: Call to undefined function Illuminate\Encryption\mcrypt_get_iv_size() in /var/www/html/application/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php on line 303 I am ...
1
vote
1answer
6k views

How to install mod_authz_host in Apache?

When I put Order deny,allow Deny from all Allow from dev.example.com into /etc/apache2/conf.d/restrict.conf, upon service apache2 restart I get Syntax error on line 1 of /etc/apache2/conf.d/...
0
votes
1answer
37 views

Apache web server - FTP host connection issue in LAN

OS: Ubuntu 12.04 Web Server: Apache 2.2.22 Apache web server IP Address: 192.168.0.21 Virtual Host for website in Apache: 50000MySite001 Link to access website in LAN: 192.168.0.21/50000MySite001 ...
1
vote
1answer
4k views

how to get LAMP offline installer?

Where can I download the latest Apache, MySQL and PHP offline installers (maybe .deb)? (both x64 and x86, if available) I'm currently on Windows, and can't switch to Ubuntu and use apt-get download (...
0
votes
0answers
23 views

Installing Xampp (or, Lampp) through SSH

I am pretty much new to the whole concept of Ubuntu and Linux as a whole. I've installed and had my server run php5 on my ubuntu 14.04 without problems as such. The issue arrise when I realised that I ...
0
votes
0answers
7 views

Understanding Ruby Setup with bundler “bundle install” as non root

I received a ruby source code + dependencies and db. The code is about 3 years old and running on an 12.04 Ubuntu. Now I am trying to make a fresh setup on 14.04. I installed a lamp stack and wanted ...
0
votes
0answers
17 views

error while starting apache2 from terminal

I was trying to install and start apache2 serever and i got this error. $ sudo service apache2 start * Starting web server apache2 * * The apache2 ...
0
votes
0answers
34 views

Use own domain for Webmin on Ubuntu

I have Apache2 installed on Ubuntu 14.04, and I'm running several virtual hosts through Apache. Is there a way to add Webmin as a Virtual Host (so it can be accessed through a URL such as webmin....
0
votes
1answer
114 views

How to configure DJANGO with apache2

I have a Django project known as "wsp" which is running just fine on a port. However, I want to move my project from a port to its own subdirectory (for example, localhost/wsp instead of localhost:...
0
votes
1answer
8 views

Installing Wordpress on 14.04 - Apache2 Ubuntu Default Page appearing

I went through the Wordpress installation process and I'm getting the Apache2 Ubuntu Default Page when I go to my ip. What did I do wrong?
0
votes
1answer
4k views

127.0.0.1 and localhost not working

I have installed apache2 on my local machine (ubuntu 14.04). I am able to see this screen ("It Works!" screen) by using my network IP (xxx.xxx.xxx.xxx) but not using localhost or 127.0.0.1: Can ...
2
votes
1answer
4k views

Apache - server not resolving by /etc/hosts if I have not internet connection

I have configured many virtualhosts in my current apache2 server, in my local machine (Ubuntu 13.10). Those are different local sites, with domains which are set in my /etc/hosts: 127.0.0.1 ...
0
votes
2answers
510 views

Apache2 change localhost directory on Ubuntu 14.04

After a fresh install of Ubuntu, I am trying to change the localhost directory of Apache2 (2.4.7). As always, it's not simple at all and it doesn't work right now. Here's what I have done so far: $...
2
votes
0answers
36 views

Configuring apache2 for mediawiki

For mediawiki to work on apache2 a file /etc/apache2/conf/mediawiki is required. Where can I find it?
0
votes
0answers
18 views

How to setup cgit with apache2 in Ubuntu?

I have tried to configure cgit with apache2 for many times but all failed. Here are my configurations: apache2 conf: <VirtualHost *80:> DocumentRoot /var/www/htdocs/cgit ScriptAlias /...
0
votes
1answer
4k views

Apache2 “configtest failed” (error line 216, 5, 62)

Starting web server apache2 The apache2 configtest failed. Output of config test was: apache2: Syntax error on **line 216** of /etc/apache2/apache2.conf: Syntax error on **line 5** of /etc/...
0
votes
1answer
46 views

Linux restrict user to specific folder in var/www

My apache root /var/www/html/ contains the following folders. myapp test testapp I want to create a new user to access only testapp folder (read/write). Other folders shouldn't be read. I created ...
0
votes
2answers
4k views

User access to FTP and at same time set www-data as owner/group

In order for wordpress to read/write the owner of the files/folders need to be www-data. Now the problem is that if the owner is www-data of group filetransfer (www-data:filetransfer) then the FTP ...
1
vote
1answer
4k views

Permission problem with SFTP in FileZilla

Recently, we installed Ubuntu Server on our servers this is very new for us. However, we tried to setup a apache2 server which did work. But the problem is that we can't configure apache and other ...
0
votes
0answers
22 views

Cannot access phpmyadmin on xampp on 16.04 LTS

Every time I try to access phpmyadmin on my XAMPP I get this message: Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ...
0
votes
2answers
5k views

how to setup an alias apache2

I am new to UBUNTU and try to use apache to check a website that I am currently developing using Joomla (novice to that too). I am trying to setup an alias in httpd.conf, but have not been successful....
0
votes
2answers
6k views

Unable to install Apache 2.2.22 in Ubuntu 12.04

I am not able to install Apache 2.2 in Ubuntu 12.04. Here is a snippet from my console log (sorry, it is in German): apache2 : Hängt ab von: apache2-mpm-worker (= 2.2.22-1ubuntu1) soll aber nicht ...
131
votes
9answers
593k 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 somehow seems not to work in Ubuntu. :( How do i restart my Apache?
0
votes
0answers
14 views

Jar file not coming out of loop in Apache ubuntu

I have set of shell scripts which run in Apache server from cgi-bin. The first script triggers the second, the second triggers the third, and so on. Except on a particular script, say the 10th script.....
9
votes
4answers
70k 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 ...
7
votes
4answers
12k views

Blank page when trying to access phpmyadmin

I would like to access phpmyadmin. I have access it before but, now, I'm just getting a blank page and I really don't get why. I've installed phpmyadmin using sudo apt-get install phpmyadmin I've ...
0
votes
1answer
50 views

Default permission of `/var/www` folder in Ubuntu

I have just hosted my website on Ubuntu Server. It is working fine, but all files are publicly accessible. like hitting url mywebsite.com/uploads/ giving the list of all files. mywebsite.com/...
0
votes
1answer
20 views

Still apache page running after configuring nginx?

I have done all the below steps still apache page is running on localhost:8000 : It is because by default Apache and nginx are listening to the same port number (:80) Reconfigure nginx to listen on ...