Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [apache2]

Use this tag for question related to configuring and using Apache on Ubuntu or one of Ubuntu's official derivatives.

0
votes
0answers
16 views

I can't Install apache2 in debian 7 [on hold]

Screen error I'am trying to install apache2 in debian 7 wheezy, but can't run. Any have solution about this case ?
1
vote
0answers
15 views

Safely upgrade PHP from 5.6.38 to PHP 7.2+ on Ubuntu 18.04.1 LTS

I am running a production server on Ubuntu 18.04.1 LTS which has PHP 5.6.38 installed. It's serving a PHP 5x application but because of composer and other requirements I need to upgrade it safely on ...
0
votes
0answers
43 views

Job for fail2ban.service failed because the control process exited with error

I have a basic issue on getting fail2ban started on one of my machines. I have a machine with Ubuntu 16.04 freshly installed today, and I am following a variety of instructions on fail2ban from source ...
0
votes
2answers
27 views

Can't access web folder after typing a chmod command (error 403)

So I was having issues with Root not being able to use fopen/fwrite through PHP and tried typing this hoping it would help (found it on another site) chmod -R 766 /var/www/html Andddd now I can ...
0
votes
0answers
13 views

I am getting “Considering conflict php5 for php7.0:” when enabling php7.0 in ubuntu 16.04

When running "a2enmod php7.0", I am getting the below error. Is this just ignorable or an issue ?. How do i resolve this ? Considering dependency mpm_prefork for php7.0: Considering conflict ...
0
votes
0answers
8 views

That is the *best* way to configure second apache, on different port+config?

I need two apaches because of different modules, may be I can do it myself, but what is the best way to configure second apache with different config for different php version? Main apache stay with ...
2
votes
2answers
33 views

Investigation, who keep changing my php version?

I'm changing php versions, successfully, but only for a while, then it roll back. I have several php versions installed: leonid@DevSSD:~$ sudo a2enmod php php5.6 php7.0 php7.1 php7.2 So, I do ...
0
votes
0answers
28 views

What im need to do after apache2 setup? [closed]

Im also want to change my site adress
0
votes
0answers
12 views

Wordpress: CSS not loading [duplicate]

My CSS is not loading on my site. The default apache web dir is at /var/www/html/wordpress (where the site files are). This is wp-config.php: define('WP_HOME','https://www.computing101.tk'); ...
0
votes
0answers
11 views

Install php thread php5.6 , Make command doesn't work

i want to install php thread and i was tried this tutorial https://hub.docker.com/r/djhr/php56-pthreads-apache/ but when try command make give me output like this : make: *** No targets specified ...
0
votes
0answers
11 views

Automatic style adding to every html, Apache2 Ubuntu 18.10

I got little curious problem. In every html I create and add path to apache will system add automatically style into my (vis picture). What is more surprising that other css external files stop ...
0
votes
0answers
48 views

Apache webserver showing IP instead of domain name

I put together a website hosted on apache2, with a domain name bought through GoDaddy. I can visit the website via my domain name or IP, but the address bar populates my IP address instead of keeping ...
0
votes
0answers
38 views

Unable to use “localhost ”

i get this error after running this sudo systemctl -l status apache2 ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: ...
0
votes
0answers
43 views

Apache error vagrant “Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the…”

I am running Apache server with vagrant and I am getting this error "Could not reliably determine the server's fully qualified domain name, using 10.0.2.15. Set the 'ServerName' directive globally to ...
0
votes
0answers
39 views

index.php is showing a blank page [on hold]

PHP 5.6 ubuntu0.18.04.1 mysql Ver 14.14 Distrib5.7.23, for Linux (x86_64) I put a folder in /var/www/html/frontend But when I access the folder: localhost/frontend/index.php, I only see a white page....
0
votes
0answers
17 views

Restrict access to web application using UFW firewall [duplicate]

How can I use UFW to restrict the access to a web application (port 80) so it can be accessed only by specified IPs?
0
votes
0answers
13 views

Apache2 doesn't post anything on client's side

I copied my webpage indexes on apache's default directory (in this case /var/www/html) and when I want to access my website with the VPS-s IP, it doesn't post anything. Question: Has anyone ...
1
vote
2answers
50 views

How to use different versions of PHP? [duplicate]

I have several virtualhosts, and I need to run different PHP versions. I have php-fpm and FastCgi installed, but how can I configure it? I'm using Ubuntu 16.04
0
votes
0answers
29 views

ubuntu 16.04 lts, send mail using external (hosting provider) dns

I set Ubuntu 16.04 LTS server as web server (apache-php-mysql and sendmail) with valid public ip-address. Also, I use a hosting provider to redirect www.mydomain.com to my Ubuntu web server. Web ...
0
votes
1answer
31 views

Openssl keeps prompting for a phrase during key generation

I am following the directions that are published on the Ubuntu site. First, it asks you to create a secure key, then it tells you to enter openssl rsa -in server.key -out server.key.insecure to create ...
1
vote
0answers
23 views

Apache2 Config variables not defined

I'm new to Apache2, so bear with me. I followed this tutorial to get HTTPS working with a Flask server. I keep getting the same output when I run the apache2 command: [Wed Nov 28 01:42:32.210442 ...
3
votes
1answer
65 views

Invalid command 'php_admin_value'

When I want to start Apache2 on my Ubuntu Server, I have this error AH00526: Syntax error on line 49 of /etc/apache2/sites-enabled/bookstyle.sokrator.net.conf: Invalid command 'php_admin_value', ...
0
votes
1answer
27 views

how give permission for reset apache without admin permission?

my user don't have admin permission and i do not want to give admin permission to them. how give permission that they see log and reset and change config in apache? is there apache admin group that ...
0
votes
1answer
11 views

Authenticating Apache website against WIN SERVER 2008 Active Directory

I have a quick question, maybe a noob one :D I currently have Windows server 2008 running on one of my servers, that server is the Domain Controller, running active directory with all the users. My ...
0
votes
0answers
33 views

How to add support for MS Access .mdb to PHP7 PDO in Ubuntu 18.04

I needed to be able to read a .mdb (Microsoft Access© (JET) file) copied from a Windows system on Linux, specifically Ubuntu 18.04. I searched dozens of web sites and could not find a straightforward ...
0
votes
1answer
54 views

How to stop apache2 service

I need to stop apache2 service for 3 hours during the backup time. How can I do this through crontab or similar ways... I tried with crontab: 15 14 * * * service apache2 stop But nothing happens. ...
0
votes
4answers
89 views

How to fully remove MySQL and phpMyAdmin

I am sorry if this has been posted before. I have been learning the use of MySQL and phpMyAdmin. Having followed an installation guide during an instructional course, I installed the above ...
0
votes
0answers
48 views

Home Web Server Development

I apologize if this is a duplicate question. I did not see the exact situation but I did not look too deep into the forum. I believe this is an Ubuntu issue dealing with permissions. I have a LAMP ...
0
votes
0answers
38 views

Wordpress cant connect to my database

I get to the point where i have to configure my wordpress and by that the database to which it should connect to. here is how i created the database in mysql: mysql>create database `wplocal`; ...
0
votes
0answers
38 views

SSL on subfolder not working on apache

I am having a heck of a time getting my subfolder (not sub domain) site working off of my main domain certificate. For example i have www.mydomain.com and i have www.mydomain.com/forum https works ...
1
vote
1answer
36 views

Accessing my website hosted on apache changes the port number.

Any help would be greatly appreciated. I am stuck with this issue for a long time now. Now here is the thing. I have on my ubuntu 16.04 server two vhosts, one for Nextcloud (https://mydomain.com/...
-3
votes
1answer
45 views

Getting the plain text code while i am accessing the phpMyadmin in Ubuntu [duplicate]

<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Main loader script * * @package PhpMyAdmin */ use PMA\libraries\RecentFavoriteTable; /** * Gets some core libraries and displays a top ...
2
votes
0answers
42 views

Permissions for Wordpress on Ubuntu 18.04 [duplicate]

On my web server - runnnig LAMP - I have a Wordpress installation, where I'd like to set the ownerships/permissions like this: my-username is the owner of all files while the owner group is www-data (...
1
vote
1answer
23 views

Go back to my servers IP instead of domain

So I had this server I set up a while back... made it so it pointed had a couple domains in the vhost. And I just got rid of the domains and want to use it mostly for developing stuff / a sandbox now. ...
0
votes
2answers
139 views

Unable to install mysql with Can't read dir of '/etc/mysql/conf.d/' error

I just installed the latest version of ubuntu on usb. First I run sudo apt update, then sudo apt install apache2. So far everything was fine. But when I run sudo apt install mysql-server I get this ...
0
votes
0answers
31 views

Test domain shows blank page

I just created a test domain for my laravel application. here is the steps I followed I created a config file named run.test.conf under the /etc/apache2/sites-available directory <VirtualHost *:...
0
votes
0answers
12 views

Apache2 restart returns bad message

I have 2 certificates that I'm trying to deploy onto my 2 of my apache https website. Whenever i try to restart the service with sudo service apache2 restart. It prompt for my pass phrase of both my ...
0
votes
1answer
66 views

Unable to find Apache version

I am trying to find the version of Apache that is installed on my server. I'm currently using Ubuntu 14.04.5. I have two different issues that keep occurring. When I run apache2 -v I get the error ...
0
votes
0answers
27 views

Disk full but I don't install anythink

enter image description here That are new Ubuntu 18 VPS and I only put Apache2, MySQL, phpmyadmin, java and minecraft server (~4-5GB) The last action I do is purge java 11, because it cause problem ...
0
votes
1answer
28 views

How can I make apache redrect to www subdomain?

I have the following in sites-available <VirtualHost *:80> DocumentRoot /var/www/html/mywrk DirectoryIndex index.php ServerName www.mydomain.com <Directory "/var/www/html/...
0
votes
3answers
75 views

One PHP meta-package for all common PHP packages?

Each time I create a new Ubuntu server environment I also execute: apt-get upgrade php-mbstring php-mcrypt php-curl php-cli php-gd Instead all these php-something, is there one "formal" or "...
0
votes
0answers
16 views

How to remove Codiad from my ubuntu

I was learning how to deploy websites on local system then i came to know about codiad and lamp.I first installed codiad and then went through installation of lamp.I actually didn't have any idea ...
0
votes
0answers
38 views

.htaccess problem

So on my site, my shopping cart is located at xxx.com/zc2 I use this .htaccess file RewriteEngine On Redirect /index.html https://xxx.com/zc2/ So that anyone that lands on xxx.com will be ...
0
votes
1answer
61 views

Apache is not starting automatically after reboot

I have a two fold question. I installed updates today and rebooted my VPS server running Ubuntu 18.04 LTS and LAMP. Apache2 has been installed for years and has worked without issue all this time. ...
0
votes
1answer
163 views

Can't install libapache2-mod-fastcgi and php-fpm [duplicate]

So I am trying to install these two packages. I first tried doing the following sudo apt-get update sudo apt-get install -yy apache2 libapache2-mod-fastcgi php-fpm this returned: Reading package ...
1
vote
0answers
37 views

Ubuntu Server requires service restart every few days

I'm new here and I hope you can help me out this time. I have a MySQL server which receives many requests from my other servers...daily up to 1000 requests (HTTP and remote MySQL). However, for some ...
1
vote
1answer
19 views

Apache2 does not work, but syntax is OK

I installed apache2, but it doesn't work. I also allowed it in ufw. The output in terminal after sudo apache2ctl configtest is "Syntax OK". I am using Ubuntu 16.04. What can I do?
1
vote
1answer
16 views

How to create a virtual host in other partition ubuntu 18.04?

I have a partition of /media/ramesh/Backend. I created a folder in this partition and added a virtual host as follows: Step 1: I created a conf file by this code sudo nano /etc/apache2/sites-...
0
votes
0answers
21 views

Apache authentication loop after installing NVM? [duplicate]

I installed nvm, now whenever I open a new terminal or load bash profile it continuously tries to restart apache & an authentication password prompt pops up. I can't seem to access the terminal ...
0
votes
0answers
29 views

How to add new PHP versions to mods-available Apache2

Currently running an Ubuntu 16LTS server with Apache2 installed and several PHP versions (PHP7 till PHP7.2). I use a lot of different PHP versions so I use a2enmod to switch between them. However, I ...