Questions tagged [apache2]

Use this tag for question related to configuring and using Apache on Ubuntu or one of Ubuntu's official derivatives.

Filter by
Sorted by
Tagged with
29 votes
5 answers
85k views

Cannot get mcrypt for PHP5

I've done this many times: sudo aptitude install php5-mcrypt sudo apache2ctl restart aptitude says mcrypt is installed. I've reinstalled it 3 times already. I've restarted apache about 20 times ...
2 votes
1 answer
40k views

Can't run Apache 2.4.7 on Ubuntu 14.04 - Forbidden

I recently installed a fresh version of Gnome Ubuntu 14.04 I then used tasksel to install lamp server Then I did like I do always usermod -a -G www-data $USER mkdir /srv/www/html cp /var/www/html/...
1 vote
0 answers
1k views

Installing phppgadmin 403 forbidden

I've been trying to install phppgadmin on a virtual server. The server runs Ubuntu 16.04. I've followed this tutorial exactly as instructed, but I get a 404 error. After a lot of googling I noticed ...
1 vote
0 answers
972 views

Web Server Accessible From Outside LAN But Not From Within LAN

Web server works as expected from outside the LAN, enter the URL into a browser or application and the correct page is returned. Within the same LAN from another computer or device an "unable to ...
0 votes
1 answer
5k views

Monit Apache2 restart and Apache status

I am practicing using linux/Ubuntu. I have installed apache2 on my cloud server (Lightsail). I have also installed Monit to monitor Apache2. The monitoring is working correctly and Monit restarts ...
1 vote
0 answers
130 views

an issue with apache2 restart

I am a newcomer to the Linux world. I installed apache2, mysql, phpmyadmin and created configured virtual hosts. Everything was working fine. After installing laravel, problems of being unable to ...
1 vote
1 answer
517 views

Using Zsh instead of Bash on a particular Ubuntu server --- Just change, or fully reinstall?

Is changing root's shell from Bash to Zsh in a Ubuntu machine with a basic server environment a dangerous step to take? By basic server environment I mean: LAMP, PHPmyadmin, CSF-LFD, Maldet, Make). ...
0 votes
1 answer
474 views

After upgrade to 14.04 I get "You don't have permission to access /wiki/ on this server."

After dist-upgrade to 14.04 I get "You don't have permission to access /wiki/ on this server." for a MediaWiki installation with alias. /w/index.php is also failing. So far I have seen a difference ...
-1 votes
2 answers
1k views

How to delete/edit files created by other user? [duplicate]

I asked client to create a sub-domain and a folder for me. He created a sub-domain and dir ygjhazaxnv I only have SSH access as mani user. I put files in ygjhazaxnv folder via Git pull and the ...
1 vote
0 answers
26 views

Restrict access from www1 to www2 during an application hack

Lets say it was a symphony template and the upload feature was exploited and the hacker was able to gain access to this website, www1. And now this hacker browses to www-2.. www-n. I have apache web ...
2 votes
1 answer
3k views

Configure Ubuntu Server 17.04 as WebServer with Static IP address

I'm a completely newbie in Ubuntu server as well generally in system administration. I would like to run my PC as a WebServer so have already installed Ubuntu Server 17.04. I'm trying to prepare ...
0 votes
1 answer
1k views

Axis2 & Java_Home Error?

You'll have to forgive me as I'm still learning the in's and out's of Ubuntu. I have come across an error that I cannot seem to find anywhere else but know that it has something to do with my ...
-1 votes
1 answer
61 views

I'm getting Errors in my PhpMyadmin

First i installed phpmyadmin using apt-get install phpmyadmin Then i denied to install DBconfig-common, after this i realised that i don't have the password & Username for phpmyadmin. So i ...
0 votes
1 answer
2k views

403 Forbidden error (specific to one directory) Apache

Currently have multiple websites on one server (EC2, Ubunutu, Apache). Very simple static sites that are simply displaying text, css, and images. My issue is that I made a new site locally and ...
1 vote
1 answer
1k views

LAMP is missing PHP module?

I'm implementing some PHP code into my html bit and it seems as if PHP is not being treated as a PHP code but as a plain text instead. I checked my PHP installation with php -v and it's up to date on ...
2 votes
0 answers
1k views

service apache2 restart vs apachectl stop / start

I have faced some weird problems in the last days. When I update my apache2.conf and want to restart my apache2 using service apache2 restart there's - as always - no output. Trying to resolve to my ...
0 votes
0 answers
100 views

PHP code not showing on Apache 2.4

I have slight predicament with getting PHP to work on Apache. I have tried everything, restarting the service, reeinstaling php, and apache, but to no avail. There is already a similair question to ...
1 vote
1 answer
2k views

How can I run sites as different users and directory with apache2 and nginx as reverse proxy

My current setup is /var/www/domain/* with apache2 and nginx as reverse proxy. I want to move site directory under /home/user/html/* so each website can have user with permission to that folder. Can ...
1 vote
0 answers
610 views

16.04 very slow boot (many minutes); runs fine once booted; blame highlights sendmail, postfix, apache2, plymouth-quit-wait.service

My machine takes a very long time to reboot. It has always done so. Once it's up, it runs fine. I dug into it months ago and gave up. I used to get these ATOM BIOS boot loop errors, which went ...
0 votes
1 answer
3k views

Apache2 won't restart (ubuntu 16.04)

I am reasonably new to using server computers and running into bumps every now and then which I then have to figure out, but that is part of the fun of learning. Right now I'm trying to set up a ...
1 vote
1 answer
2k views

Apache2 not starting on Ubuntu Server 17.04

Not able to restart apache2. checking sudo netstat -tulpn | grep :80 got this result: tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1627/nginx: master tcp6 ...
1 vote
1 answer
2k views

Apache (Ubuntu) Virtual host stopped working after upgrade->restart

I have a simple webserver with a single virtual host. Domain name have been changed to local.com After running apt-get update && apt-get upgrade && apt-get dist-upgrade the ...
0 votes
0 answers
548 views

cant access web app on browser

recently my boss asked me to migrate our web application from xampp on windows to ubuntu server. I already install Apache server, MySQL and php based on this website : How To Install and Secure ...
-1 votes
1 answer
57 views

i can't get an update [duplicate]

Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource ...
6 votes
1 answer
2k views

How to enable http2 on 16.04

I've been waiting and waiting for the new release of Ubuntu so I could finally get a more up to date version of apache for http2. FINALLY upgraded (after stupid issues with the updater) and I don't ...
14 votes
3 answers
58k views

PHP not working in Apache2 after system upgrade

Recently upgraded my system from Karmic to Lucid. This involved Apache and PHP being updated I believe. Now my server is unable to handle PHP files, any navigation to them is triggering downloading ...
2 votes
1 answer
6k views

Ubuntu Server 17.04 - 403 Forbidden

Have Instlled for my Server all needed Services as: OpenSSH Server PHP7.1 MySQL phpMyAdmin Apache Tomcat8 FTP (vsftpd) but got still 403 Forbidden on Browser when trying to ...
0 votes
1 answer
388 views

Toggling Between NGINX and Apache Web Server

I'm a web developer servicing multiple clients. With Ubuntu 16.04 on my local laptop, how would I create a batch script so that I can toggle between using NGINX and Apache Web Server smoothly so that ...
16 votes
7 answers
64k views

Unable to set password for the mysql "root" user

I am new to Ubuntu. I am running Ubuntu 12.10. I am trying to install apache,php,mysql. However I have installed apache and it is running perfectly. sudo apt-get install apache2 But when I tried to ...
-1 votes
1 answer
34 views

i got problem in reinstalling apache2 in ubuntu 14.04

I tried to reinstall apache2. But i cant reinstall it. I got this error.
1 vote
0 answers
720 views

apache webserver access from internet

I have Ubuntu 16.04 LTS installed in VMWARE running my website in apache2 I tried with IPTables but no luck. Port 80,443 is open in UFW firewall status. I have public IP which has the ISP running ...
2 votes
3 answers
10k views

VPS IP address for local site

I have no experience in about Apache and want to set up Apache Virtual Hosts on Ubuntu 14.04 LTS for a local site on my local machine. I followed this page. But when I try to test http://example.com I ...
3 votes
1 answer
612 views

Upgrade Ubuntu 12.04 to 14.04 without upgrading Apache. Or downgrade back to 2.2.22 without losing configs

Ok. I am going to go insane if I cannot figure this out. I work on a virtual server running Ubuntu 12.04, which I need to upgrade to 14.04. That part goes just fine. However, upon upgrading, I ...
15 votes
3 answers
82k views

How to configure apache2 with symbolic links in /var/www/?

I want to setup a local web server on my Ubuntu (14.04). So I installed all software to get a LAMP server. The problem is that I do something wrong with creating my virtualhosts. I wanted to create ...
0 votes
0 answers
183 views

Why is Ubuntu showing a permission error on ec2 while using apache2?

I am running an Ubuntu 16.04 instance of AWS. I am trying to execute my file using PHP and apache2. But I am getting the following permission error: Sorry, user www-data is not allowed to execute '/...
0 votes
0 answers
672 views

.php file displayed as source code

I have installed a default LAMP: ubuntu 16.04 Apache2 MySQL 5.7 PHP 7.0 The default site PHP is working as expected. 000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost ...
0 votes
2 answers
1k views

Upgrade to 16.04 LTS has broken apache

I had a full functioning ubuntu 14.04 with apache2 serving up a ror website with Passenger Standalone in reverse proxy. After upgrading to 16.04 it all stopped working although I can still access the ...
1 vote
0 answers
564 views

what's the risk: Changing www-data $home

Ubuntu 16.04, Apache2 App that I am using employs Java to run, and uses some kind of a license file. When you run the app, it writes and then reads from a file in the user's home dir. So I am ...
0 votes
1 answer
10k views

Apache2 restart issues after editing virtualhost [duplicate]

hello i try to restart apache2 with command service apache2 restart and it's give me this : Restarting web server apache2 AH00558: apache2: Could not ...
0 votes
0 answers
565 views

Apache2 is not installing in ubuntu 16.04

root@Jatin-PC:/home/jatin# sudo apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may ...
3 votes
2 answers
460 views

DNS and VPN issues

I recently purchased a year contract for a KVM 512MB VPS running Ubuntu 11.04. I'm having some issues setting up some things on it though - two in particular that I just can't for the life of me ...
1 vote
1 answer
2k views

How to access my root folder with admin access?

I've installed apache server on Ubuntu 16.04. Now I want to access with admin access frequently. Till now I've used following command : gksu nautilus Since few days ago. It's not working at both of ...
1 vote
1 answer
3k views

Ubuntu 16.04: apache2.service start failed, segmentation fault (core dumped)

Yesterday I upgraded from 14.04 to 16.04.2. After the upgrade, my apache2 service would not start, error: Job for apache2.service failed because the control process exited with error code. See "...
1 vote
0 answers
261 views

Slow Website/Webserver/Database Performance - Monitoring, compressing,

I have an an e-commerce website and it runs very slow. What tools are recommended for instant speed increase? For example - I got to know that there is a tool called 'Grunt' that might help with the ...
0 votes
0 answers
274 views

phpmyadmin displayed undesired content after installing and editing config file

Initially last evening my PhpMyAdmin was working. But today I came to the office and checked it and it was not working. The error was: phpmyadmin not found. Then I tried certain steps as mentioned ...
0 votes
1 answer
2k views

How to Allow two users to access one directory. (tried groups but failed) [duplicate]

I want to allow access to 2 users on one directory. I am trying since days but unable to do so! Let me make it simple for you guys to understand by giving a simple example. But first, Let me tell you ...
0 votes
1 answer
305 views

Apache Redirection

I am reasonable new to Linux, but I am trying to learn with help from a multi purpose HTPC/NAS/PVR. It has the following web based apps: Plex - localhost:32400/web Deluge - localhost:8112 TVHeadend -...
2 votes
1 answer
576 views

vsftpd folder file permission in ubuntu

I am using netbeans for my php project While creating the new project I tried to create it as a "Remote project" with these settings Sources Folder: /var/www/html/myproject Project URL: http://ip-...
0 votes
2 answers
4k views

Changing default index page with .htaccess

Suppose my domain is foo.com, I have index.html in my root directory. Then if I install a shopping cart in /cart and it has index.php as its index page. How would I change the default index to /cart/...
1 vote
1 answer
1k views

Unable to access locally hosted sites from local network

I have configured apache2 to use a couple of virtual hosts and am running ddclient to push the dynamic IP to the hostname provider. I have the ports open on my firewall/router and all of this is ...

1
49 50
51
52 53
95