The term web server can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver web content that can be accessed through the Internet.

learn more… | top users | synonyms

9
votes
1answer
4k views

Why is lighttpd saying “unknown config-key: accesslog.filename”?

I have created a simply vhost on Lighttpd web server and put these lines on the .conf file. server.errorlog = "/var/log/lighttpd/error.log" accesslog.filename = ...
8
votes
1answer
7k views

How can I start the python SimpleHTTPServer on port 80?

I am using this command on Ubuntu but it is starting on port 8080 and I don't have another server running so I'd like it to start on port 80. I saw ways that you could set up a bash script to do ...
7
votes
2answers
2k views

Ubuntu vs Debian for server

What would be a better choice for a web server, Debian or Ubuntu? I mainly use Python & PostgreSQL with Nginx and sometimes PHP & MySQL. What are pros/cons of each?
6
votes
2answers
182 views

With which user should I run web servers, redis & mongodb?

On this VPS there are three users: root, another_one, nobody. All webserver files, configs, &c. are owned by root. However, I'm in doubt for what regards running things. If I use root for the web ...
6
votes
3answers
363 views

Why are web servers traditionally started as superuser?

Thinking about a future web server setup, it struck me that for some reason web servers usually start as root and then drop certain rights (setuid) for the worker processes. In addition there is often ...
6
votes
1answer
193 views

Does fail2ban offer any additional protection to SSH if password login is already turned off?

I’m setting up a Debian VPS on Linode to use as a public web server, and I’m following their security suggestions. The last suggestion they make is to install fail2ban, to avoid dictionary attacks on ...
5
votes
2answers
8k views

Installing Debian without GUI for a web server

I'm unfamiliar with Debian (obviously), so I downloaded the live ISO thinking it might help me out. From the live GUI, I doubled click on the install icon on the desktop and proceeded - it gave me a ...
5
votes
3answers
5k views

How do I create web pages in my home directory and have the web server serve them in my web browser?

I have recently installed the Apache web browser in my Debian Squeeze (using command tasksel and selecting [ ] Web server). Now I get it to start via sudo /etc/init.d/apache2 start and then I go to my ...
4
votes
4answers
660 views

Help me choose the right distribution for learning and hosting web apps

I'm coming to Linux from the Windows world, and I want to learns the ins and outs of the system in order to make it my primary day to day work and hosting environment. I'm pretty much a complete ...
4
votes
2answers
836 views

Openstack for home cloud hosting

I am experimenting with a couple of technologies that I soon may have to use at work. So for now, I was thinking about duplicating the environment which I may have to create for my office at home so ...
4
votes
3answers
940 views

How can I secure an OpenBSD-based Apache webserver?

I have an OpenBSD server that has a running webserver (the built-in apache web srv). How can I harden this setup? I want to only server static html files, no php, no sql.
4
votes
1answer
505 views

Quick way to host a webserver on localhost

I'd like to make the contents of a folder available at http://localhost:PORT/, temporarily. A very basic http server. I already know about, $ python -m SimpleHttpServer or ( this seems like the ...
4
votes
2answers
350 views

Real-World Use of TCP_DEFER_ACCEPT?

I was perusing the Apache httpd manual online and came across a directive for enabling this. Found a description in the man page for tcp: TCP_DEFER_ACCEPT (since Linux 2.4) Allow a ...
4
votes
1answer
824 views

How to configure permissions to allow apache to securely have access to a file in a shared environment?

This is a follow up question from my previous, but I felt it might be more Linux based. http://serverfault.com/questions/414207/how-to-set-linux-permissions-to-allow-apache-to-have-access-to-a-file ...
3
votes
4answers
511 views

How can I improve nscd's cache hit rate?

My Goal: Let nscd maintain a fairly large DNS cache in excess memory since I have it available. Description: I have a webserver that has a broadly dispersed but high-repeat user base. It has plenty ...
3
votes
1answer
145 views

Apache Request Hangs For 2 Minutes Exactly

I am experiencing some odd behavior with apache. I have requests that are hanging for exactly two minutes. The request could be one file one time, and then a completely different file another time. ...
3
votes
1answer
393 views

PID file not accessible after update of nginx

After I removed the version 0.7.x which was delivered by the Debian standard packages, I installed the version 1.4.1 of nginx by source. It is possible to start nginx with service nginx start and I ...
3
votes
2answers
1k views

How to install Cherokee web server on Debian Wheezy?

I'm trying to install Cherokee webserver on Debian Wheezy. All the docs and websites that I've visited suggest that apt-get install cherokee will do it, but when I do that, I see: $ apt-get install ...
3
votes
3answers
2k views

How to host an intranet website inaccessible outside the LAN?

I am a Linux/Unix noob, so please bear with me. Here is my situation: I have a server (Debian Squeeze) on a LAN. I have installed Nginx web server on it. The server has Internet access to download ...
3
votes
3answers
5k views

How do I fix the error 403 I am getting with XAMPP while I am using mod_userdir?

I am running Arch Linux and I decided to use XAMPP so I can create and test web pages. Anyway, I followed the instructions given in the site and extracted it to /opt/lampp and I also uncommented the ...
3
votes
1answer
78 views

New webserver: What all user accounts should I create and permissions to provide for

This is a followup on my question here. I am setting up the first webserver and am fumbling with what user accounts to create and permissions to provide for better security. Below is what I have. ...
3
votes
1answer
452 views

How to access my Mageia web server VirtualBox guest from my host system web browser?

I have installed and setup a guest Mageia 2 on VirtualBox which I plan to use as a development web server. My host is Windows 7 (64-bit) and I want to access the web sites from this host web browser. ...
3
votes
2answers
337 views

Trying to create tunnel to mysql through SSH

Im in a bit of a bind here. I have a client that want's me to set up his website, but he runs the server w/ SSH and CentOS 6.2 as it's OS. Now, I'm trying to add the sql server on Mysql Workbench for ...
3
votes
1answer
132 views

Give permission to view files

I am new with servers and I started learning about Cloud servers. My server has Debian. I installed apache, php, and vsftpd and I added users with adduser <user>. Then I gave permission: ln ...
3
votes
3answers
3k views

How to configure permissions to allow gedit, apache, and an IDE play together?

I'm using plain Ubuntu Desktop 11.04 and installed my lamp stack using lamp-server. I am trying to use Netbeans as my IDE. Currently, all virtual hosts are being run from /var/www/vhostname -- but as ...
3
votes
1answer
366 views

Getting started with Slackware as a web server

I'm wondering what would be the path for an Arch user to get into slackware hosted on a VPS intended to use as a web server? I like the approach that Slackware takes (like Arch), and the fact that so ...
3
votes
1answer
349 views

Simplest way to set up multiple subdomains to separate VMs running on single host

Problem: I´m planning to set up several virtualized centos, rhel or ubuntu guest machines on a single centos host server (most likely using KVM). Each guest VM is running an instance of a webapp + ...
3
votes
1answer
2k views

Webserver for Embedded Linux [closed]

I am building an ARM based embedded device running embedded linux having a web based interface and I need a webserver running on my device. At maximum it will get 50 requests at a time. I have on ...
3
votes
2answers
571 views

Installing php-cgi under Ubuntu for Cherokee web server

I have set up Cherokee web server on my server, and want to enable PHP and MySQL support for applications like Wordpress and phpBB. I have tried running these commands: sudo apt-get install php5 ...
3
votes
1answer
470 views

How to access web server running on Palm Pre from another machine?

I have a Palm Pre, and I've installed my webserver on it, it listens on port 8080. It works, when I open 192.168.1.104:8080 on the Pre's browser (that's the IP address of the device, I've failed with ...
2
votes
4answers
488 views

Creating a public document directory for a normal user

We usually see personal web pages like http://a-site.com/~someone/, in this case, "someone" is a user of "a-site". How to enable this by default, so whenever we add a new user "foo", then ...
2
votes
2answers
289 views

Disadvantages to having www-data able to log in

I run a tiny web server basically just for hosting small data projects and files. This server has a public IP address. I would like to be able to FTP in and upload files directly to /var/www/*, and ...
2
votes
2answers
728 views

Moving a root directory to a separate partition

I'd like to create a new partition and move the contents of the /var directory to it for the security reason of having /var/www and other subdirectories "mounted" with nosuid, noexec, and nodev ...
2
votes
3answers
619 views

Linux program running on Ubuntu machine but not on Unix webserver

I've downloaded the command-line program "Whitaker's Words" which was available for Linux as well as Windows etc. There is a main program named words. I tried to execute it on my Ubuntu (11.10) ...
2
votes
1answer
235 views

Run an application under Tomcat

I have an application that needs to run under Tomcat. I have installed Tomcat but I don't know where can I put the directory of the project.
2
votes
3answers
142 views

Linux advice for datalogging machine

I've been asked whats the cheapest/easiest/most reliable way to use Linux as a webserver/mysql DB machine. Is it going to be buying a really old PC and putting Linux on it or what i'd rather do is get ...
2
votes
4answers
76 views

Keeping my production webserver updated

I have a production webserver (CentOS 6.5) and I just wanted to know how do I keep this updated interms of security updates and stable. For example, is it safe interms of not breaking anything on the ...
2
votes
1answer
72 views

How to copy a public key to your server

I was trying to figure out how to add a new SSH key to my amazon server - I found this question and answer How do you copy the public key to a ssh-server? However I am so new to Linux/Unix and I ...
2
votes
1answer
342 views

“error: no such device” at boot in Ubuntu Server 11.10 with Raid1

I have a configuration of 4 HDD's as Raid1 2 pairs of 2 HDD's. First Raid1 pair is for system, so I just made an 40GB space for swap, and the rest of it for the root, the second pair of Raid1 is for ...
2
votes
2answers
909 views

How can I make a process I start during an SSH session run after the session has ended? [duplicate]

Possible Duplicate: Keep SSH Sessions running after disconnection. I have a process which is basically a web-server, I start it during an SSH session. However, when I leave the session (by ...
2
votes
1answer
266 views

How to add another domain to my chrooted named server

Firstly I successfully have a domain working in a chroot named. There are files in /var/named/chroot/var/named called mydomain.com.db and named.local and named.root. Also in /var/named/chroot/etc ...
2
votes
1answer
136 views

How to properly setup user/groups/permissions for a web server?

I spent all day figuring this out, but without success, so hopefully I can get some help here: I have Ubuntu 13.10 VPS server with nginx, PHP 5 and MariaDB installed. I created custom system user ...
2
votes
1answer
1k views

Configure Glassfish http-listener to Port 443/ 80

I want to configure the http-listeners in Glassfish 3.1.2.2 Build 5 under Linux. I changed the settings for the http-listener-1 to the port 80 and the settings for the http-listener-2 to the port 443. ...
2
votes
1answer
334 views

Specific directory permission for one user using sftp

My web server structure looks like this: /Home/User/Public_Html/Website_one /Website_two /Website_three/Directory_one ...
2
votes
2answers
277 views

Web front-end to find/grep/ack

In my lab, we are trying to build a web that allows the user to enter queries for find, ack, grep on a specific directory. The web would return an HTML with a table of a list of clickable files (click ...
2
votes
1answer
3k views

netcat in shell script giving invalid connection

I have a shell script that uses netcat to listen to localhost on port 1111 for web requests. Every time I try accessing localhost:1111/index.html for example I get: invalid connection to [127.0.0.1] ...
2
votes
1answer
304 views

How can I monitor the load of a php script on a server?

We've got a website on our dedicated server which seems to be causing problems. Recently it has been crashing our dedicated server - it's very annoying. It will crash at random times. The tech ...
2
votes
1answer
118 views

Permission Advice for Webserver

The Linux box I'm managing is used mainly as a web server. The owner of a site wants to give a new user access to the site so that they can do some work on it. I've created the user account (vinod) ...
2
votes
1answer
245 views

Fedora 15 doesn't automatically launch the browser when server starts up?

When I start up the ring jetty server, Fedora 15 doesn't launch the browser as it does in Fedora 14. Instead, it launches a new window in which I couldn't see the address bar and other stuff. ...
2
votes
1answer
45 views

Persistent script to check if my webserver work with low budget vps?

I have a low budget vps and they constantly change a lot and my webserver is often unable to reach. Is there a shell script that is persistent and can check my webserver is running and if not make it ...