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
15 views

How to redirect www to non-www https?

I have installed https on my domain. And all this cases are available of my website: http://example.com // will be redirected to https://example.com https://example.com http://www.example.com ...
0
votes
0answers
7 views

How to enable NULL SSL Ciphers?

OpenSSL 1.0.2g 01 Mac 2016 Apache/2.4.18 (Ubuntu) Ubuntu 16.04 SSLCipherSuite ALL: !ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLProtocol all –SSLv2 I would like to know on how ...
0
votes
1answer
9 views

Pointing 2 subdomain on same ip but I want it both to work in different directory

I've 2 sub domains both are pointing on same ip and server and currently pointing to /var/www/html as root but I want one of them to point in subdirectory like /var/www/html/anothersub : So I created ...
0
votes
0answers
13 views

Custom error in Apache using mod Rewrite

Hello to everyone I wanna write a custom error using mod-Rewrite regex. My idea is to redirect not allowed users to access specific URL or folder. to error message 404 or 200, default error message is ...
2
votes
1answer
27 views

How can I find the origin of a process and stop it permanently?

I have an Ubuntu system running an apache server. I have found a process cache.sh which I think might be a crypto-mining process and which is running all the time on my server consuming up to 98% CPU. ...
0
votes
1answer
30 views

How do undo chmod 664 on a folder

I am trying to setup a webserver on an ubuntu server. I followed this guide to setup a my python app and it works great until I tried to add sqlite3 database. When running it on a apache, it couldnt ...
1
vote
1answer
12 views

Not able to restart Apache2

I've been trying to start/restart Apache2 and been getting the same error over and over. Already look up in many questions or problems, but no one was able to solve my problem. Using Ubuntu 18.04 with ...
0
votes
1answer
9 views

403 forbidden error after installing virtualhost

I have a new Ubuntu installation that seems to work fine, apache runs, and i can connect using the ip adress. However, after adding a virtualhost file, im getting a 403 permission denied error. ...
0
votes
0answers
18 views

Connect to postgresql using php pdo - not working

I have Ubuntu 18.04, apache2, PHP 7.2.10-0ubuntu0.18.04.1, and PostgreSQL 10.5 (Ubuntu 10.5-0ubuntu0.18.04) running on localhost:5432. I am trying to make a PDO connection to a database. But it's not ...
1
vote
1answer
32 views

What is index.html.save file?

In my www/html/sitemane folder I have found index.html.save file. What is this file? I did not create it. Does apache has created it? For what purpose?
-1
votes
0answers
18 views

How to add css folder in apache2? [duplicate]

How i can add this into apache folder? I tried add this folder of my site but my system says I don't have access.
0
votes
1answer
28 views

How to replace Apache2's main page?

How I can change Apache2's main page to a custom page of my own?
0
votes
1answer
19 views

placed conf file in sites-avaialable, document file is there in /var/www/html, enabled site, made entry of domain name and ip in /etc/hosts

I have an aws EC2 instance ubuntu18.04. To host a site i made a conf file in sites-available, placed the document in /var/www/html, has enabled the site with a2ensite and made the host entry in /etc/...
-1
votes
0answers
16 views

LAMP and user permissions

I reinstalled lamp today because I want to build a PHP extension for a CMS. You hear, I'm new with server. But I've managed to activate all the apache modules I need and put my user in the www-data ...
1
vote
0answers
19 views

phppgadmin not working in Ubuntu 18.04

I have looked at the previous answers for this issue. I updated my apache2 and restarted it (rebooted too, old school). I made sure I had php on my machine. I looked at the apache2 error log and it ...
0
votes
0answers
12 views

How to reduce Apache memory process

I run the following command to check how much ram Apache process takes and I was shocked !! $ ps -C httpd -o rss | sed '1d' | awk '{x += $1;y += 1}END{print "Total Memory usage (KB): " x "\nAverage ...
0
votes
0answers
33 views

Amazon EC2 / Ubuntu / Restricting user to multiple folders inc. /var/www/html/

I'm trying to give access to our test environment to a contractor but our server has sensitive data on it. I've created a user (contractorsaccount), I've added the user to a new group called ...
0
votes
0answers
8 views

Adjust Apache MPM event

I have a VPS with 4 GB memory. My problem with high load Apache starts to eat memory! I'm using MPM event module with the default following settings: <IfModule mpm_event_module> ...
0
votes
0answers
20 views

My apache2 server give error when i restart my server

systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/...
0
votes
0answers
21 views

Apache2 - SSL_ERROR_NO_CYPHER_OVERLAP

I have OwnCloud set up on Ubuntu server 18.04 with Apache2, which is only accessible on my internal network. It's been working fine until today I tried to access the web interface (normally I don't ...
0
votes
0answers
16 views

elinks for wordpress is working fine, site is not running on browser, apache is working

I have hosted an wordpress site on aws Ubuntu 18.04 with domain test.com, made the entry in /etc/hosts file. elinks test.com is working fine but in browser its not working, please let me know what I ...
0
votes
0answers
44 views

LAMPP MySQL Ubuntu not running

I have an issue when I restart mysql server : via the following : /opt/lampp/var/mysql$ sudo /opt/lampp/lampp start Starting XAMPP for Linux 5.6.36-0... XAMPP: Starting Apache...already running. ...
0
votes
1answer
12 views

apache2 service is not active how can make it active

How can i made apache2 service active? when i tried to start apache2 service it gives me this error.apache2.service is not active, cannot reload.help me on this.on my localhost/phpmyadmin 403 ...
0
votes
0answers
15 views

Showing Default Apache page while redirecting request to http to https

i was trying to enabling to https request from http.when i hit https://my-domain.com its work as i expect but when i hit http://my-domain its returning apache2 default page.So i want that all the ...
0
votes
2answers
27 views

Trying to access an apache site takes me to index of/ instead of directly to the page

I have a html file (named stran1.html) in /var/www/public_html/stran1/, and a virtual host with ServerName set as my domain and DocumentRoot set as the previously mentioned path. I am using afraid ...
0
votes
0answers
7 views

how can i install php-mysql manually? php mysql is set to install manually on my system

I had install and successfully run apache2 on ubuntu 16.04 but php7.0-mysql set to manually installed. how can i install it manually now?
1
vote
1answer
50 views

phpinfo() showing blank page on ubuntu18.04

I installed phppgadmin using this tutorial. How to Install PostgreSQL and phpPgAdmin on Ubuntu 18.04 The index.html file is showing fine that comes already installed. But when I made a php file to ...
0
votes
0answers
19 views

PHP Error Reporting

I am running Ubuntu Server 14.04 (not quite ready to upgrade to 16.04 or 18.04) with the standard LAMP stack. I have manually installed alternative PHP versions (5.6 to 7.2 inclusive) and switch ...
0
votes
1answer
43 views

Apache2 Site Only Accessable at Machine's IP Address

I've got a Raspberry Pi broadcasting a wifi network, I have a 'Hello world' equivalent Python Flask application at /var/www/flask-dev. When I connect to the network on my computer and point my ...
0
votes
1answer
30 views

Permission Mysql Ubuntu 18.04

I have a problem. I install on my ubuntu 18.04.1 lamp server + phpmyadmin. And run existing site (locally). Main page working good. But all another pages return 404. I get this site from windows (...
0
votes
0answers
34 views

How to restart these services?

I've just started using Ubuntu. When I tried to use live-server for web development, I got the error Error: ENOSPC: no space left on device whereas there was still plenty of free space. I followed ...
0
votes
0answers
26 views

Tomcat not starting on Ubuntu guest OS

I have two tomcat folders - tomcat versions 6.0.9 and 8.0.3, but whenever I'm trying to run these from the terminal neither one of them is starting. My friend shared these two folders with me. ...
0
votes
1answer
10 views

Ruby on Rails - 403 Forbidden - Ownership / Permissions - DocumentRoot doesn't exist - Denied by Server Configuration [closed]

I have been so far unable to successfully configure an Ubuntu server to allow access to a RoR site which I have migrated from another server. As far as I can tell the permissions and set up are the ...
0
votes
2answers
43 views

Apache Custom error message 403

i wanna to create a custom error message in Apache conf for the Error message 403 Forbidden You don't have permission to access / on this server to appear like 404 Not Found The requested URL / was ...
1
vote
0answers
22 views

How to run Geckodriver from an external request in an Ubuntu server

I have a Flask application running in an Ubuntu 16 server with Apache. It uses to WSGI to run. The main goal of this app is to scrape info from a 3rd website. To achieve this it uses Firefox and ...
1
vote
0answers
7 views

EC2 instace setup with RDS

i have created and EC2 instance and select Ubuntu 16.04. Then setup a RDS instance. i have also installed phpmyadmin on EC2 and that is working fine with localhost and credential i have provided. ...
0
votes
0answers
21 views

After installation of FastCGI - PHP code is not being executed, instead code shows on the page

My Ubuntu is 14.04 and the Apache version is 2.4.7 I wanted to enable FastCGI on my machine. I used JDawgg's answer here : instructions to install FastCGI Unfortunately , PHP code is not being ...
0
votes
0answers
19 views

UBUNTU 16.04 — KIll -INT command isnot working if I start a process through GUI

I have been trying to start a process through GUI and when I tend to stop it by KILL -INT pid . It won't stop and the SIG_IGN is being sent. On the other hand if I start the process by running a cgi ...
0
votes
0answers
8 views

PhpPGAdmin stopped working after upgrade to 18.04

I've recently upgrade my development PC from Ubuntu16.04 to 18.04 and although Postgres continues to run, I get the following in my browser when trying to access phppgadmin printHeader('', null, true)...
0
votes
1answer
15 views

apache2 woven deeply into ubuntu18.04

How can I get rid of apache2 (without totally removing it)? I found there is /lib/systemd/system/apache2.service thus starting apache2 at reboot (whether /etc/init.d/apache2 exists or not). Is ...
0
votes
0answers
27 views

Apache server ERROR in restart

I have tried install SSL to my google cloud after completion of process I am not able to restart Apache. Someone help me to fix the error error show here sudo service apache2 restart Job for apache2....
0
votes
1answer
45 views

user in 'www-data' is unable to mkdir in Apache2 with Composer

my objective is to install Magento with Composer composer create-project --repository=https://repo.magento.com/ magento/project-community-edition magento2 Installing magento/project-community-...
0
votes
1answer
27 views

Issues installing Apache2 on ubuntu 18.04

i'm a new Linux user and i'm trying to install Apache2, but when i enter this command systemctl status apache2.service i am getting this error ● apache2.service - The Apache HTTP Server Loaded: ...
1
vote
0answers
8 views

External access on Apache2

I want to enable external access on Apache 2. This is the scheme I have: Domain -> Subdomain -> Mikrotik -> Apache2. I used NAT on Mikrotik. On both, Mikrotik and Apache, I used the port 9191. And,...
0
votes
1answer
14 views

Web app installation wizard can't write into data/config.php file

Informations below may allow to track why the installation wizard returns: “Cannot write into data/config.php file. Please delete this file“. MATERIAL SERVER : Linux distro Ubuntu 18.04 remote VPS / ...
0
votes
0answers
27 views

phpmyadmin showing php code 18.04.1 LTS

I am attempting to setup phpmyadmin on my Linux Ubuntu 18.04.1 LTS Dedicated Server but seem to be running into an issue of the page displaying plain PHP Code, i have looked on google and attempted ...
0
votes
1answer
50 views

removed apache and its config file from ubuntu, browser still shows default page

I have removed apache from my ubuntu 18.04 including all its config files using apt purge apache2. Browser still show default page on doing localhost:80. Please explain ?
0
votes
0answers
14 views

How to force CRON jobs to use chosen PHP verion

I'm using Ubuntu 16.04 with Vestacp and few days ago I installed and using PHP 7.2 by following this tutorial. Now my server has 2 different PHP version (7.0 and 7.2). I have enabled PHP 7.2, however ...
1
vote
1answer
32 views

Apache2 HTTP Ubuntu Won't Restart

Hey since I have attempted to install SSL onto my site I am unable to restart without removing it from the config. I am running Ubuntu Ubuntu 18.04 x64 Changes for SSL: DocumentRoot /var/www/...
1
vote
1answer
30 views

I deleted Apache and I can't reinstall it

It's very important because my server is my shop and my job. I had a problem when I tried to install VirtualHost then I tried to reinstall Apache, however I have some problems because it seems my ...