Skip to main content

Questions tagged [webserver]

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

Filter by
Sorted by
Tagged with
542 votes
8 answers
975k 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 this error: > python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] ...
yansal's user avatar
  • 5,523
258 votes
14 answers
495k 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 in,...
Dimitris Sapikas's user avatar
196 votes
8 answers
124k 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.
TaylorOtwell's user avatar
  • 2,095
170 votes
10 answers
138k 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 ...
Alexander Rechsteiner's user avatar
166 votes
8 answers
333k 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 ...
k_graham's user avatar
  • 1,761
123 votes
2 answers
344k views

Creating a symlink from one folder to another with different names?

I have two folders, one of which is my webserver root. I want to link it to my project folder so that I can keep things up-to-date with Git. If I try to do this: ln -s /home/user/project /var/www/...
user991710's user avatar
  • 1,343
101 votes
2 answers
379k 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. ...
fosslinux's user avatar
  • 3,831
94 votes
2 answers
339k views

What is the www-data user?

I'm working through How To Serve Django Applications with uWSGI and Nginx on Ubuntu 16.04. At the end of the "Create a systemd Unit File for uWSGI" in the article they discuss the www-data user. What ...
user1592380's user avatar
  • 1,865
68 votes
7 answers
112k views

How do I set up the simplest HTTP local server? [duplicate]

I use the R Studio IDE to do many things, one of which is to serve local websites utilizing the blogdown package which is a fork of hugo. I write the code in R Studio and preview the site utilizing ...
Display name's user avatar
  • 2,241
66 votes
3 answers
357k views

Permissions problems with /var/www/html and my own home directory for a website document root

I'm trying to not give 777 permission in my /var/www/html folder, but I want to edit my files without sudo. So I thought to create a symlink of a folder in my home directory within /var/www/html. I ...
André Carvalho's user avatar
63 votes
9 answers
123k views

Nginx installation error in Ubuntu 16.04

:~$ sudo apt-get remove nginx* && sudo apt-get install nginx-full* Reading package lists... Done Building dependency tree Reading state information... Done After this operation, 5,579 kB of ...
Mohit's user avatar
  • 749
48 votes
2 answers
127k 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, ...
Chins's user avatar
  • 483
41 votes
9 answers
73k views

Having trouble installing and removing MySQL in Ubuntu

I have trouble in installing or removing the partly installed mysql-server-5.6 in ubuntu15.04. The error I am getting was $ sudo apt-get -f install Reading package lists... Done Building ...
Shameerariff's user avatar
36 votes
11 answers
205k views

Error message "500 OOPS: vsftpd: refusing to run with writable root inside chroot()" - keep user jailed

So far I have been unable to keep an FTP user jailed to their website directory. Is there a solution that both fixes this bug and keeps the user jailed to their directory? My vsFTPd settings that I ...
Chris Hough's user avatar
36 votes
4 answers
330k 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 ...
sebpiq's user avatar
  • 575
36 votes
4 answers
70k 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 ...
Kohjah Breese's user avatar
28 votes
0 answers
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... ...
ajay's user avatar
  • 281
24 votes
9 answers
187k 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/htdocs to another one like /home/me/Dropbox/public_html without success. I've edited the file /opt/lampp/etc/httpd.conf # old ...
vitto's user avatar
  • 443
21 votes
7 answers
21k 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 ...
Craig's user avatar
  • 1,316
14 votes
4 answers
124k views

Is it possible to run the IIS web server on Linux?

Is it possible to install IIS on Linux?
ePezhman's user avatar
  • 587
14 votes
3 answers
36k 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 ...
Jonas's user avatar
  • 8,347
12 votes
3 answers
24k 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 (...
Michael's user avatar
  • 161
11 votes
2 answers
29k views

bash script to check website content by curl command

I want to write a script to check out if the website is working fine by checking out some of it is contents. If the content exists in the result, it prints a message telling the website is working ...
Adam's user avatar
  • 329
11 votes
1 answer
798 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 ...
jon_brockman's user avatar
11 votes
1 answer
23k 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 ...
el_pup_le's user avatar
  • 963
11 votes
2 answers
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 - - [9/...
luri's user avatar
  • 4,112
11 votes
2 answers
102k views

Apache not starting

So I tried to start my apache2 server with the following command... sudo service apache2 start But then I get this error message... Job for apache2.service failed. See "systemctl status apache2....
Archisman Dinda's user avatar
10 votes
5 answers
11k 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 ...
Savvas Radevic's user avatar
9 votes
2 answers
843 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 ...
Jonathan Musso's user avatar
8 votes
3 answers
741 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 ...
vicmp3's user avatar
  • 557
8 votes
3 answers
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 ...
craig zheng's user avatar
8 votes
2 answers
40k 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 ...
its_me's user avatar
  • 1,928
7 votes
1 answer
31k 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 ?
One Zero's user avatar
  • 27.3k
7 votes
2 answers
15k views

create an alias for `localhost:8080/` as `www.my-domain.com/`

In ubuntu, I want to create an alias for localhost:8080/ as www.my-domain.com/. So that whenever I type www.my-domain.com/ in URL field, it shows up from localhost:8080/. What is the easiest way to ...
Rajat Gupta's user avatar
7 votes
3 answers
23k 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 ...
pewterss's user avatar
7 votes
1 answer
6k 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. ...
revickulous2001's user avatar
6 votes
4 answers
10k 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 ...
Howl's user avatar
  • 65
6 votes
3 answers
15k 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 ...
OptimusCrime's user avatar
6 votes
2 answers
42k views

make domain name point to home server [closed]

I have a dedicated working server at home (LAMP and localhost). I also have a domain name. My questions is, given my domain name, how can I make that public .com site point to my home computer?
Alexander Kleinhans's user avatar
6 votes
5 answers
25k views

Apache not allowing PHP to create file

I am trying to save data using HTML and PHP in localhost in Ubuntu. My HTML & PHP files are working great but when I am using commands to open a file in the localhost using $myfile = fopen("...
Moithil Biswas's user avatar
6 votes
2 answers
95k 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 ...
user244666's user avatar
6 votes
3 answers
7k 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, ...
JohnMerlino's user avatar
  • 7,429
6 votes
2 answers
5k views

Transmission won't work on port 80

I was trying to use Transmission's Web Interface, and it worked perfectly. I could access it via http://localhost:8080/transmission/web/, I could use my local IP, I could use 127.0.0.1, I could, after ...
JamesTheAwesomeDude's user avatar
6 votes
1 answer
499 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 ...
rsjethani's user avatar
  • 195
5 votes
3 answers
11k 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 ...
Templar's user avatar
  • 981
5 votes
3 answers
16k views

How to configure Adminer to be reachable on the local network

I have currently configured a Ubuntu web development server machine, but am having problems connecting/viewing Adminer on the local network. e.g. I can connect to Apache without any problems from a ...
Mattlinux1's user avatar
5 votes
1 answer
3k 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.
Luis Alvarado's user avatar
5 votes
1 answer
12k views

How can I host a website in a virtual machine?

Before you shoot this down, please let me explain what I mean.... I am running Windows, I also have a virtual machine installed that is running Ubuntu. I want to set up a website on Ubuntu (the ...
Jacob's user avatar
  • 95
5 votes
3 answers
889 views

Is Ubuntu Server required for LAMP server or will anything break if I install LAMP on Ubuntu Desktop?

I've already seen a similar question that was closed as a duplicate of this (What's the easiest way to set up a LAMP stack?) However no where in that Q&A does it answer the question. A little ...
WinEunuuchs2Unix's user avatar
5 votes
1 answer
4k 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 ...
Marius Butuc's user avatar
  • 4,871

1
2 3 4 5
14