Questions tagged as ['apache2']
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.
This is data from /etc/apache2/sites-available/fullstack1.conf
:
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName www.fullstack1.xyz
ServerAlias fullstac ...
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?
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 ...
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"
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 ...
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 ...

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...
...
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 ...
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 ...
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 ...
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 ...
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 ...

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 ...
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 ...
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 ...

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 ...

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. ...

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:
...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;
# ...

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:
18.04
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 ...
My vm is within a closed network so I cannot use apt install apache2
. Instead, I installed manually by the following steps:
tar -xzvf httpd-2.4.51.tar.gz
in/home/my_username
directory, obtaininghttpd-2.4.51
directory- Placed
apr-1.7.0.tar.gz
,apr-iconv-1.2.2.tar.gz
andapr-util-1.6.1.tar.gz
underhttpd-2.4.51/srclib/
andtar -xzvf
all of them - Renamed these unpacked APR directories by omitting th ...
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 ...

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 ...

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 ...

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/ ...

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 ...

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 ...
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 ...
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 ...
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 ...