Questions tagged [apache2]
Use this tag for question related to configuring and using Apache on Ubuntu or one of Ubuntu's official derivatives.
398
questions
9
votes
2
answers
65k
views
I need a file: /etc/apache2/sites-available/default-ssl
I need that file's (/etc/apache2/sites-available/default-ssl) contents or a way to get it back. I deleted it.
9
votes
1
answer
29k
views
Can't access phpmyadmin (apache ok, php ok)
When I go to localhost/phpmyadmin I get the apache "Not Found" error (404). However, I can load html pages, and run php pages (such as <?php phpinfo(); ?>). And phpmyadmin is installed.
balter@...
7
votes
1
answer
51k
views
#1045 Cannot log in to the MySQL server
I am trying to setup LAMP on my OS, so I have installed apache, php, mysql using the following commands:
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
...
7
votes
1
answer
12k
views
How do I set up an Ubuntu server to be (securely) available from the internet?
I want to build an Ubuntu server that will be continuously connected to the internet. I own only an IP address. The main purpose of the server is to be a source code controller (probably git or svn... ...
7
votes
9
answers
82k
views
Unable to restart Apache, getting error: apache2: bad user name ${APACHE_RUN_USER}
I am getting this error trying to restart Apache, does anyone know how to fix this?
Thanks,
7
votes
1
answer
48k
views
"This site can't be reached" when using virtual host
I'm trying to set up Apache2 server. Installation and configuration seemed to go well, but when I try to go to my custom web URL I get "This site can't be reached" error. I've tried setting config ...
7
votes
6
answers
54k
views
How do I setup “name based” virtual hosts using Ubuntu 12.04?
How do I setup “name based” virtual hosts using Ubuntu 12.04?
I have followed the instructions given at https://help.ubuntu.com/12.04/serverguide/httpd.html#http-configuration .
I've done the ...
6
votes
2
answers
8k
views
Why does apache2 have multiple processes?
This is the command ps -A |grep -i apache2 output:
xxxx@debian:~$ ps -A |grep -i apache2
2362 ? 00:00:01 apache2
2365 ? 00:00:00 apache2
2367 ? 00:00:00 apache2
2369 ? ...
6
votes
1
answer
38k
views
libapache2-mod-php5 : Depends: php5-common [duplicate]
I installed php5.5 and upgrade Ubuntu from 12 to 14. Now the system isn't working.
I did
sudo apt-get upgrade && sudo apt-get install libapache2-mod-php5
But got
The following packages ...
5
votes
1
answer
9k
views
Allowing apache access to a subdirectory in a home directory without access to the home directory
I am running Ubuntu 11.04 desktop with encrypted home directories. I do development work on my computer and I want to have my webroot directory to be within my home directory so it is encrypted with ...
5
votes
0
answers
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 ...
5
votes
5
answers
19k
views
Apache 2 could not bind, address already in use
I installed Apache 2 on Ubuntu 12.10. When I try to start the service using sudo /etc/init.d/apache2 start, I get the following message.
*Starting web server apache2
(98)Address already in use: ...
5
votes
3
answers
10k
views
Downgrade PHP to PHP5.2?
I want to install PHP 5.2 in Ubuntu 11.04 , I had some script that did that thing good but only on Ubuntu 9, anyone has a script / instructions how to do it?
4
votes
2
answers
419
views
SSL Connection to Apache web server
I follow up on setting up SSL connection to my Apache2
It works well when I access my website from a local IP address
but if I use a Dynamic DNS service with HTTPS in the beginning than
I doesn't get ...
4
votes
3
answers
13k
views
Error installing webmin on ubuntu 16.04
So I am trying to install webmin on an Ubuntu 16.04 amazon ec2 instance. I have apache2, php7, mariadb already installed. I have been using http://www.htpcbeginner.com/how-to-install-webmin-on-ubuntu/ ...
4
votes
3
answers
23k
views
500 Error on index.php file
I have found a question very similar to this, which I thought would solve my problem.
However, after changing my .htaccess file, with index.php on the end of the list, and then index.php as the only ...
4
votes
2
answers
2k
views
Should I as a developer use var/www in conjuction with apache?
I come from a strong Windows background. Therefore with IIS I have some site on my D drive, I then point IIS at this location and start serving files. With Apache though it seems var/www is the ...
4
votes
1
answer
28k
views
Apache gives 403 Forbidden
Server: Ubuntu 12.04 w/ LAMP
I can access the default index.html, but I created a symbolic link to a folder in my Dropbox. Whenever I try to access 192.168.2.6/Joomla (Joomla is the symbolic link), I ...
4
votes
2
answers
11k
views
dpkg always try to install mysql-server-5.7
Whenever i try to install anything, it always install mysql-server-5.7.
I tried sudo apt-get install php-mbstring but it tried to install mysql-server-5.7 first. I don't know what is going wrong.
I ...
4
votes
7
answers
16k
views
403 forbidden error in Apache with document root on an NTFS partition
I'm a beginner in Ubuntu hoping to find a better web development environment than WIndows. I'm trying to access http://localhost but its always giving me a forbidden error. I've installed php, mysql, ...
4
votes
1
answer
14k
views
Problem installing apache2
If I enter:
sudo apt-get install apache2
I get:
Setting up apache2-bin (2.4.7-1ubuntu4.8) ...
Setting up apache2-data (2.4.7-1ubuntu4.8) ...
Setting up apache2 (2.4.7-1ubuntu4.8) ...
ERROR: ...
4
votes
4
answers
17k
views
E: Package 'apache2' has no installation candidate on Ubuntu 17.10
Got error E: Package 'apache2' has no installation candidate while installing apache2 with sudo apt-get install apache2 on Ubuntu 17.10.
Here is the message displayed on terminal.
sudo apt-get ...
3
votes
2
answers
2k
views
How do I install and set up Apache 2
How can I install Apache2, php, mysql and set it up with virtual hosts and preferably Let's Encrypt SSL certificate, and then proceed to install Wordpress on it?
3
votes
1
answer
5k
views
Apache server - domain name return "404 Not Found"
When I try to reach the site with my IP it works fine but when I try to use my domain name to connect I get "404 Not Found".
I am on Ubuntu Server 16.04.1 LTS
/etc/hosts/
127.0.0.1 localhost
...
3
votes
1
answer
262
views
Change the site configuration file to block listing out files in the directory - apache2 + Ubuntu
When I access a directory hosted by Apache that does not have a index.php file or similar, Apache lists the content of the directory for me. How can I block this? I'm using Apache2 on Ubuntu.
3
votes
2
answers
6k
views
Accidentally installed MariaDB over Mysql. How do I recover my Mysql databases?
I installed MariaDB and failed to notice it replaces Mysql. During the install, it moved the Mysql data directory to mysql-5.7. I removed MariaDB and reinstalled Mysql and tried to restore my ...
3
votes
1
answer
8k
views
Apache Virtual Hosts
I am looking to create links on my website like support.mydomain.com or management.mydomain.com rather than mydomain.com/support etc. I have heard you can do it with apache virtual hosts but I am not ...
3
votes
1
answer
3k
views
How can web server access external-hdd?
Instead of using a third-party media app like Kodi or Plex, I want to make a simple local website that can be accessed from any device in my network via a browser.
I have two external drives with all ...
3
votes
1
answer
10k
views
Php7 does not work with short-tags
I have installed Apache2 MariaDB and PHP7 for use on localhost, but PHP does not work. The Apache webside looks as normal while phpinfo.php only gives me a blank page. I used to install with 'apt-get ...
2
votes
1
answer
29k
views
How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?
I have installed Apache(LAMP) web server on my ubuntu machine and I want to do the above mentioned thing.I have tried creating symbolic links in the /var/www directory but it only shows files but not ...
2
votes
1
answer
2k
views
Fixing permission settings on html folder
I've just setup a new Droplet over at DigitalOcean before the weekend and have been configuring to my needs. I've been following this previously asked question multiple owner of same folder.
I also ...
2
votes
2
answers
1k
views
Cannot install phpmyadmin on ubuntu 14.04 LTS
I have installed ubuntu along side with window 10 (dual boot). I have set up apache2 server, mysql and install PHP 7, and then I want to install phpmyadmin I cannot install it. I have try many time, ...
2
votes
2
answers
6k
views
Apt not installing most known packages
I have installed a fresh Ubuntu 14.04.03 and I am running into a problem I have never had before.
First thing I did when logging into the new install was apt-get update and upgrade. Then I wanted to ...
2
votes
1
answer
48k
views
Adding the PHP json extension
I have Ubuntu 15.10 installed. I have also installed LAMP using the Ubuntu wiki help page. I then proceeded to set up Moodle via the web page installation. I hit a road block when I got
Moodle ...
2
votes
2
answers
8k
views
Trying to install apache, but it says "package apache2 is not available"
sudo apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not available, but is referred to by another package.
This ...
2
votes
2
answers
1k
views
How to use different versions of PHP? [duplicate]
I am using Ubuntu 16.04.
I have several virtualhosts, and I need to run different PHP versions. I have php-fpm and FastCgi installed, but how can I configure it?
2
votes
1
answer
2k
views
Command not found for alias
I recently installed the apache2 package using the Software Centre, I want to create an alias apacheres which will replace the more cumbersome command /etc/init.d/apache2 restart.
I opened the ....
1
vote
1
answer
20k
views
E: Package 'apache2' has no installation candidate
When I tried to install apache2 on Ubuntu 14.04, I got the following error message:
root@Final-Gitsetup-Developers:~# apt-get install apache2
Reading package lists... Done
Building dependency tree
...
1
vote
2
answers
8k
views
Unable to install LAMP server
I can't seem to install LAMP server on my Ubuntu 14.10, I have tried the methods listed below:
sudo apt-get install apache2
sudo apt-get install lamp-server^
sudo apt-get install tasksel
All methods ...
1
vote
0
answers
284
views
MySQL and PHPMyAdmin issue: locked out cant get back in
I am trying to change my password with mysql, and I am not a smart man...
I have done google search after google search, and done everything I can to resolve the issue.
I am on Ubuntu 16.04, if that ...
1
vote
1
answer
368
views
setting up apache2 webserver -- differences between behaviour within my intranet and outside
I am new to apache2. I have an ubuntu 12.04.4 LTS machine in my home, and just installed apache2 on it. I wanted to set up a webserver running on a port other than port 80 (my router uses port 80). ...
1
vote
1
answer
436
views
syntax error when installing auth_mellon module on Apache
I need to compile the module auth_mellon and I am using autoconf
but when I run this command
./configure --with-apxs2=/usr/bin/apxs
I am getting this
./configure: line 3138: syntax error near ...
1
vote
1
answer
3k
views
apache virtual hosts not working
I have production server with apache/2.4.7 on ubuntu 14.04. I have several virtual hosts on it. This server located on hetzner. I decide to transfer my server on more powerfull server. I create ...
1
vote
0
answers
875
views
Failed to start MYSQL community server in 19.04
I use Linux Ubuntu-19.O4. I was just working on a project where I have to prompt the user to input details using and that information to be stored in a database for which I used "PHPMYADMIN". All ...
0
votes
1
answer
3k
views
Need to give permissions to /tmp/cache and /tmp/templates_c but can't find them
When I open my website it shows me this:
The following directories must be writable by the web server:
tmp/cache
tmp/templates_c
Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/...
0
votes
1
answer
2k
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.
...
0
votes
1
answer
6k
views
Install to php 8.0 the php8.1 and php8.2 and set for different sites in Ubuntu 22.04 and Apache 2.4.58
At the moment I have running PHP 8.0 with Mautic and Moodle on a VPS with Ubuntu Server 22.04.
I want to install Suite CRM what needs php8.1 and another app who needs php8.2.
How to install php8.1 ...
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/...
0
votes
1
answer
3k
views
What are size limits for mysql on Ubuntu 18.04 and how can I increase them?
Background: I am running a cqpweb, a corpus query interface written in PHP and connected to a mysql database, on an Apache2 webserver under Ubuntu 18.04 LTS. The Ubuntu server was set up from scratch ...
0
votes
2
answers
1k
views
Apache Not Accepting a Path in My Home Folder
I have trying to set up an Apache site to use a folder in my home folder without any success. I exactly followed the steps in this page: https://help.ubuntu.com/community/ApacheMySQLPHP
yet I did not ...