I see many people have problems with editing the apache.conf, and other files in Qnas
This is how I do the editing.
If you wonder about DRAG AND DROP, you find some notis about this in the bottom of the Tutorial.
This program Is also useful to mod your file and permissions. Use rightclick and properties for permission mod.
This tutorial is in tree parts, and shows some tips "how to use WinSCP"
WARNING: be careful with the files and folders inside your Apacheserver.
If you edit or delete wrong files here, your Qnas will not start again.
Part one: How to backup and edit your apache.conf file
Part two: How to drag and drop files inside or between shares in a hurry.
Part Tree: How to mod your files/folders (Change Permission)
-
If you want to do big changes, please read this from Frisbe about customized.conf
http://forum.qnap.com/viewtopic.php?f=3 ... onf#p37579
===========================================================================================
===========================================================================================
PART ONE
- First of all you need some software to connect to the Qnas.
I use WinSCP, and this tutorial show how to use this.
-
Please download and install WinSCP
You can find this at http://winscp.net/eng/index.php
At this moment the newest version is 4.1.8
-
-
- - Enable FTP on your Qnas (http://yournasip or http://yournasip:8080)
Network Settings --> FTP Service --> Enable FTP Service
-
-
- - Start the program Win SCP
This window will come up.
Or maybe you se the next picture. The go to next point.
Please follow the link to se the picture.
-
Press the button New an the next window shows.
I have already saved two Qnas servers on my WinSCP
-
-
-
Here you see the login window
Please enter your hostname, Username and password
Hostname is your local IPadress
If you want, you can press save, and make it easyer next time.
Press Login, and your session starts.
If you have some problems now, please control your password, port, hostname and username.
If everything works fine now, a filebrowser will open.
Please see next pictures
-
-
-
-
Here you see the filebrowser. It looks almost the same as an windows filebrowser.
On the left side it`s your local files and catalogs.
On the right side it`s the files, folders and shares on the Qnas you logged in to.
If you want to change the browser for easy drag and drop,
please read the note about drag and drop in the bottom of this tutorial.
-
-
-
-
Everytime people say where to find some files they start from ROOT.
Use this until you now where to find your files, and your catalogstructure on the Qnas better.
Here I have marked the two places you need I think.
On the left side is the button too start terminal window
This you will use too restart the server, and some other things.
On the right side is the button, if you want too go too the ROOT of your Qnas.
-
-
-
Please follow the link to se the picture.
-
Press the ROOT button, and you will see the structure in bottom of your QNAS.
If you will find your apache.conf follow this way
Open folders MNT -> HDA_ROOT -> .config
Then you will see these window with some files.
-
-
-- IMPORTANT! First we take backup of the file you want to edit.
Rightclick on the the file you want to backup. Choose Duplicat in the menu
-
This menu box open! -
Choose to change the name.
I like to change the name to backup_apache.conf (It must be a different name from the other files!).
Then Its easy to find back the backupfile.
Here you se I have change the name Then I press OK and WInSCP makes the copy in same directory.
If you want, you can also make your own directory for backupfiles.
-
-
-
Please follow the link to se the picture in full size.
-
Warning Take bacup of your file before editing it.
-
Open the the File apache.config, and do the editing.
I have marked the button for saving changes.
Press this button after editing, and then close the file.
-
-
-- Now its time too start the terminal window in WinSCP for restart of your server.
Press the button for start terminal or press CTRL +T
Then this window pops up
If you have one message popping up, and it says, "start new session" press yes.
Please follow the link to se the picture in full size.
-
In the terminal line you type this command an press enter
/etc/init.d/./Qthttpd.sh restart
Then you see the apacheserver restarts. I only takes a couple of seconds.
After the restart, please close the terminal window, and close WinSCP
If you are afraid to do this, you can restart the QNas server in normal way in the adminpanel.
Just find the button restart under System Tools. This will be the same but takes more time
-
-
- - I hope this will help you editing your files in the Qnas.
If you later have problems with writeaccess and thing like that, I think its the easyest way to do the write-mod with this program.
Please be patient, and don`t delete any files.
Then you wil have som problems starting your server.
===========================================================================================
PART TWO
DRAG AND DROP FILES inside of Qnas
Total tutorial of WinSCP http://forum.qnap.com/viewtopic.php?f=32&t=11329
Note: There is also possible to use Winscp to drag and drop. The easy way to do this, is when you start logging in.
In the left window press Preferenses and make it "explorer like" Then you will only se the Qnas, but nearly like a windows browser of the files and folders.
It is now easy to drag and drop files from the right window, to a map or another share in the left window.
Please be careful. ===========================================================================================
===========================================================================================
PART TREE
Cmod files and folder with WinSCP
If you want to easy cmod your files and folders, just open WinSCP,
and right click your mousebutton on the file/folder you want to change permission on.
Choose properties Then this box opens, and you can change the permissions you want. Tips: If you have some files you dont see under windows explorer, they maybe have the permission 777
Folders with this permission is visible in Windows explorer, but
Files with this permission is not visible in Windows explorer.
Change the permission to 776 or somthing if you vant them visible.
Warning!
If you delete files with this program, you will have one warning/confirm box.
Please leave the boks like its here, and dont mark the "Never ask me again". This is the only way to stop, if you dont agree to delete something.
There is no recylclebin here. Be careful is my best tips!!! Dont delete anything if you are not 100% safe
Please see my Tutorials in the signatur for other problems/Solutions.
tags: how to edit apache.conf, Root directory, configuration, edit php.ini, cmod 777 766 invisible files, Use WinSCP to move files fast between shares, drag and drop files in Qnas, fast moving files, how to edit apace apache conf,