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
0answers
69 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 ...
3
votes
1answer
166 views

No packages Apache and mod_wsgi3 have been found in the repositories

I'm trying to instal Apache24 and mod_wsgi3 to my FreeBSD VPS (droplet) with this command: sudo pkg install bash ap24-mod_wsgi3 py27-virtualenv mysql56-server but apparently 'ap24-mod_wsgi3' has ...
1
vote
1answer
257 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
54 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 ...
0
votes
2answers
43 views

Domain only for web server

I have a domain which i want to point to my server. But i don't want to allow other people to use this domain to reach the server, only specific ports on the server (web server, so port 80). So if ...
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
40 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
2k views

Apache won't restart after configuring Virtual Hosts

I am trying to make a web server, but after adding the virtual hosts config, apache won't restart. It had several errors but I've managed to fix most of them. Now I don't know what is happening ...
0
votes
1answer
118 views

Calling php function from /var/www/folder (as www-user), which is located in a file in /var (or any folder) (with root permissions?)

I wrote a script which "walks" through /var/www/xyz and scans folders and more. The folders are all 'user-bound', so the permissions for a single folder there are set to the specific user. Running ...
0
votes
1answer
96 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
145 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
119 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
65 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
10 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
147 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
51 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
419 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
82 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
68 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
81 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
32 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
155 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
59 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
23 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
19 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 ...
0
votes
2answers
667 views

Deny access to subfolder and file with .htaccess

I need to deny access to configuration files under some subfolder. Currently I have this rule but it doesn't work: <Files ~ "((foo|bar))$"> Order deny,allow Deny from all </Files> ...
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
267 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
397 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
458 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 ...
-1
votes
1answer
427 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
280 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
501 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 ...
2
votes
3answers
450 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 ...
1
vote
2answers
463 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
388 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
28 views

Apache2.4- how to serve file as html

I have an apache2.4 server. On some page, I have a link to a log file. I would like to show the file content in a browser when the link is clicked, rather that serving the file do download.
0
votes
1answer
125 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
357 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
473 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
29 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
4k 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 ...
1
vote
1answer
75 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 ...
0
votes
0answers
56 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 ...
0
votes
1answer
28 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
173 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); ...
1
vote
1answer
7 views

Getting htpassword for Red Hat

yum install httpd-tools doesn't work for me because of some admin privileges or firewall issues. I also tried some httpd-tools rpm (from this page ...