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
0 votes
0 answers
9 views

Apache2 starting on its own, can't figure out

I have really strange issue, that I can't figure out. I have apache2 installed on my server, no problems, everything runs OK. I need to shut it down for a couple of minutes, but here comes the issue. ...
user avatar
  • 1
0 votes
0 answers
7 views

Snap onlyoffice-ds and apache nextcloud

I've installed nextcloud the traditional way, without docker or snap and i'm using apache2, mariadb, php. Nextcloud is working fine, and i have my SSL working correctly. From memory, you cant mix ...
user avatar
0 votes
1 answer
12 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 ...
user avatar
0 votes
0 answers
15 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 ...
user avatar
  • 1
0 votes
1 answer
11 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 ...
user avatar
0 votes
1 answer
15 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&...
user avatar
0 votes
0 answers
12 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 ...
user avatar
  • 3
0 votes
0 answers
13 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 ...
user avatar
0 votes
0 answers
37 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 /...
user avatar
0 votes
0 answers
9 views

OpenVPN blocks outgoing Apache sites

I host a site to teach SQL (databases.pacha.dev) by using Apache in a DigitalOcean droplet. I wanted to install OpenVPN to have a VPN in the same server, and I run this as root #!/bin/bash echo "...
user avatar
0 votes
0 answers
18 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 ...
user avatar
0 votes
0 answers
43 views

Ubuntu 22.04 - impossible to run apache of any version of x86 XAMPP stack

Due to compatibility reasons of an old project I am in need of a functioning x86 XAMPP installation (V 5.5.19). Installation and execution of apache of said stack works fine in 20.04 and below but ...
user avatar
0 votes
0 answers
108 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 ...
user avatar
  • 101
0 votes
0 answers
36 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 ...
user avatar
0 votes
0 answers
132 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....
user avatar
0 votes
0 answers
103 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....
user avatar
  • 305
0 votes
0 answers
16 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 ...
user avatar
  • 1
0 votes
0 answers
55 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 ...
user avatar
0 votes
0 answers
99 views

job for zabbix-server.service failed because the control process exited with error code

I would like to install zabbix-server on Ubuntu 20.04. When I run the following command, I receive an error: sudo systemctl restart zabbiz-server zabbix-agent apache2 Error: How can I solve this ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
  • 101
0 votes
0 answers
42 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/ ./...
user avatar
  • 101
0 votes
0 answers
20 views

cannot Create a domain, projects, users, and roles for openstack keystone in ubuntu 20.04 with internal error (500)

try to create keystone identity service domain in openstack with command : openstack domain create --description "An Example Domain" example i got error in terminal : Failed to discover ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
  • 101
0 votes
1 answer
29 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 ...
user avatar
0 votes
0 answers
51 views

Couldn't connect adminer with MySQL container

I can create connection between containers mysql(container) to adminer(container) (both in containers) But i want to connect from mysql(container) to adminer(work as local) (mysql in container and ...
user avatar
  • 1
0 votes
0 answers
43 views

Strange network behavior

OK this is complicated. I'm running WebWorks on Ubuntu in a virtual machine using VMWare. Once in a while the network drops, but not in a normal way. Heres what happens. I can't connect to the ...
user avatar
1 vote
0 answers
13 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 ...
user avatar
  • 634
0 votes
0 answers
23 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. `<...
user avatar
0 votes
0 answers
41 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 ...
user avatar
  • 1
0 votes
0 answers
19 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 ...
user avatar
1 vote
1 answer
303 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 ...
user avatar
  • 131
0 votes
0 answers
35 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 ...
user avatar
  • 101
0 votes
1 answer
20 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 ...
user avatar
1 vote
1 answer
206 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 ...
user avatar
  • 73
0 votes
1 answer
38 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 ...
user avatar
0 votes
0 answers
77 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 ...
user avatar
0 votes
0 answers
75 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 /...
user avatar
  • 1
0 votes
1 answer
72 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 ...
user avatar
1 vote
1 answer
104 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 ...
user avatar
  • 29.9k
0 votes
1 answer
143 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 ...
user avatar
  • 1
0 votes
1 answer
58 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....
user avatar
0 votes
1 answer
25 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 ...
user avatar
0 votes
0 answers
25 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 ...
user avatar
  • 1,969
0 votes
0 answers
26 views

Apache2-data on ubuntu 18.04 error processing archive 7-apache2-data_2.4.29-1ubuntu4.22_all.deb

I want to reinstall apache2 in ubuntu 18.04 and this erreur is showing: root@demo:/tmp# sudo apt-get clean root@demo:/tmp# sudo apt-get autoremove Reading package lists... Done Building dependency ...
user avatar
  • 1
5 votes
3 answers
512 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.
user avatar
1 vote
0 answers
531 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 ...
user avatar
0 votes
1 answer
69 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....
user avatar
  • 119
0 votes
0 answers
33 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." ...
user avatar
  • 1
0 votes
0 answers
15 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 ...
user avatar
1 vote
1 answer
23 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
user avatar
  • 325

1
2 3 4 5
90