The Linux server is Centos 7 and the Apache version is 2.4KelvinSmith wrote: ↑2015/03/17 10:07:44Hi,
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
Upload Web Site
Upload Web Site
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: Upload Web Site
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:
Also, mkdir syntax:
mkdir 0775 {directory to create}
About your question, though:
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.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?
Also, mkdir syntax:
mkdir 0775 {directory to create}
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Upload Web Site
What about mkdir's "-p" flag ?
Never mind, as it was mentioned before - details are everything.
Never mind, as it was mentioned before - details are everything.