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). Generic webserver related questions should use the tag: webserver. Few of the other Apache related projects have their own tag, don't use ...

learn more… | top users | synonyms

0
votes
1answer
463 views

Check if Apache is Installed in Amazon Linux AMI

How can I check if Apache is installed in my Amazon Linux AMI, which is based on RHEL 6? In Ubuntu, I use: dpkg --get-selections | grep apache But that doesn't work in this case. Note, I need to be ...
1
vote
1answer
24 views

Interactive bash script

I'm writing a script that shuts down the Apache service, performs a function, and turns it back on. I'd like to get some type of interactive confirmation for each process. I'm not familiar with ...
1
vote
2answers
126 views

Why does Kali Linux expose httpd on port 3000?

I scanned my local network and found that Kali linux was exposing apache2 on port 3000. Its a pretty much vanilla installing running inside Virtualbox on an OSX host Is this there by default and why ...
1
vote
2answers
49 views

Apache access.log getting updates after renamed

I have a file on my Ubuntu system called access.log that file get all my errors on my website. The problem is that file its to big right now so I renamed for access-old.log and create a new file ...
0
votes
0answers
78 views

LAMP on Knoppix

I am trying to use the setup at this link to set up a LAMP server on my Knoppix USB drive. I have seen in multiple places that Knoppix comes with Apache, MySQL, and PHP; however I am unable to find ...
1
vote
1answer
285 views

Many domains using a single IP address with BIND 9.7

I'm in the middle of migrating and configuring a web server with two domains (with one more in the future), and no sub-domains so far, but using a single IP address (for now). This type of ...
0
votes
0answers
63 views

Proxy pass on Apache redirects instead of proxying

I am trying to proxy an http service running on the same machine using apache proxy pass. When I try to connect to my subdomain.domain.com, I am redirected to 127.0.0.1, which is the address that I am ...
1
vote
1answer
2k views

Fedora 22 - Failed to restart httpd.service: Access denied

I want to start web development and I was trying to install LAMP. I installed Apache using this tutorial but the command they give to start the apache server fails: systemctl start httpd.service ...
0
votes
0answers
44 views

What is the matter with my apache?

Today my apache2 suddenly didn't run. cat /var/www/html/info.php <?php echo phpinfo(); ?> No output, no error info at all, no result when to input http://127.0.0.1/info.php in Firefox. cat ...
0
votes
1answer
102 views

URL rewriting and internal links on Apache

I have a 2.2 Apache with the weblogic plugin enabled, which it simply redirects all the requests to the application server. Basically, when I call the page http://myip/blabla/home.page, it is a page ...
0
votes
1answer
151 views

Sudo Apache, with command line ? (not visudo)

I have visudo-edited /etc/sudoers this way: User_Alias APACHE = www-data Cmnd_Alias FIREWALL = /sbin/iptables, /sbin/ifconfig, /sbin/route APACHE ALL = (ALL) NOPASSWD: FIREWALL (To allow php ...
0
votes
1answer
131 views

how to setup VPS domain registered via different service?

I have a domain that was registered with network solutions and my vps is hosted via hostWinds. I got a cheap/budget VPS because I'm a developer by trade and would rather know how to set all this ...
0
votes
1answer
76 views

ubuntu 14.04 apache 403 error befor logging in

i have an ubuntu Desktop version with LAMP SERVER installed on it when i restart the server and try to access it over the network i get Error 403 forbidden but after i login to that system from ssh or ...
0
votes
0answers
11 views

Virtual Hosts: Sites-available/myfilename.conf structure

I had the url http://mydomain1 running locally on apache. Now I want to make http://mydomain2 accessible as well. I added the respective Tags in the myfilename.conf <VirtualHost *:80> ...
1
vote
0answers
158 views

Trying to figure out how to install Apache for linux

Forgive me for being an amateur at all of this. I spent more than a couple hours trying to figure this out, and as a beginner it's getting frustrating. I'm following these set of instructions from ...
1
vote
1answer
54 views

Should I use hardlinks for my “sites-enabled” folder instead of softlinks?

Every article I find about web servers suggest creating a sites-available and sites-enabled directory within apache/nginx/etc. Then, using symbolic (soft) links, create a link from the available to ...
0
votes
2answers
480 views

How to configure Apache init scripts, after compiling and installing the sources?

I installed Apache using this script https://gist.github.com/Benedikt1992/e88c2114fee15422a4eb The system is a freshly installed CentOS 6.7 minimal system. After installation I can find the apache ...
0
votes
0answers
95 views

SSL installation on apache2 / debian

So I have a debian wheezy installation where I someone started to install SSL but gave up and so I'm here to finish the task. problem - when accessing with http (port 80) - all is working. When ...
1
vote
1answer
72 views

Run program in readonly mode

I have an apache running under user apache with a lot of permissions (rw to multiple directories). Now I want to let some users upload programs/scripts via webform and execute them, with php function ...
0
votes
0answers
89 views

How to return 404 status code on existing file with Apache

Basically what i want to do is to return 404 for a file that exists. <FilesMatch "(xmlrpc\.php)"> Require all denied </FilesMatch> Is what I'm currently using, but I'd like to send ...
0
votes
1answer
33 views

Does Basic “hello world” run as CGI.?

My question is simple. I install apache on centos and create a file as index.html and just add the content of "hello world". Now, when I access my web it display the "hello world" quote. My question ...
0
votes
1answer
175 views

Apache VirtualHost redirect 302 (cyclic link)

I seek some wisdom, so please help... I have one VM acting as router/web server/dnsmasq server on IP: 192.168.100.1. And I have other machine acting as client. Server has IPTables rule to redirect ...
0
votes
0answers
63 views

umask issue with apache phusion passenger

We have a rails application where a unix account will write to directory belonging to another unix account. I have added both the accounts to a common group. The new file which is getting created does ...
0
votes
1answer
24 views

CentOS Apache Configuration

In the last couple days I have been setting up a Rackspace CentOS-based webserver which I took over from another developer. Amongst other things, I noticed that in the httpd directory, there were two ...
1
vote
0answers
22 views

Correct permissions for a cache directory

I have setup a PhalconPHP project on an AWS EC2 instance. To get thinks working I gave the cache directory 777 permissions. I realise this is bad practice - what would be the correct permissions for a ...
2
votes
1answer
30 views

Help with apache website access

I'm a newbie in Unix so please be clear. I have to install and configure Apache in Debian, it all works fine, and in one point I have to use Lynx to show it works. I have edited the configuration page ...
0
votes
0answers
275 views

Django WSGI setup causing permission denied issues

I'm new in the world of Django. I've been working on setting up WSGI to serve my Django project. It is working fine on my personal machine but on the server I'm having a hard time to setup. I'm ...
1
vote
3answers
472 views

Check services running on the server and restart them if they have stopped?

I am trying to write a python script which shows me the services which are running on my server. The thing is that mongodb keeps going down on the server and each time it happens I have to manually ...
0
votes
2answers
472 views

Cannot Access LAMP Web Server on Ubuntu Server 14.04

UPDATE: So it seems that I can access the website from computers outside of the LAN, it's when I try to pull up from any computer on the same LAN as the server that I get an issue. From what I've read ...
0
votes
1answer
35 views

Install wordpress package always require apache?

Debian's WordPress package depends on apache|httpd, lighttpd also provides httpd, but when I try to install WordPress, apt requires me to install apache2! What I should do? I want to use only ...
0
votes
1answer
440 views

Apache behind proxy: bypass Auth Basic for some ip

I need bypass basic auth to some ip, Apache is 2.4 and is behind haproxy, i have inserti this into Document Root section: <Directory /path/to/webroot> AuthUserFile /etc/apache2/.htpasswd ...
1
vote
0answers
290 views

Vagrant + CentOS 7 - Apache fails to start, I don't see an error

I'm spending some time trying to provision a Vagrant box running from a CentOS 7 base box. After a fresh install of Apache, I am able to hit the server over http and restart the server, but as soon ...
0
votes
1answer
544 views

ispconfig PHP not parsing on apache2 virtual host

I have trouble installing ispconfig 3 on my (L)Ubuntu 15.04. I can fully install ispconfig but I can't reach the website when viewing the virtual host of apache2. I can open ispconfig from https://...
2
votes
3answers
462 views

`tail -n 40 /var/log/apache2/error.log` without `sudo`

Many times during the day I need to inspect my Apache log: sudo tail -n 40 /var/log/apache2/error.log I then have to provide my password. It's a clumsy workflow, so instead I am adding PATH=$HOME/...
1
vote
2answers
536 views

Wildcard SSL certificate does not work with naked domain

I have deployed a wildcard certificate (Comodo PlatinumSSL) for *.domain.com on Apache/Ubuntu 14.04. Everything works if the client visits https://www.domain.com but https://domain.com throws up this ...
2
votes
1answer
501 views

Generate Private Key for Existing SSL Certificate

I have been provided with a Comodo SSL certificate to deploy with Apache/ModSSL on Ubuntu 14.04. All I got was an email with links like this. I was not provided with a private key. It appears the ...
0
votes
1answer
138 views

Reinstalling Apache on Raspberry Pi

I installed Apache 2 on my Raspberry Pi but was not able to configure it properly. I then tried to remove it and install again. To remove it I used the command sudo apt-get purge apache2 and then ...
0
votes
0answers
374 views

Apache CGI doesn't work?

I installed Apache2 to use dwww for browsing docs. Initially it works ok. A second time (after I've rebooted the PC), Apache is still enabled: when I type localhost in the browser, the default page ...
0
votes
1answer
513 views

FreeBSD: Can't load libphp5.so or read php files

I'm having a bit of a trouble configuring my apache server on freebsd. I installed apache24, php5 and php5 extensions, moved my files over to ./data. I made some changes to httpd.conf: LoadModule ...
1
vote
3answers
4k views

How to change the document root directory in debian8.1?

My apache2 installed on the debian8.1. In the configuration file /etc/apache2/apache2.conf <Directory /> Options FollowSymLinks AllowOverride None Require all denied <...
0
votes
1answer
32 views

Where do I put the information for Django in Apache2 in Ubuntu

The Django documentation tell me to put WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py WSGIPythonPath /path/to/mysite.com <Directory /path/to/mysite.com/mysite> <Files wsgi.py> ...
0
votes
2answers
2k views

Why don't I have a httpd.conf file in /etc/apache2?

I installed Ubuntu 14.04 LTS. Ubuntu seems to come with Apache2 but in the apache2 folder there no httpd.conf? Why is the file lacking and what do I have to do to create it?
0
votes
1answer
5k views

Why am I denied access to phpmyadmin?

Here is what my phpmyadmin.conf file looks like: # # Web application to manage MySQL # <Directory "/usr/share/phpmyadmin"> Order Deny,Allow Allow from 192.168.0.2 Allow from 192.168.0....
1
vote
1answer
76 views

Apache Tomcat and Httpd - Sharing common web publication folder - CentOS

Suppose: The Httpd's Web publication folder is assigned according: Edit /usr/local/httpd/conf/httpd.conf file: DocumentRoot "/usr/local/WebFiles/Html" <Directory "/usr/local/WebFiles/Html"&...
0
votes
0answers
57 views

RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P]

What is the full meaning of following line - RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P] There are three application both running by python on ubuntu 14.4. they are visible as below link IP:...
0
votes
1answer
29 views

Apache autoindex: turn off hyperlinks?

Is it possible with apache autoindex to have it display the file listing in a directory, but not have the items hyperlinked?
0
votes
0answers
192 views

Use sudo in apache with SELinux

I am using CentOS 6.5. using Apache, I want to use sudo in exec. It works when SELinux stopped. how to configure SELinux to permit it. The php script <?php exec('sudo -u newuser ls /',$output); ...
0
votes
0answers
100 views

security2_module module for apache is causing the “Forbidden You don't have permission to access / on this server” message

I installed the security2 module to my apache server by adding these following lines to my httpd.conf: <IfModule security2_module> Include crs/owasp-modsecurity-crs/modsecurity_crs_10_setup....
1
vote
2answers
232 views

how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?

I have an Apache webserver. I have some PHP scripts on it. Scripts are run as the user www-data - it is as the user that runs Apache. I want to configure Apache so that PHP scripts are run with ...