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

Http urls display 502 Bad Gateway

I have installed ubuntu 16.04. Past few days I have no issue. But today I can't brows any site starts with 'https'. I haven't installed nginx yet, But Apache 2.4.18 has been installed. Working : ...
2
votes
0answers
20 views

Extra NIC extranet IP issues

For the question scroll down past italic font :) A quick recap: Started with FreeBSD but it was a pain to install on Hyper-V environment, then tried with CentOS, easy install but I found ...
1
vote
0answers
28 views

Logging into WordPress using SSH

I've got a WordPress test server installed on the local system on Ubuntu Server 14.04. I want to use SSH rather than FTP to access the wordpress site, install plugins and so on. I've followed this ...
1
vote
1answer
36 views

access my PHP application from antoher computer in the network

I use my Apache server for PHP development on my computer, but I would like to access stuff I have made outside of my computer. I usually run it of 192.168.0.55/ and the default apache page shows up. ...
0
votes
2answers
51 views

Which port do I need to open so that others can connect to my “www” folder?

I want to follow this solution, but... I specifically want to let others access a site on a LAN that would be stored in the default "/var/www/html" system folder AKA 127.0.0.1 So I guess I just need ...
0
votes
1answer
45 views

php file not running in apache 2

I am trying to run php with netbeans, when i try to run it, the echo in php is not comming in the browser, but the html file is working My code <html> <head> <meta ...
0
votes
2answers
20 views

php5-common package unmet dependency

I went to update the distribution of Ubuntu so I ran Terminal, entering apt-get dist-update and got this error: php5-mysql depends on php5-common (= 5.6.21+dfsg-1+donate.sury.org~precise+1); ...
0
votes
2answers
31 views

Accessing to my index.html file from a computer other than where I have Apache installed

I have Apache installed and I have a index.html file that I can access by typing http://localhost/index.html in my browser. How can I access to my index.html from any other computer? Thank you very ...
0
votes
0answers
8 views

Simple softlink to apache root

I have noticed that when I open a file via a desktop shortcut, the path that gets used by the application (sublime3) is the one via the desktop rather than the actual location of the file. This is ...
-1
votes
0answers
17 views

Webdav Shows 404 Fail

[ Techspec ] Ubuntu 16.04 LTS Apache2 2.4.18 + PHP7 7.0.4-7ubuntu2 I Built up Webdav Server, But server show 404 Not Found Error I Bellive Directory Setting is correct, I Can't find error on code. ...
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
19 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
36 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
17 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
42 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
48 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 ...
0
votes
0answers
117 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
36 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 ...
1
vote
1answer
35 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 ...
0
votes
0answers
23 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
39 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
49 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 ...
0
votes
1answer
34 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
16 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 ...
0
votes
1answer
35 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
43 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
341 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
87 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
97 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 ...
0
votes
0answers
34 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
34 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
25 views

Apache Working From Inside [closed]

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
27 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
201 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
45 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
18 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
24 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
18 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
44 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
49 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
24 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
86 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
33 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
102 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
250 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
67 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 ...