Upload Web Site

General support questions
Post Reply
1Raptor007
Posts: 17
Joined: 2015/02/22 22:34:00

Upload Web Site

Post by 1Raptor007 » 2015/03/16 22:29:34

I am new to Linux and was wondering how the updating of web sites is done. I have successfully installed Apache, MariaDB and PHP on my test server. My default web site works fine. I would like to have a new web site that I can update from another system. Since I do not have domain names I was hoping just to use port 8080. So essentially I am looking for the following:
1. How to setup a virtual host for port 8080 that goes to say /var/www/8080/public_html
2. Establish a method for another computer with say a username/password that can update/upload the actual web site files.
- I assume that this is very common and I don't know how it is done. Is it FTP? I used to just have IIS extensions installed on a Windows Server and publish through FrontPage but this is a long time ago
- What is the preferred method to allow someone to update a specific folder on a linux server?

Any guidance would be appreciated. Thank you.

UPDATE
Ok I was able to figure out the virtual host and now I have two web sites being hosted. So now I would like to "publish" my web site using a Windows 7 machine via FTP I guess. How do I tell Linux that a particular user account should be a particular folder (the public_html folder) of a particular web site (virtual host)????

KelvinSmith
Posts: 4
Joined: 2015/01/13 07:23:22

Re: Upload Web Site

Post by KelvinSmith » 2015/03/17 10:07:44

Hi,
You need to deploy a virtual host in /etc/httpd/httpd.con fiie and can edit the virtual block as per your requirements.
To update the files and folders you can create a ftp user.
See the link to follow the details steps.
http://httpd.apache.org/docs/2.2/vhosts/name-based.html

xo)mora
Posts: 58
Joined: 2017/01/13 20:52:59

Re: Upload Web Site

Post by xo)mora » 2019/01/22 17:28:37

Thanks, why I must deploy a virtual host in /etc/httpd/httpd.con file?

To update the files and folders you can create a ftp user.

Why I need ftp user?

The actual error was: I couldn't create a directory: my $upload_dir = "/var/www/html/public_html/rev/$inst/$anio-$mes-$dia";
mkdir $upload_dir, 0775;

I think are only permission, what do you think?

Post Reply