A web server is a program that responds to network requests over the HTTP or HTTPS protocol.

learn more… | top users | synonyms

123
votes
6answers
218k views

How to know what program is listening on a given port?

I suspect a program is listening on port 8000 on my machine. When I run the following command, I get that error: > python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] ...
108
votes
8answers
52k views

How to avoid using sudo when working in /var/www?

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.
96
votes
7answers
177k views

Whats the simplest way to edit and add files to “/var/www”?

Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www I gave myself administrative ...
59
votes
6answers
101k views

How do I copy files that need root access with scp?

I have an Ubuntu server to which I am connecting using SSH. I need to upload files from my machine into /var/www/ on the server, the files in /var/www/ are owned by root. Using PuTTY, after I log ...
56
votes
5answers
29k views

How to easily start a webserver in any folder?

I'm looking for a relatively painless way to launch a web server with document root in any folder I specify (or better yet, where I'm launching). I often try out new things like JS frameworks or so ...
30
votes
0answers
25k views

How to setup a Git server? [duplicate]

I am trying to setup a Git server could. Can anyone tell me how to set up a Git server, so that client machines can connect to that server and make use of Git version control for their projects... ...
24
votes
3answers
53k views

How do I access Ubuntu server running in VirtualBox from outside

I have installed Ubuntu Server 12.04 LTS on my laptop via VirtualBox. I have installed LAMP, OpenSSH, Mail server. As I logged in, I ran ifconfig. It gave me the inet address as 192.168.0.3. So, ...
18
votes
7answers
13k views

Should I symlink my /var/www directory to my home?

I have just installed Ubuntu Server 10.04 with a LAMP setup. I want to host a website there but I'm not sure which is the best way to get/edit my files on the server. Googling provides many options ...
15
votes
8answers
95k views

500 OOPS: vsftpd: refusing to run with writable root inside chroot() Keep user jailed

Before you close this out to repetition, I have been researching all of the proposed solutions to this bug and so far I have been unable to keep a FTP user jailed to their website directory. While I ...
15
votes
1answer
14k views

Start MySQL on Startup

I installed MySQL, and changed the configuration so the databases are stored on a separate hard drive. In the process MySQL has stopped starting up automatically. When I start the computer, I need to ...
11
votes
1answer
531 views

I've inherited a dangerously out of date server. How do I plan to safely upgrade it?

Apticron runs nightly on the box and is telling me that I have about 150 updates that need to be made. The server is running quite a few important services with no true backup so I'm scared to just ...
11
votes
2answers
14k views

“allrequestsallowed.com”… Hack attempt?

I have many attempts on my (small, personal and absolutely unimportant) web server, and apache and fail2ban usually do their job right. But there's a log entry that worries me: xx.yy.www.zzz - - ...
11
votes
2answers
28k views

How to make Jetty webserver listen on port 80?

I would like to use Jetty as a webserver. I have edited the configuration file at /etc/default/jetty and set: # change to 0 to allow Jetty start NO_START=0 # Listen to connections from this ...
10
votes
6answers
80k views

Change XAMPP's htdocs web root folder to another one

I'm trying to change the XAMPP's web root default directory /opt/lampp/htocs to another one like /home/me/Dropbox/public_html without success. I've edited the file /opt/lampp/etc/httpd.conf # old ...
8
votes
3answers
647 views

Remote administration of a server?

I'm going to install a ubuntu server to provide email, ftp and maybe webserver services too. I dont want to install a gui for the server, but I'd like to administrate it remotely. I was thinking in ...
8
votes
5answers
9k views

Recommendation of web server admin control panel (free, open source, deb package)?

I'm looking for: a safe/secure web admin control panel for a web server preferably free and open source in official repositories or at least with regular updates and an easy way to update to newer ...
8
votes
2answers
686 views

Can I use a desktop install as a server?

I'm new to Linux and Ubuntu is my first distribution. I have chosen Ubuntu because I want to learn more about Linux. I'm under time constraints and need to setup a server as soon as possible. I have ...
8
votes
3answers
2k views

Recommended workflows for Apache virtual hosts?

I do a lot of local web development work on my Ubuntu machine, and I'm constantly setting up virtual hosts in Apache. I don't need to do hard core server management, but I am getting tired of the ...
7
votes
1answer
30k views

How to install icinga on Ubuntu 12.04 & Monitor remote host?

How to install latest icinga & icinga-web on Ubuntu Server 12.04 & How to monitor remote hosts ?
7
votes
3answers
13k views

HTTP(S) based file server

I've got a server running Ubuntu 10.04. I've already gotten openssh for ssh and sftp on it. I've been looking for a web-based (http, or preferably https) file server, perhaps a web-front-end to an ...
6
votes
3answers
16k views

Is it easy to install Apache web server on Ubuntu desktop?

So I have decided to build a Ubuntu computer, for now I am going to dual boot with Win7, and then install apache web server. Figured I would give the whole web thing a try. Did some searching but ...
6
votes
1answer
269 views

If a company is using ubuntu on its servers/dektops, does it have to pay?

a friend of my friend has started a small firm and given me the responsibility to erect all the IT infrastructure required? I'm basically a windows guy that too on the developer side. But recently I ...
6
votes
2answers
26k views

How to get apache to serve a site via VirtualBox?

This tutorial taught me how to create an Ubuntu Server (12.10, 64-bit) VM in VirtualBox on a Windows 7 host machine, install Apache and have it serve a site from a dummy domain accessible via the host ...
6
votes
1answer
4k views

How do I set up an Ubuntu server as a secondary DNS

The company I now work for specializes in web development. They are currently selling clients packages where they develop web applications for them to help automate certain business tasks for them. ...
5
votes
4answers
3k views

Is Ubuntu Server only available with the command line? [duplicate]

One day my company is going to need a server, and I like Ubuntu since it has the least amount of viruses out of all the OSes (I think), but when I look at the Ubuntu Server it only has black ...
5
votes
2answers
23k views

Can't find httpd.conf

I have installed Ubuntu 14.04 on a laptop and installed apache 2 (version 2.4.7) and PHP 5. I cannot find httpd.conf. I need to change it because when I try to open a .php page I see a download box. ...
5
votes
3answers
9k views

How I can turn off unknown webserver (Apache probably)?

I want to start XAMPP Apache server but it terminal it says that another web server daemon is already running. So I want to find out how to turn off it or so. When I go to localhost I get following ...
5
votes
2answers
6k views

My user can't upload files to folders owned by www-data

I think I have screwed up my permissions in Ubuntu. I am using my server to run PHP. I recently ran across a problem where PHP could not create directories in the var/www-directory, so I searched ...
5
votes
2answers
71k views

Port seems to be open, but connection refused

I am trying to open port 3000 on Ubuntu 12.04, cause I have a web server listening there. I'm a bit out of my confort zone here, and spent many hours trying to solve the problem without success. Port ...
5
votes
2answers
32k views

Changing permissions for folders and files in /var/www/?

I am quite new to ubuntu and I have been trying to install BuilderEngine, a content management system, to my ubuntu server 12.04 lts. I have figured some things out but I am struggling with permission ...
5
votes
1answer
7k views

How do I test virtual hosts in Apache before I buy the domains?

Is it possible to setup an Apache virtual host without a domain name, I just want to use my IP to test my website until I get a domain name. Examples in Apache documenation only seem to have domain ...
5
votes
2answers
7k views

How to assign correct permissions to both webserver and svn users?

I've an issue with files ownerships. I have a drupal website and the "files" folder needs to be owned by "www-data" in order to let the users to upload files with php. However I'm now using svn and ...
5
votes
1answer
2k views

Crashed my server, how do I find out what happened?

From a remote machine, I ran 100 concurrent requests against my Ubuntu VPS ab -n 100 -c 100 http://... And, as I suspected, the server "crashed". I can still ping it, and it responds very quickly ...
5
votes
1answer
10k views

Apache2 won't start - no listening sockets available - ubuntu 14.04

I'm having some problems with apache2 on Xubuntu 14.04. This all happened after a complete bios failure on the motherboard (now flashed to latest version - so far so good) though it may not be ...
5
votes
1answer
744 views

How would I broadcast a subdomain/virtual name on a local server with people connected to the same network

I have a server connected to the router which has ubuntu 12.04. It is has apache/mysql/php all installed ready to go. the folder structure is like this: /var/www -- this isnt the root -/libs -/logs ...
4
votes
4answers
725 views

How to create a web interface for my Python script? [closed]

I have a computer in my university office, with Ubuntu on it, ssh running, and Python. I'm connecting on it myself using ssh to run Python programs and see the output. Only command-line output, ...
4
votes
5answers
17k views

how to config htaccess file after enabling mod_rewrite module?

I already install apache2 then i enable the mod_rewrite module like this: sudo a2enmod rewrite after enabling i am confused about these lines, i can't understand what to do with them, as far as i ...
4
votes
1answer
2k views

Benefits of using Squid proxy in Ubuntu Server

What are some of the benefits of installing Squid Proxy in an Ubuntu Server that is sharing its Internet connection to a group of PCs in a LAN.
4
votes
2answers
2k views

How can I host my own website

I have bought a domain lets say it example.com, I also own an Ubuntu 10.04 machine which I would like to use it to serve my personal website. I have deployed the website on my local machine and its ...
4
votes
1answer
2k views

Renaming localhost

By default 127.0.0.1 has the localhost alias. I found several approaches to changing it to a different string, but what is the standard, effective and safe best-practice way of doing it? Can I give ...
4
votes
3answers
2k views

Chrome mistakenly downloads localhost/wordpress pages, but Firefox doesn't

I have Wordpress installed at http://localhost/wordpress When I try and view a page in Chrome, it downloads the PHP file rather than showing the page. When I view in Firefox, everything works fine. ...
4
votes
2answers
110 views

Diff between backups: see permissions, group and owner and sym link differences

Question Using only the command line, is it possible to tell if a rsync backup (on a NAS) and the original folder tree (on a web server) are exactly the same? I mean in terms of file sizes, ...
4
votes
2answers
515 views

Why does my server only uses 3GB of memory

The server has 24 GB of memory and 4 quad-core cpu's. It runs a busy website on apache/MySQL/php and sometimes gives a message that the server load is too high. When I look at the logs it never uses ...
4
votes
1answer
326 views

how to browse to a local web site from my ubuntu desktop

I run a web server just on my local network on a Windows XP machine using IIS. The main app I created keeps track of all my bookmarks so that no matter which computer I'm using in my home, I have ...
4
votes
1answer
709 views

MySQL (InnoDB) shutsdown same time every day

Ok so recently pushed a large update to my project onto my Ubuntu 14 server. Up until now it's been stable however since the push at exactly 00:36 GMT each day mysql is killed!! Not ideal as we need ...
4
votes
1answer
744 views

Cannot run MonoDevelop 4.2 with XSP4

Gents, I'm new on Linux and I tried to start .NET under Ubuntu when I start debugging a sample from MonoDevelop ASP.NET app it gives the following error: Could not launch web server. The "XSP4" web ...
3
votes
4answers
3k views

Cpanel like platform

I'm looking for a automated point-and-click hosting platform like Cpanel. Is any free and open source platform and which of them do you thing is the best? I prefer to be free of charge.
3
votes
3answers
5k views

Why would I install a DNS server on my Ubuntu server?

When you install Ubuntu server, the default Ubuntu server will only store the core system, but there is an option to add additional server roles. One of these is a "DNS Server". From what I read, ...
3
votes
2answers
333 views

Problem downloading Rapidshare file (URL encoding)

I installed Plowshare knowing that it can download rapidshare files from terminal, but if there are any parentheses () or brackets [] in the link then it can't download the link. Can this problem be ...
3
votes
2answers
53 views

Are these the right permissions for a webserver

I understand by now that 777 is very dangerous to have as permission on folders in my webserver, and I wan't to change them to 755 for folder and 644 for files as suggested here. Im using the ...