How to create a new directory with same level of public_html

Hey guys,

Need to create a directory within the same level of public_html not inside it but with it on the same level. Tried few times but had error cannot be done messages. Therefore, needed some pointers if anyone knows how! The reason for this headache is in the script installation process as shown:

Note : We create a new “instantblog” directory because Laravel has different folder structure and safest way to store laravel files out of the public folder…

Thanks you guys :smiley:

Through ssh:

root@host: cd /home/USERACCOUNT/web/USERDOMAIN.com

root@host:/home/USERACCOUNT/web/USERDOMAIN.com# mkdir DIRNAME

1 Like

many thanks chris for your useful reply :love_you_gesture:

believe it or not done what you wrote but didn’t work :confused:

but when copy paste what others say something useful, works :person_raising_hand:

many thanks again bro :smiley:

I thought celebrating this is too soon :sob:

I can’t upload anything into that directory even created successfully;

Command: CWD /instantblog
Response: 250 Directory successfully changed.
Command: TYPE A
Response: 200 Switching to ASCII mode.
Command: PASV
Response: 227 Entering Passive Mode (0,0,0,0,47,37).
Command: STOR .gitattributes
Response: 553 Could not create file.
Error: Critical file transfer error

Any new ideas??

chown user:user for the folder you’ve created, otherwise its owned by root.

1 Like

the permission is 775 for the directory and yet nothing is being shown in it when uploading files!

why the complication? beats me :confused:

If ls -lh shows the folder is owned by root:root, you should probably:

1 Like

The owner/ Group shows 0 0

Does this mean I have to assign a user to it?? If so, is there any SSH command to run because there is no way in CP and filezilla to do that…?

Here is the command for a third time.

cd /home/username/web/domain.com/instantblog/

Or any other directory…

chown -R username:username *

Honestly, if you’re running hestia, you should be aware of chmod and chown, aswell as it risks (!) and how to use them. If you don’t know, please do not run a hestia server then and stick to a shared webhosting or a managed server: Please read this, before you start!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.