Questions tagged as ['apache2']

Use this tag for question related to configuring and using Apache on Ubuntu or one of Ubuntu's official derivatives.
Score: 0
gian avatar
Error 500 ubuntu index.php setting
br flag

I'm getting this error after putting my file inside html directory and I'm confused about this setting. I think I have to open the index.php file, but I'm getting a 500 error. Let me know about any error you notice please.

Structure of directory

enter image description here

This is data from /etc/apache2/sites-available/fullstack1.conf:

<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName www.fullstack1.xyz
    ServerAlias fullstac ...
Score: 0
Dok Gus avatar
All files on /var/www/ change ownership to www-data. Can it be avoided?
fr flag

All files on /var/www/ change ownership to www-data. Can it be avoided?

I have different files with different owners, starting from the /var/www/* directory. But once a day they change and appear as owner and group www-data.

I can't see why this happens. How can I disable this automatic change?

Score: 0
habib avatar
Can't access Apache webserver from other PC
cn flag

I'm trying to make a website with a domain name. I'm using Apache web-server on Ubuntu 20.04. I can access it internally from my network as https://advice.hopto.org , but unable to access it from other PC in the same network. Following lines are in the configuration of website:

 <VirtualHost *:443>
   ServerName  advice.hopto.org
   ServerAlias www.advice.hopto.org
   DocumentRoot /var/www/a ...
Score: 0
Ala Eddine ZRB avatar
Apache Open Office installation
us flag

I have a problem whene I trying install Apache Open Office on ubuntu 21.10. I runned this commande on terminal "~/Desktop/en-US/DEBS$ sudo dpkg -i * .deb" The result was "dpkg: error: archive 'desktop-integration' is not a regular file"

Score: 0
Juliver Galleto avatar
pointing sub domain to AWS EC2 server, website not displaying
br flag

The main domain is pointed on other AWS EC2 instance and due to the subdomain is a staging site so I launch another AWS EC2 instance, installed Apache, added the subdomain vhost to default .conf at /etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>
    ServerName subdomain.maindomain.com
    ServerAlias www.subdomain.maindomain.com
    ServerAdmin admin@maindomain.com
    DocumentRoot ...
Score: 0
alino avatar
‘apache2’ has no installation candidate in virtual machine
th flag

Something is missing in sources.list in apt folder. I used this command outside the venv and fixed in my virtual machine.

$ cat <<EOF | sudo tee /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu  ...
Score: 0
Failed to start Apache HTTP server
tg flag

I did, sudo systemctl status apache2, and this is the reply...

apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2021-11-18 21:55:22 EST; 3h 42min ago
       Docs: https://httpd.apache.org/docs/2.4/

Nov 18 21:55:20 T540p systemd[1]: Starting The Apache HTTP Server...
 ...
Score: 0
JDias avatar
apache2: how to log to mysql server
in flag

I have installed apache2 server and configured a site with the file site.conf:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

This logs the accessed pages to the file access.log. Besides this logging, I would like to create another logging like  ...

Score: 0
user3409700 avatar
PHP has stopped working on Ubuntu and Apache
us flag

I am running Ubuntu 18.04. I have a LAMP setup. At some point, I realized that my PHP was no longer working. I haven't used it for a while, so unfortunately I can't say when it stopped working. It could well have been when I upgraded to Ubuntu 18.04 from 16.04.

I have scoured the Internet looking for answers to the problem and simply haven't been able to get it working. Here's information about t ...

Score: 0
abdul latif avatar
Airflow webservice server is not working
cn flag

I have created a service file for an Airflow web server. This is the contents of the .service file:

[Unit]
Description=Airflow webserver daemon
After=network.target
[Service]
Environment=”PATH=/srv/airflow/bin”
Environment=”AIRFLOW_HOME=/srv/airflow”
User=airflow
Group=airflow
Type=simple
ExecStart=/srv/airflow/bin/airflow webserver -p 8080 -- pid /srv/airflow/webserver.pid
Restart=on-failure
Rest ...
Score: 0
Finbar avatar
Persistent error with phpmyadmin "Array and string offset access syntax with curly braces is no longer supported"
uy flag

The following error is in my /var/log/apache2/error.log file. I can not access the index.php file or any other phpmyadmin file, in replace of phpmyadmins interface my server returns an http 500 error. All other files work fine, its only phpmyadmin's which has this issue.

Array and string offset access syntax with curly braces is no longer supported in /usr/share/$
$share/phpmyadmin/libraries/Util.php o ...
Score: 0
Micheal Saunders avatar
How do I make a folder owner writable, and world readable
in flag

I have just successfully setup a local user with FTP access with his own home folder and chrooted to that folder, but he's asking if there's a way for that folder (/home/username) can be owner writable and world readable for apache? This is so that others in the same building can download files using standard http protocols but only the owner can upload via FTP.

EG A local user sends a zip file  ...

Score: 0
error: sudo service apache2 start Job for apache2.service failed because the control process exited with error code
ng flag

after editing the file "/etc/apache2/sites-available/default-ssl.conf", I noticed that my site was running much slower, so I rewrote the file from 0 with this (htps:/gist.github.com/hephaestus9/2a8562137841c99a74cb) which should be the original file. After that, the terminal, when launching the command "sudo service apache2 start", gave this error message "sudo service apache2 start Job for apache2.serv ...

Score: 0
hsyn avatar
ldap-account-manager problem
in flag

I have a problem about ldap-account-manager remove.

Here is errors.

$ sudo apt-get remove ldap-account-manager -y
Reading package lists... Done
Building dependency tree  
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-dejavu php-ldap php-monolog php7.4-ldap

Use 'sudo apt autoremove' to remove them.
The following packages will  ...
Score: 0
dspettit avatar
What components are needed to set up Ubuntu Server as a local Web Server?
cn flag

This is all new to me, so forgive me. I would suddenly be thrown into a situation that I need some help with. Here goes... I have several Razor Pages that access an SQL Server (Express) on a Ubuntu machine. All works great. I am running these pages from within Visual Studio using IIS Express.

Now, I have been told to share these pages on our local network. I have a separate Ubuntu Server availabl ...

Score: 1
How do I limit the number of apache log files
sa flag

I am using Ubunto 2018.4 VPS and using phpfpm 7.2-4. I have about 30 domains and each domain creates log files and archives them. It currently creates about 15 of each type (access/log) so there are literally hundreds of logs to sift through every time I need to.

So, my question is, is there a way to limit the number of archives that are saved from 3 max?

Many thanks PS: I am not an advanced user so ...

Score: 0
koha installation problem?
sr flag

i am new on ubuntu os and on top of that i am trying to install koha on ubuntu 21.10. this is what i get at some point:

Setting up apache2 (2.4.48-3.1ubuntu3) ...
info: Executing deferred 'a2enconf javascript-common' for package javascript-com
mon
Job for apache2.service failed because the control process exited with error cod
e.
See "systemctl status apache2.service" and "journalctl -xeu apache2. ...
Score: 1
Configure local dev env with alias for wp dev
de flag

I know this people have gone over this a thousand times, but I simply can't get my browser to resolve to 127.0.0.1 when I type in my domain name.

I'm developing a WP site locally. Getting to it by typing localhost works just fine, but when I type in the domain name, it won't resolve to localhost.

Can some one help me please?

/etc/hosts:

127.0.0.1 localhost thewriters.ink

/etc/apache2/apache2.conf:

 ...
Score: 0
Brandos avatar
Redirect Transmission port 9091 to 80 on Ubuntu serving with Nginx
us flag

The admin of my network is ceaselessly disabling and enabling ports. I want my transmission Web UI to be served over port 80 instead of 9091. My server is running on Nginx not Apache (Apache solution).

Port 9091 is disabled by the firewall.

I created a new file /etc/nginx/conf.d/transmission.conf with the following:

server {
    listen       9091;
    server_name  localhost;

    #charset koi8-r;
    # ...
Score: -1
Whether there is any compatibility issue for PHP 5.6 and Apache 2.4.51 on Ubuntu 18.04/20.04?
cn flag

I am replicating an environment. The original environment contains Ubuntu 14.04, PHP 5.6 and Apache 2.4.51

Since 14.04 (and 16.04) is out of life, following are the possible Ubuntu OS that I can use:

  1. 18.04

  2. 20.04

I also know that PHP 7+ is supported on Ubuntu 16.04 onwards.

My question is that - whether there is any compatibility issue for PHP 5.6 and Apache 2.4.51 on each of the above Ubuntu OS ve ...

Score: 0
NiC avatar
Can't Start Apache After Manual Installation on Ubuntu 20.04
cn flag
NiC

My vm is within a closed network so I cannot use apt install apache2. Instead, I installed manually by the following steps:

  1. tar -xzvf httpd-2.4.51.tar.gz in /home/my_username directory, obtaining httpd-2.4.51 directory
  2. Placed apr-1.7.0.tar.gz, apr-iconv-1.2.2.tar.gz and apr-util-1.6.1.tar.gz underhttpd-2.4.51/srclib/ and tar -xzvf all of them
  3. Renamed these unpacked APR directories by omitting th ...
Score: 0
Sastrería Militar avatar
Problem with SSL Apache2 Ubuntu 18.04
gb flag

I have a problem trying to renew the SSL certificate for my website. A few days ago I downloaded the new certificate (.crt, .key and intermediate.crt) and replaced it with the old one (obviously I left it the same names). I reloaded the apache service but it does not work, when I enter my website it keeps telling me that the certificate has expired because it continues to detect the old certificate. Hon ...

Score: 0
Can't install apache Ubuntu 20.04
uz flag

I am having trouble installing apache2. This is my output when I try to install it:

Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-data apache2-utils
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-data apache2-utils
0 up ...
Score: 0
Apache Passenger fails to start due to libcrypto error
cn flag

I have installed rails and Passenger for Apache, but starting apache fails with following error:

PassengerAgent: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by PassengerAgent)
[Mon Nov 01 16:59:16.326522 2021] [passenger:error] [pid 852] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog: it seems to  ...
Score: 0
Subdomain redirecting me to main domain Apache2
in flag

I have a website running on Apache server. When I try to visit a subdomain, I am redirected to the main domain.

Here is the Apache configuration file:

<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ServerAdmin waheed@azaanjobs.com
        ServerName azaanjobs.com
        ServerAlias www.azaanjobs.com
        DocumentRoot /var/www/azaanjobs/public_html

        <Directory /var/www/ ...
Score: 0
ssl problem with other virtual hosts
be flag

i have 5 virtual hosts, one is the hostname on the vps server. it also has a ssl certificate.

the other 4 dont have ssl, now when i try view any of the others i get this

Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.

ssl virutal host config as follows

<Virt ...
Score: 0
Granting permission to /var/www/html
in flag

I've installed WordPress but am struggling to correctly configure permission to the WordPress directory. When attempting to install plugins or update WordPress, I'm getting this message:

To perform the requested action, WordPress needs to access your web server.

This is the permission set (recursively) on the WordPress directory:

steve@binky:~ $ ls -al /var/www/html/
total 20
drwxrws--- 3 steve ww ...
Score: 0
Shashpal avatar
Docker container is accessible with domain.com:port, not domain.com
za flag

I would like to map a domain (https://something.com) to a docker container running with ports 8080 and 4443. I made these changes to the apache configuration of the domain for https listening:

<Location />
    ProxyPass  https://127.0.0.1:4443/
    ProxyPassReverse https://127.0.0.1:4443/
</Location>

With it, I can access the container only via https://something.com:4443 but I actually wa ...

Score: 0
ElliotDaly109 avatar
Localhost (wordpress) works, but static IP and domain name does not show anything
pg flag

I am a first-timer with this stuff. I have a new Ubuntu server. I have PostFix and SSH working.

I have installed Wordpress (Lamp stack, apache2, and MariaDB). I also installed NextCloud and uninstalled it again.

Now, Localhost shows my wordpress site just fine. But my static IP and domain name do not.

When I go to my static IP:

Unable to connect

Firefox can’t establish a connection to the serve ...
Score: 0
ttito avatar
connect to openab and zoneminder on the same server
pk flag

On my ubuntu 20.04 server, I want to connect (binding) from openhab to zoneminder. Openhab and zoneminder are on the same server.

From a virtual box in my LAN, I can connect openhab to zoneminder, but from the server, I can not connect.

Maybe someone can help?

Example:

From a PC in my LAN I can type (terminal):

curl https://some.side.onmyserver/getVersion.json

and I get an answer.

When I type it  ...