So you're setting up various things like your WordPress or perhaps messing around with some internals based on tips you get across the web. You type them in then doesn't work and says you have invalid or the wrong user permissions. What gives?
Don't forget you are working on a semi-embedded environment and not all things follow what is on Apache spec all the time. So how do you find out more about your installation without having to be able to read all these script lines? Let the installed system work for you of course. Everything is working on the basic that means you just need to know what the settings are.
First things first, get your tools and be where you should:
Step #1: Download WinSCP (or if you're further advanced feel free to use ssh).
Step #2: Log-in to the NAS as admin
Don't forget you are working on a semi-embedded environment and not all things follow what is on Apache spec all the time. So how do you find out more about your installation without having to be able to read all these script lines? Let the installed system work for you of course. Everything is working on the basic that means you just need to know what the settings are.
First things first, get your tools and be where you should:
Step #1: Download WinSCP (or if you're further advanced feel free to use ssh).
Step #2: Log-in to the NAS as admin
Using username "admin".
Step #3: Change directories to Qweb
[~] # cd /share/Qweb/
You are now at the root of your web server, you have the following options:
Step #4a: To find out what user your instance (Apache default is httpd) is running as (QNAP default is httpdusr), create a temporary file, mine is called phpinfo1.php, and it only contains one line:
Step #4a: To find out what user your instance (Apache default is httpd) is running as (QNAP default is httpdusr), create a temporary file, mine is called phpinfo1.php, and it only contains one line:
Step #4b: To dump all that is known from the system, create a temporary file, mine is called phpinfo2.php, and it only contains one line:
Step #5: Whatever your choice is from either of the last two-(2) steps above, open a browser instance and run the relative PHP file.
http://(your-ip-address)
http://(your-ip-address)
Security tip:
Once you are done with the scripts above, DELETE them. You risk divulging critical information about your installation if you leave these files lying around.
Hi, somehow I don't see the one-liners for within the php files in your text?
ReplyDeleteI don't see any script text after "it contains only one line:" for either Step #4a or 4b.
ReplyDelete"There was an error in this gadget" is above Plurk.