Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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

Unable to use IP address 192.168.0.111 but IP address 127.0.0.1 works

When accessing rest api, I can't use the IP address 192.168.0.111, even though if I use the IP address 127.0.0.1 I can
Setyo Adi Sasono's user avatar
-1 votes
0 answers
25 views

How do I activate PHP on Ubuntu 22.04

I have php 8.3.6 installed but Canonical did not install PHP support in Apache 2. What is the install command for FPM in this situation?
James Cobban's user avatar
0 votes
0 answers
50 views

What can I do if I purged apache2 and can't reinstall?

I am out of my depths. As a very new person to any sort of computing, I decided that I was going to create an home server using ubuntu server running 24.04. Got that up and running, installed ssh on ...
Jeff Rathbun's user avatar
1 vote
2 answers
116 views

Apache2 on 24.04 won't start when php is installed

> mei 25 16:20:42 parakeet apachectl[15124]: apache2: Syntax error on line 148 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php8.1.load: Cannot load /usr/lib/...
Rene Veerman's user avatar
0 votes
0 answers
37 views

Disable SSL 2.0 and 3.0: Use TLS 1.2 [closed]

How do I disable SSL 2.0 and 3.0 and use TLS 1.2 in Ubuntu 13.10 version? I was not able to find "SSLProtocol" in the apache2.conf file and change it. Thank you. These are information on my ...
Ming-Jiun Yu's user avatar
0 votes
1 answer
29 views

Fresh install of Ubuntu server: unable to host virtual name based websites in apache2

I have a fresh install of Ubuntu Server 24.04 LAMP stack. I am having a tough time getting virtual named subdomain websites working. Every subdomain points to the same default site file. I followed a ...
cny3axg's user avatar
0 votes
0 answers
31 views

Error 404 HTTP, Repository with apt-mirror

My English is not very good, but I'm going to explain it as best as possible. First of all the repository is a Ubuntu server 22 to update a ubuntu 18 to a Ubuntu 22 or 20 the version doesn't matter to ...
Fernando Belmonte's user avatar
1 vote
1 answer
36 views

PhpMyAdmin not working after Ubuntu upgrade from 20.04 to 22.04

I see there is already a question very similar to mine, but with a slightly different issue. I hope this will not break any rules. I have a web server running a LEMP stack where I upgraded Ubuntu from ...
rumlauf's user avatar
  • 23
-1 votes
0 answers
21 views

Upgrade 14.04 to 16.04 [closed]

If I want to move or upgrade from Ubuntu 14.04 to Ubuntu 16.04, will (apache, php, mysql) be updated or will I stay with the previous version, because I want the version (apache, php, mysql) not to be ...
Rully Mulia's user avatar
-1 votes
0 answers
37 views

Apache2 will not connect/install

Hello I am new to using Ubuntu and Linux so I am sorry if this is an easy solution but I used: sudo apt install apache2 -y But wherever I try to access it, it says: No such file or directory. Thank ...
Amon angel_of_time's user avatar
0 votes
1 answer
36 views

Connecting a domain to a VPS

I'm having trouble connecting a domain to my VPS. Maybe I will describe step by step what I did and someone will be able to give me an answer. I bought a VPS on ovhcloud. I installed Ubuntu on it. ...
Dawid Siudek's user avatar
-2 votes
1 answer
54 views

Apache stops displaying web page after ubuntu dist-upgrade on freescout server

Last week I set up an ubuntu 22.04LTS server and ran the freescout install script. I was able to configure and start using freescout , then I thought it would be a good idea (clearly not) to upgrade ...
Scott W's user avatar
-1 votes
1 answer
53 views

Receiving 403 Forbidden Error in PHP on Ubuntu 22.04

I am encountering a persistent issue where I receive a 403 Forbidden error whenever I attempt to access any PHP file within directories on my Apache web server, except for index.php. This problem ...
Tejaswa  Nama's user avatar
0 votes
0 answers
16 views

Vitual host not working after adding the code in the apache2.conf file

I am trying to install SSL on my website but getting issues in the virtual host. I have added below code in /etc/apache2/apacha2.conf and saved it. Now when I try to restart the Apache then I am ...
user9437856's user avatar
-1 votes
1 answer
28 views

Apache VirtualHost configuration file [duplicate]

I have installed Apache on Ubuntu and want to publish a simple website. But I dont understand where to put the configuration for my wep page. Pleas help
Peter's user avatar
  • 1
0 votes
0 answers
174 views

RDP to Ubuntu works from Windows, not from Guacamole

I'm using Apache Guacamole to connect easyly to different kind of VM. I can connect to my Debian VM through Guacamole with SSH conf, I can connect to my Windows VM through Guacamole with RDP conf but ...
Sébastien R's user avatar
-1 votes
0 answers
14 views

How to install mongodb inside lampp folder?

So I am trying to install mongodb inside lampp folder because my project is using path /opt/lampp/etc/php.ini for php.ini instead of /etc/php/8.2/cli/php.ini problem is that Class MongoDB\Driver\...
Satya Jeet's user avatar
0 votes
1 answer
87 views

Php is installed but not loading in 24.04

So, I have Apache2 installed and after upgrading from 23.10 apparently PHP code is shown in the browser rather than executing. I installed php8.3, and tried loading the module to get this error. root@...
Eduardo Perez's user avatar
0 votes
1 answer
42 views

why apache virtual host website not working

i need your help guys i tried to create my virtual host i follow this tutorial but still do not working i follow more than one they give my same results sudo apt install apache2
DSL's user avatar
  • 33
0 votes
2 answers
136 views

Why does Apache give me a 401 Unauthorized?

I've set up Apache on a Linux home computer. I've also added a Samba network share to that machine. In Apache's Sites-Enabled conf directory, I have added a virtual host for example.com (and added ...
steenbergh's user avatar
0 votes
0 answers
60 views

Ubuntu 22.04 Apache2 CORS issue, headers not set after enabling headers and editing the Virtual Host file

I'm having problems getting headers to work to allow access to files on my server from another domain. Specifically CodePen. I've enabled headers a2enmod headers and get headers_module (shared) when ...
Nik Lever's user avatar
0 votes
0 answers
31 views

After giving permission 550 to usr/share folder in Ubuntu and after restarting getting error while start system

By mistake I have given permission 550 to folder usr/share in Ubuntu while installing apache2. However after giving permission, some unusual things happened so I restarted my system and got the below ...
Nayan Tandel's user avatar
0 votes
1 answer
63 views

Apache2 gives 403 when serving websites outside /var/www/

Why does Apache2 give 403 when serving websites outside /var/www/? I have the following configurations on my local machine for development and they worked perfectly fine before in my old machine. /etc/...
Run's user avatar
  • 2,638
0 votes
0 answers
100 views

Ubuntu 23.10: Unable to install PHP 7.1 using ppa:ondrej/php and apt install php7.1 [duplicate]

I'm a Laravel dev and new to Ubuntu. I have two different apps which use two different versions of PHP. I need to have PHP 7.1.x. I tried to explore different platforms most of them are using ppa:...
Dayan Ahmed's user avatar
0 votes
1 answer
39 views

Webserver changing from root to User - How can do it?

At my beginning i installed Mautic and the webserver Apache2 under root. Now i know, that was wrong and i added a user: stefan What do i have to do, that the apache and my mautic webapp is runnung ...
Stefan Franz's user avatar
-1 votes
1 answer
39 views

Fail to checkout svn repos (server is on Ubuntu) on windows machine

I have created a svn repository on my workstation (system: Ubuntu 22.04), and I have configured apache and ssl settings following Subversion - Community Help Wiki and SVN Server on Ubuntu with https ...
JunSong Qiu's user avatar
1 vote
0 answers
41 views

phpfpm and apache configuration not working

i'm recently working on 3-tier architecture on ubuntu virtual machines , 1 desktop and 2 servers, Their network configuration is set to bridged Adapter in order to communicate with the wifi card ...
Adem Sghaier's user avatar
0 votes
1 answer
43 views

can't connect to apache with localhost or 127.0.0.1 on browser

I've installed the apache2 package and have it running. When I try to test it by going to http://localhost and http://127.0.0.1, I'm greeted with "ERR_CONNECTION_REFUSED". Running sudo ...
NuhUh's user avatar
  • 1
0 votes
0 answers
90 views

how to run codeigniter 4 on apache2 ubuntu

i work on project codeigniter 4, i installed my project on my apache2 server on ubuntu, set my virtual host : 127.0.0.1 du-accurate.local 127.0.0.1 localhost 127.0.1.1 X1-Cabron and ...
dontknowanything's user avatar
0 votes
0 answers
56 views

set: pipefail failing on WSL windows

I cloned this repo on WSL2 https://github.com/apache/airflow/blob/main/dev/breeze/doc/01_installation.rst#docker-in-wsl-2 and tried to build a docker image that uses also this script https://github....
criss's user avatar
  • 1
1 vote
0 answers
72 views

403 Forbidden after changing DocumentRoot directory Apache2

I tried to Change the DocumentRoot directory for Apache2 in Ubuntu but I get always a 403 forbidden error my /etc/apache2/apache2.conf file contains: # This is the main Apache server configuration ...
Aly Ahmed Aly's user avatar
0 votes
0 answers
36 views

Access wordpress blog on subdirectory /blog that is running on subdomain

I have my main site https://mysite.com in nextjs and wordpress blog on subdomain https://blog.mysite.com. They both are hosted on different servers and diff hostings. I need my blog to be accessible ...
kunal saxena's user avatar
3 votes
1 answer
172 views

Docker container fails to answer respond to HTTP request from host machine

I want to deploy an API on a server (Ubuntu 18.04) with Docker (container: Ubuntu 22.04). I previously deployed the API with the same config on another server without any issue. While being built ...
Seglinglin's user avatar
0 votes
0 answers
53 views

Troubles installing redmine on linux server Ubuntu 22.04.4

I made this install sudo apt-get install apache2 libapache2-mod-passenger After that, I configured the file /etc/apache2/mods-available/passenger.conf <IfModule mod_passenger.c> PassengerRoot ...
pracovniai's user avatar
0 votes
0 answers
49 views

I am trying to setup a a reverse proxy with SSL and Apache2

I have installed an SSL certificate from No ip. When I try and restart Apache2, I receive this error: AH02572: Failed to configure at least one certificate and key for reverse-proxy.internal.cloudapp....
austenskinner's user avatar
1 vote
1 answer
126 views

Installing PHP5.3 for Ubuntu 20.4/22.4 for LAMP

I'm trying to install PHP5.3 on an Ubuntu server, I've tried the following: Installing PHP 5.3 in Ubuntu 14.04 (Make has errors and then stops apache server) https://gist.github.com/szihaj/...
Nichm's user avatar
  • 21
0 votes
1 answer
62 views

How to Install WordPress and Magento2 in ubuntu 22.04 using apache2?

I hope you can understand what i am going to ask you, about installing two applications in ubuntu using apache2, I installed Magento2 in var/www/html/ and I want to install WordPress on var/www/...
Naveen Raj Kumar's user avatar
2 votes
1 answer
199 views

Modifying apache2.conf AllowOveride All gives 500 Internal server error

I'm trying to migrate a test website from a hosted domain to an OCI ubuntu 22 instance. The instance works ok, i've installed apache2 and php. I also copied my files to the instance. However, my ....
Andrei's user avatar
  • 29
1 vote
0 answers
161 views

After installing apache2 it gives 403 Forbidden error

I installed the apache2 server on Ubuntu and after success, when I tried to hit the URL to check whether it worked or not it threw 403 Forbidden error instead of showing Apache's default page. I ...
Kashif  Sohail's user avatar
3 votes
1 answer
1k views

I uninstalled my apache2 from Ubuntu, now I am unable to reinstall it

I Uninstall my apach2 from Ubuntu because it looks not working now I tried to install it again with the command sudo apt install apache2 and I can see the below errors E: Failed to fetch http://...
Kashif  Sohail's user avatar
1 vote
0 answers
80 views

Why are files missing from directories when viewed from web?

I am really puzzled by the behaviour of Apache 2 in displaying files contained in folders stored on my unix server. Until recently I had assumed that I could navigate through listings displayed on ...
Norman Friend's user avatar
0 votes
0 answers
20 views

Setup to View Dev Site Via localhost

I'm using Ubuntu 22.04 and PHP 8.1.2 (just noting the php in case it matters) I have a few Live working websites I manage. I would like to set up my local machine to be able to view changes in a ...
John Cowan's user avatar
0 votes
2 answers
146 views

sym link in Apache used to work but is now forbidden

I'm in the process of setting up a new computer; the old setup was Ubuntu 20.04 LTS; and I had placed a sym link to allow apache to access my content. sudo ln -s /home/ed/mystuff /var/www/html/stuff ...
Ed Beighe's user avatar
1 vote
0 answers
757 views

AH01276: Cannot serve directory /var/www/html/public

I am running laravel project on ubuntu with apache2 server and getting the below error when anyone download any invoice/shippment lebel. The url I am accessing is https://staging.myweb.com Forbidden ...
urfusion's user avatar
  • 281
0 votes
1 answer
126 views

Transmission reverse proxy wont to find peer's [closed]

I'm new in Ubuntu! Today I put transmission-daemon behind the apache2 web server using reverse proxy, get SSL certificate to my.domain.com and have https:// access using web interface with port 9091 ...
Slavy Ivanov's user avatar
0 votes
0 answers
14 views

VirtualHost & Proxy with Location

So I have a docker/nodejs daemon running with an imager located at port 3030. This code below works fine for when accessing imager.mydomain.online to reach the correct folder. The folder contains a ...
TheMeisterSE's user avatar
-1 votes
1 answer
55 views

Apache server unresponsive due to multiple instances of process

Good day, I have a VPS server with LAMP setup. As a couple of days I have a huge spike in process and I don't know how to investigate this cause. Here is the output of the htop command https://ibb.co/...
croppio.com's user avatar
  • 1,519
-3 votes
1 answer
116 views

I want to to disallow everything except ssh, e-mail, and http [closed]

If I use: sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow ssh sudo ufw allow http ...etc sudo ufw enable To block the world from entering my website execpt certain ...
Dan's user avatar
  • 5
0 votes
1 answer
53 views

Path of file in Ubuntu for JS

This maybe possible duplicate, but didn't found exact problem as me. I have a Ubuntu server, which running Flask over Apache, problem is I have next path: /var/www/someapp/video.mp4. And app.py file ...
onecopyman's user avatar
0 votes
0 answers
76 views

Apache2 on Ubuntu 20.04.6 LTS Responding to Facebook Link Scraper with HTTP 418 "I'm a Teapot"

I have a hosted virtual private server running Ubuntu 20.04.6 LTS, recently upgraded from 18.x LTS. It’s running an Apache2 web server with a single domain. Since the upgrade it’s no longer possible ...
RoryG's user avatar
  • 1

1
2 3 4 5
92