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)????
Upload Web Site
-
- Posts: 4
- Joined: 2015/01/13 07:23:22
Re: Upload Web Site
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
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
Re: Upload Web Site
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?
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?