Questions tagged [apache2]
Use this tag for question related to configuring and using Apache on Ubuntu or one of Ubuntu's official derivatives.
4,697
questions
0
votes
0
answers
455
views
Stop 'localhost' resolving to old domain name? (or, how to change 'live' wordpress site back to local?)
I had a wordpress site running on an Ubuntu 18.04 linux server. The server died (motherboard issue) and I've since been able to take the hard drive out and boot from it on a different computer. My ...
0
votes
1
answer
373
views
Problem- getting basic PHP files to execute instead of just being read on WSL V2 Ubuntu Linux 20.04
The problem
Just a heads up, I was figuring this out for several hours. I tried all the different ways that other people were doing and none of them worked for me. I figured that if this was this ...
0
votes
1
answer
328
views
Start Apache2 and Tomcat on Startup on Ubuntu
Apologies if this has been answered elsewhere, I know little about either of these services.
At work, we have a server that is normally on all the time, but when the power goes out, it shuts off. Our ...
0
votes
1
answer
107
views
Typo3 - Folder "/" does not exist - Error
when I am in the backend in the filelist Module or want to link something, I get the error message: "#1314516810: Folder "/" does not exist." (see screenshot). The folder exists of ...
0
votes
1
answer
2k
views
Change apache port number on virtual host configuration file
I am trying to change the port number on which apache runs on Ubuntu 20.04.I have configured docker to run on port 80.So I am trying to make apache run on port 8081.I have followed this tuitorial ...
0
votes
0
answers
81
views
apache tutorial didn't work
I followed the Apache2 Install and Configuration tutorial, but it doesn't seem to work.
https://ubuntu.com/tutorials/install-and-configure-apache#1-overview
I had no problem access my local website ...
0
votes
1
answer
47
views
Wordpress has by default chosen a database and I can't install more than one wordpress in Ubuntu 20.04
I'm a new wordpress user so this might seem you a very common problem but trust me I have searched what I'm capable of but couldn't find any answer.
So my problem is my I created a database for my ...
0
votes
1
answer
540
views
Apache Video Stream Error
Making video stream website(localhost)
But Problem is not working
My html code (test.html)
<video>
<source src="/home/$user/Documents/video/test.mp4" type="video/MP4&...
0
votes
0
answers
97
views
icingaweb2 not reachable
the icingaweb2 is not reachable, although it is running on the server with the apache and icinga2. I already have all the prerequisites, that are documented on the official site set up. However, when ...
1
vote
1
answer
1k
views
XAMPP virtual host loading the same as localhost (), but not the document root I have specified
I am trying to create a virtual host for my XAMPP project. I have created the virtual host and this is working, but it is not loading the DocumentRoot I have specified, only the root directory (the ...
0
votes
0
answers
471
views
Is there a way of configuring 2 or more web domains for only 1 DNS server?
I´m now creating 2 websites on Apache2 web server (Ubuntu 20.04 based) and they both have different domains (domain1.com and domain2.com for this example). Webpages are hosted on /var/www/domain1 and /...
0
votes
0
answers
72
views
rasbery pi ubuntu21.10 apache2 server operation on desktop. I got an error when I upgraded to ubuntu22.04. I don't know where or how to fix it
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform ...
0
votes
0
answers
2k
views
Cannot log in through phpmyadmin to mysql in my container
I'm trying to have one docker container with: ubuntu 20.04, on top of which I add apache, php, mysql and phpmyadmin (all on the same container)
What's installed:
mysql Ver 8.0.29-0ubuntu0.20.04.2 ...
0
votes
0
answers
2k
views
get 404 error for local web server
I installed Apache also make sub directory under www
like /www/azolfagharj
make azolfagharj.conf
like this
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/azolfagharj
...
9
votes
4
answers
20k
views
Apache2 is not starting after upgrading version 22:04
After upgrading Ubuntu 16.04 to 18.04, then to 20.04 and finally to version 22.04, I got this error:
How can I fix it ?
root@vmi155065:/etc/apache2/mods-enabled# sudo service apache2 status
× apache2....
1
vote
2
answers
11k
views
Apache PHP modules not upgraded in 22.04
After upgrading from 21.10 to 22.04, Apache server does not start anymore:
apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php8.0....
0
votes
0
answers
176
views
Set group ownership and permission for new created files/folders
I found several questions like that of mine, but none of them worked for me.
I have a site folder /var/www/afos2.local/html.
Apache is running under www-data user.
I have created a group site_afos2. I ...
0
votes
0
answers
69
views
How can I use Php7.4 in my Apache in Ubuntu 22.04? [duplicate]
Recently I upgrade my Ubuntu from 20.04 to 22.04. I was using Php7.4 in Ubuntu 20.04 with the Apache server. After upgrading to Ubuntu 22.04, the Php Upgrades to 8.1 automatically. After that, I ...
0
votes
0
answers
35
views
Editing files gives permission errors
I have a site running on a ubuntu server and it was working fine before in terms of file permissions.
when we tried to edit files in /var/www/html/app/Reports, it gave Permission denied error then I ...
0
votes
0
answers
1k
views
ubuntu 20.04 install apache2 version 2.2.x
Don't ask me why but I need to install apache2 version 2.2.29 on linux Ubuntu 20.04.
wget https://archive.apache.org/dist/httpd/httpd-2.2.29.tar.bz2
tar -xf httpd-2.2.29.tar.bz2
cd httpd-2.2.29/
./...
2
votes
2
answers
7k
views
Error restarting apache after changing php version
Im trying to downgrade to php7.4 from 8 on ubuntu 20.04. Fresh install from the Digital Ocean "Marketplace" LAMP setup.
Trying to follow guides to do this:
I can select the cli php like ...
0
votes
1
answer
156
views
Building mod_php5 For Ubuntu Apache2 [closed]
I need to install mod_php5 for Apache 2.4 under Ubuntu in my homelab, in order to test an upgrade to an application whose installed version will not run under PHP>5 and whose current version will ...
1
vote
0
answers
50
views
Apache monitoring tool that reads and organize Apache Logs
I got tired looking for a GUI tool that just read and organize Apache log files. Reading several redundant lines of the log file is a hill. I searched here and Google for a free GUI tool that performs ...
0
votes
0
answers
447
views
Some PHP codes aren't running in ubuntu 20.04
I'm very frustrated because of PHP codes that are not executing in my Ubuntu 20.04 but working smoothly in windows 10. There are many codes that are not running I have attached one.
`<...
0
votes
0
answers
755
views
Ubuntu server: Apache2 virtual hosts not working
I am trying to build a website for a school project and currently running ubuntu 20.04.4 server on win11 Hyper-V.
This is the .conf
1 <VirtualHost *:80>
2 ServerAdmin webmaster@localhost
...
0
votes
0
answers
30
views
How can I migrate a website from old VPS to new VPS based on ubuntu 20:04?
I am new in Ubuntu OS but need to learn. I have a website located on old VPS based on Ubuntu 20.04 and need to migrate all project to new VPS based on same OS:
First, I push the entire website from ...
1
vote
1
answer
7k
views
Run systemd service with sudo rights
I have a Raspberry PI (Ubuntu 20.04) that is running a Web UI with a button to turn on a relay (communicate with the Raspberry PI from the Web UI) so in order to do that, I need to run it with sudo ...
0
votes
0
answers
969
views
session closed for user pi when restarting apache2 server
When restarting the apache server with this command sudo service apache2 restart I get an error
Job for apache2.service failed because the control process exited with error code.
See "systemctl ...
0
votes
1
answer
77
views
Help with installing apache2 and PHP (silly question)
I need to install wordpress, so I'm installing LAMP Stack with PhpMyAdmin following this TecMint step-by-step
It was working just fine until step 12:
Next, test if Apache is working in conjunction ...
1
vote
1
answer
15k
views
Find reason for "apache2.service: Failed with result 'exit-code'." and "Failed to start The Apache HTTP Server."
I have a VirtualBox setup, with an Ubuntu-machine 20.04 (inside a Vagrant setup), where when I start it up, the apache2-server won't start automatically.
After having started the machine, when I SSH ...
1
vote
1
answer
2k
views
Mysql directory path in ubuntu 20.04 tls
I have a backup of a database that is more than 500MB and I need to restore on a server, but every time phpMyAdmin give me error.
I want to restore it by uploading the file in my server then from ...
0
votes
0
answers
520
views
nagios behind reverse proxy
I installed nagios core in Ubuntu. After that, I setup a reverse proxy in Apache.
Now nagios is not working. I could not find what is the issue. I looked on the internet and changed the Apache ...
0
votes
1
answer
2k
views
Apache shows "Index of /" instead of wordpress site. Editing DocumentRoot breaks site and wordpress login
I can click the folder called "wordpress" in the 'index of/' page and it will take me to my site.
I tried using:
nano /etc/apache2/sites-available/000-default.conf
and editing
DocumentRoot /...
0
votes
1
answer
2k
views
Website is not loading wordpress site. Showing Index folder instead
I recently deleted the index.html file to stop the default Apache page from displaying, but now the image above is what I see when trying to access website. My domain name and IP are directing to an ...
1
vote
1
answer
492
views
vagrant box not available after update of virtualbox
I upgraded my virtualbox to 6.1.32-dfsg-1~ubuntu1.21.10.1 (I think, from 6.1.18 before) and now the vagrant boxes are not available any more in the browser via the box-IP like it used to work before ...
0
votes
1
answer
3k
views
Ubuntu 20.04 LTS, Unable to Upgrade to PHP 8.0 from PHP 7.2.2
I have carefully followed guideline provided from these sources: Upgrade from PHP 7 to 8 and How to install PHP 8 on Ubuntu 20.04. Unfortunately, when I run the command php -v
am getting the following ...
0
votes
1
answer
501
views
403 Access denied
I installed Redmine according to the instructions at https://izolabs.tech/2021/11/install-redmine-on-ubuntu.html on a webserver. Redmine works now at withsystem.de/redmine. But when I go to withsystem....
0
votes
1
answer
509
views
Recommended ownership of ~/public_html for apache?
Variations of this have been asked and answered here before, but I'm more after best practice from the options I list.
I'm running Apache and want to allow use of ~/public_html - but I'm wondering a ...
1
vote
0
answers
219
views
Roundcube config script not found by Apache
I have installed roundcube and roundcube-psql on Ubuntu 20.04 from the packages. At the top of /etc/apache2/conf-available/roundcube.conf there is a single alias which I have uncommented.
# Uncomment ...
5
votes
3
answers
958
views
A script to warn about apache2 certificates about to expire?
In Redhat there is a script called certwatch that warns when apache certificates about to expire. Is there anything similar for Ubuntu? Thanks.
11
votes
1
answer
10k
views
Should I add-apt-repository ppa:ondrej/apache2 when I add-apt-repository ppa:ondrej/php, as advised?
I am upgrading an Ubuntu 18.04 LTS server to PHP 7.4 because PHP 7.2 is no longer supported.
Other public questions have directed me to add sudo add-apt-repository ppa:ondrej/php, such as How to ...
0
votes
1
answer
1k
views
Existing file in tmp folder not detected by application running using apache2 on ubuntu 20.04
I have the following python code deployed on server running under apache2 with ubuntu 20.04:
import os
print(os.path.exists("/tmp/test.csv"))
above code returns False even though the test....
0
votes
0
answers
205
views
Apache2 - Forward Secrecy - Grade capped to B
I've just setup a new apache2 webserver and tested my site on ssllabs where I see this message "This server does not support Forward Secrecy with the reference browsers. Grade capped to B."
...
0
votes
0
answers
25
views
What would be a good Apache2 web server configuration given the resources?
I am trying to figure out how to calculate and implement a good Apache2, MPM Event, PHP-FPM configuration on a VPS with dedicated resources as follows:
64 GB RAM
32 vCPUs
The server would be mainly ...
1
vote
1
answer
151
views
Grep Apache version from shell
with apache2 -v I get the following result:
Server version: Apache/2.4.48 (Ubuntu)
Server built: 2022-01-05T14:29:15
How can I get just "2.4.48" using grep?
Thanks
1
vote
0
answers
793
views
Apache2 too many requests "waiting for connection"
I've got Apache 2.4 installed on a ubuntu based server with the event mpm module which seems to have too many idle processes Most of them are waiting for connection and a fraction of those requests ...
0
votes
1
answer
139
views
xampp working on wrong port
I am converting an old site from Windows to Ubuntu using XAMPP. I have changed as little as possible in httpd.conf and added a minimal number of vhosts (detail below). There are two virtual hosts: a '...
0
votes
1
answer
33
views
Access website by multiple domain names only (no IP)
With the code below I only allow people to visit my website by one domain. I need multidomain support like example.com and example2.com. How to do this?
ServerName example.com
ServerAdmin ...
0
votes
1
answer
314
views
postgresql is active with pgadmin4 but not showing anything in my php code
I'm new to ubuntu community or linux sounds better. so I don't have much knowledge of repositoies and packages. So, I've installed xampp, postgresql and pgadmin4 in my ubuntu 20.04 LTS. nothing showed ...
0
votes
0
answers
216
views
Securing Apache With Systemd
I am trying to secure Apache in a webhosting environment on ubuntu 20.04 server using systemd. My question is: How do i set a variable in path for usernames:
For a single user this works:
...