Upload Web Site

General support questions
Post Reply
xo)mora
Posts: 58
Joined: 2017/01/13 20:52:59

Upload Web Site

Post by xo)mora » 2019/01/22 18:03:44

KelvinSmith wrote:
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
The Linux server is Centos 7 and the Apache version is 2.4

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Upload Web Site

Post by lightman47 » 2019/01/22 18:11:37

Wait: Why are we re-working an almost 4 year old thread that 'seems' to be very weakly connected to whatever you may be trying to do, but didn't tell us as well as a much older version of CentOS? How about starting a new thread with more detail about what you're trying to do, what you've done (with the EXACT messages you got when it failed), etc. When seeking help, DETAILS are everything!

About your question, though:
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?
There are few programs that will create the nested directories from the single command; mkdir is not one of them. Generally, you'd have to create public_html, then create rev, then $inst, then ... you get the idea. You create the 'child' after it's 'parent' exists.

Also, mkdir syntax:

mkdir 0775 {directory to create}

;-)

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Upload Web Site

Post by hunter86_bg » 2019/01/22 21:19:36

What about mkdir's "-p" flag ?
Never mind, as it was mentioned before - details are everything.

Post Reply