Stack Exchange Network

Stack Exchange network consists of 175 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 [apache-httpd]

Use this tag for questions related to the Apache HTTP server (any version, but make sure to provide Apache version numbers in the question unless not relevant). Non-apache web server-related questions should use the tag: webserver.

0
votes
0answers
2 views

apache loads wrong php file?

/var/www/html has a wordpress application and benchmark.php. I go to my website, no matter https://gqqnbig.me/ or https://gqqnbig.me/index.php, what actually shows up is the content of benchmark.php. ...
0
votes
2answers
25 views

Apache default page shows but Apache not found

In my raspberry pi when I go to http://localhost/ I see a Apache2 debian default page, So I went to /var/www/html/index.html and changed the source code to see if there were any changes in the ...
0
votes
0answers
12 views

permit ftp user to write in /var/www folder with pure-ftpd

I installed pure-ftpd as ftp server and I need to use it with apache web server. What I've done is: Created a ftp user and added to group www-data with this command useradd -d /dev/null -g www-data -...
4
votes
1answer
48 views

I have three different timezones on my Debian Linux

I use Debian 9.5.1. I used the dpkg-reconfigure tzdata command to set my timezone to Tehran. Now I have three timezones in my Linux. I execute the following three command together and look at logs: ...
0
votes
0answers
27 views

calling wget from a browser using php

My httpd is running with a daemon user. I want to do a wget using php from FTP server. When I run the php from linux server, the same downloads the required file from FTP. But when I call the same php ...
0
votes
0answers
17 views

Issues with IPv6 and Apache2

So I'm trying to set up an Ubuntu server with the web application running on IPv6 using an Internal adapter. I honestly do not know what the issue is. I've tried changing the adapter that is hosting ...
2
votes
0answers
17 views

Limitations of using “require user” multiple times in .htaccess in an Apache config? [closed]

Access to a Apache website can be controlled with a line as Require user john paul george ringo in a .htaccess file. See https://httpd.apache.org/docs/2.4/mod/mod_authz_user.html. This same rule ...
-1
votes
0answers
17 views

Redirecting both http to https as well as a subdomain

I'm trying to get SSL to work on my website, domain.com. There's a rule in the main apache2 configuration file that reads Redirect "/" "https://domain.com/" All good, things work, except my ...
-1
votes
1answer
18 views

How to create an all default LAMP stack on Arch [closed]

How to create an all default LAMP stack (with some decent port configuration, and email server to re-contact issuing clients and PHP Composer) on Arch Linux?
0
votes
1answer
14 views

Automating a php-info file creation and deletion process

How can one automate the creation and deletion process of a php info file? Automatic deletion is good in case one wants to be covered from cases it forgets to delete the file and then the file is ...
1
vote
1answer
29 views

How do I create/manage subdomains on my CentoOS nameserver with httpd to reach local running webserver from outside via SSL? [closed]

I would need some kind of workflow for my setup I took over from someone else. Lets name the headless server "example.com". named, dovecot, postfix, selinux and firewall-cmd are in place. I would ...
0
votes
1answer
82 views

Upgrade from Debian Stretch to Buster delayed apache2 and ssh services loading

I just upgraded from Stretch to Buster, and the two services apache2 and ssh delayed in loading at the boot, in some cases I had to login or to start them manually to make them work. I didn't have ...
-1
votes
1answer
21 views

Git Server Binding Directory To Port

I have a git server i have stood up. It is a basic one with all the remote repositories stored under /mygit/repo/ I can push and pull and all the other git stuff using this ssh syntax ssh:/...
1
vote
1answer
41 views

redirecting traffic via .htaccess or VirtualHost .conf fails with https on centos 7 multisite server

I have a Centos 7 server configured for multisite web hosting. One of the things I'm trying to do with this server is redirect traffic to old subdomains to subdirectories on our primary website. The ...
0
votes
0answers
9 views

set env variable apache when accessing a specific url

is there a way to take a user id sent in the http header and to rewrite it to a variable "remote_user" but only when accessing a particular URL? I'm aware of SetEnv but that doesn't do the trick I ...
1
vote
1answer
52 views

How to install multiple PHP versions in Virtualmin 6, Debian 9

By default Debian 9 comes with PHP 7, but I was interested in PHP 5 for older websites as well. I tried following/adapting this guide (not virtualmin specific). But this is the error I was getting (...
0
votes
1answer
15 views

Apache SSLCipherSuite That Avoids All DHE

I am trying to set an SSLCipherSuite in my Apache that avoids ALL Diffie Hellman (due to application restrictions). I have tried SSLCipherSuite ALL:!DH:!DHE:!ADH:!ECDHE:!EXP:RC4+RSA:+HIGH:+MEDIUM:!...
1
vote
1answer
59 views

How to enable TLSv1.3 in Centos with Apache2

I am using CentOS 5 with Apache2. Into an additional config file: /etc/apache2/conf/extra/ssl.conf I have put these lines: SSLHonorCipherOrder On SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 ...
0
votes
1answer
27 views

pacman -S apache VS systemctl enable httpd

From synthetic reading through the web on establishing an Arch-LAMP I understand that when installing Apache I should do: pacman -S apache and then systemctl enable httpd Why in the installation ...
1
vote
1answer
94 views

Arch: Is there any chance to use Apache all default for 2 or more virtual hosts?

I consider establishing an Arch based LAMP. From reading this document, it seems there is must configuration to be done just for Apache itself, not to mention MySQL and PHP. In Debian LAMP there's ...
0
votes
2answers
84 views

Apache/Nginx document root environment-variable

Apache/Nginx "default" document root path is usally /var/www/html but theoretically this could change tomorrow. Having a distro-default and communally-maintained environment variable for it (instead ...
0
votes
2answers
66 views

auth not working in apache

I was trying to enable authentication in apache . I tried the following configuration items. <Directory "/var/www/html/balancer-manager"> Order deny,allow AuthName "Restricted area for ...
1
vote
1answer
32 views

Apache 2.4 get request processing time in microseconds log

Trying to add the %D and %T format string to my Apache log to see time for request processing but apparently not able to. Here are the LogFormat directives in my httpd.conf [root@server01 admin_ad2]# ...
0
votes
1answer
42 views

LAMP DB-agnostic way to create a DB stack

Is there a LAMP-MySQL (or equivalent) agnostic way to create a DB stack that includes: DB-user and a relative password DB with the same name as of the user Setting a host for the DB (say, localhost) ...
0
votes
1answer
44 views

access forbidden (403) for localhost/adminer with apache

By trying to get adminer running under archlinux, I got into this problem. When setting up apache for adminer and calling localhost/adminer either with firefox or opera, I receive code 403 (access ...
2
votes
1answer
98 views

NanoPi M4 - RK3399: Apache2 + SSL: Large download hangs

I've a brand new setup of Apache2 running under Debian 9 (armbian on NanoPi M4). Everything works fine until I try to download a large file over HTTPS. Small files download successfully however, ...
0
votes
0answers
57 views

Centos https endless loading

I have OS CentOS Linux release 7.6.1810 (Core), Apache/2.4.6 (CentOS), Redmine v3.4.6. My site works nice with http, but I want add https support to it. But when I try use https it has endless loading ...
2
votes
1answer
55 views

Apache redirect certain url or subdomain to internal ip

I have a gitlab server next to my web server running on my home network. On my web server I run Apache2 with some domains. One of them is example.com. Now my aim is that the user receives the gitlab ...
2
votes
0answers
33 views

Apache startup error with symlinked configuration file with 777 permissions

Ubuntu virtual machine with Apache 2.4.7 I'm getting these errors: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/...
1
vote
0answers
36 views

ERROR: Module pagespeed does not exist! [closed]

trying to install mod pagespeed and getting an error Apache 2.4.29 Server Ubuntu 18.04.1 LTS dpkg -i mod-pagespeed-stable_current_amd64.deb (Reading database ... 184514 files and directories ...
0
votes
1answer
40 views

/etc/hosts file is cluttered with useless content, how should I properly use /etc/hosts ( apache2 )

I recently tried to add a URL in my /etc/hosts file, and because of many different attempts in the past, I realized I most probably have some extra lines in there which are not necessary. I have read ...
0
votes
1answer
28 views

Apache doesn't have permission to access the vbox share folder in Ubuntu 18

I have mounted a share folder (sf_test) to use as my apache root directory: drwxrwx--- 1 root vboxsf 0 Dec 28 23:42 sf_test I have added my user to the vboxsf group and I can cd in there and ...
0
votes
2answers
38 views

Multiline string replace inside markup tag

I am trying to modify an httpd.conf file, allowing override in the /var/www/html directory. For simplicity's sake, let's say it looks like this: <Directory "/var/www/html"> # Comment ...
0
votes
0answers
36 views

Script can not write into dierectory

I have configured apache web server on fedora 29 , perl script that generates web page with current NIC information (state , speed , mac , etc.) and traffic graph. Script generates the web page and ...
2
votes
2answers
140 views

How to enable or disable Apache modules in a distro-agnostic way?

I usually work with Debian/Ubuntu as a basis for Apache and recently learned that commands like a2enmod MOD or a2dismod MOD are Debian-specific. Is there a global / distro-agnostic way (maybe with ...
0
votes
1answer
28 views

How to setup phpmyadmin?

My machine is running arch linux. if I uncomment this line in my /etc/httpd/conf/httpd.conf : Include conf/extra/phpmyadmin.conf phpmyadmin takes over my document root and when I go to localhost ...
0
votes
1answer
14 views

Ensuring Alias /phpmyadmin /usr/share/phpmyadmin is frequent in all Apache virtual hosts whatsoever

I use Debian and Apache and say I have many virtual host files (above 20) and I want all of them to include this line in the end: Alias /phpmyadmin /usr/share/phpmyadmin The reason is to allow to ...
3
votes
2answers
190 views

Accessing PHPMyAdmin as installed by its distro package-index from the domain of each website

I have a remote machine with LAMP and PHPMyAdmin (PMA). Let's assume this distro is Debian/Ubuntu. If I install PMA via apt install phpmyadmin (which will make it to be installed under /usr/share/...
0
votes
1answer
20 views

What are the basic files (dirs and regular file) in Ansible-Galaxy roles? [closed]

I have an Ansible playbook for establishing LAMP environments on remote machines. Part of this playbook deals with installing Composer: - name: Install Composer get_url: url: https://...
2
votes
1answer
57 views

Is it a best practice to use Ansible-Galaxy roles in playbooks instead ansible-modules in playbooks? [closed]

I have an Ansible playbook for establishing LAMP environments on remote machines. Part of this playbook deals with installing Composer: - name: Install Composer get_url: url: https://...
0
votes
1answer
50 views

How to run apache httpd 2.4.6 with a self-signed certificate signed with an elliptic curve key brainpoolP384t1, on CentOS 7.6?

I'm trying to run apache httpd 2.4.6 on CentOS 7.6 with a self-signed certificate signed with an elliptic curve key brainpoolP384t1, but apache is not accepting this as a valid key. I ensured all ...
0
votes
0answers
42 views

Apache2: avahi_entry_group_add_service_strlst(SomeHostName) failed

OS: Debian 10 Buster, upgraded from Stretch, to this date still in testing phase. I am just checking upon how my Apache2 web server is doing and while it is starting since boot, I see some error ...
1
vote
1answer
48 views

How may I determine if `mod_mime_magic` magic loaded for `httpd`? [closed]

I cannot tell if the mod_mime_magic httpd module is loaded or being used. When I run httpd -l and httpd -M it doesn't show up in the lists, but I am not convinced it's not loaded. The package manager ...
2
votes
0answers
23 views

Modify apache module mod_substitute source code [closed]

I am interested in writing an apache module that can modify the response content. Basically I want to replace a certain string in response with something else. mod_substitute is a good contender for ...
-1
votes
1answer
73 views

How to organize /home/ such that users don't see each other's content?

Up to know, I used a sandbox server for myself only, and websites were in subdirectories of /home/www/: drwxr-xr-x 5 root root 4096 Nov 30 14:45 www |--- drwxr-xr-x 3 www-data www-data 4096 Oct 14 ...
0
votes
2answers
49 views

Is the www-data user pre-configured in Linux and Unix systems?

I personally usually use Debian based systems but I ask the following question on the entire *nix family of operating systems. Is the www-data user usually using as the Apache/Nginx already comes ...
-1
votes
1answer
366 views

Installation conflicts with httpd on Amazon Linux AMI

When installing 'yum install -y php70 mysql56-server php70-mysqlnd' on an Amazon Linux AMI server, I'm receiving these conflicts: Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1....
0
votes
0answers
14 views

Apache2 blank php pages on user directory but not in main directory

i'm making some tests on a fresh Trisquel installation, and i don't know what i'm doing wrong but the thing is this, i installed LAMP+phpmyadmin, i wrote a test.php on /var/www/html/ and it worked but ...
0
votes
1answer
59 views

httpd hogging all memory until server crash

The server in question is used for processing data into reports, it has three cron jobs which execute every minute to check the process queue and if anything is found they'll keep running until the ...
0
votes
1answer
24 views

Lightweight application to send files via browser with http

I have a server allowing traffic only on port 80 and 443. I need to upload a file to said server. Isn't there any application allowing me to upload a file to a server folder via browser?I have apache ...