QNAP QTS Configuration and Executable Files


One of my problems on QNAP QTS is to find files. Therefore, I will maintain and update this list regularly.

Configurations

Build-in

apache.conf /etc/config/apache/apache.conf
apc.ini /etc/config/apc.ini
ipsec.conf
ipsec_allow.conf
ipsec_deny.conf
/etc/config/ipsec.conf
/etc/config/ipsec_allow.conf
/etc/config/ipsec_deny.conf
my.cnf /etc/config/my.cnf
php.ini /mnt/HDA_ROOT/.config/php.ini
/etc/config/php.ini
php.ini (default) /etc/default_config/php.ini
php.ini (if you install from ipkg) /opt/etc/php.ini
php_config.h /opt/include/php/main/php_config.h
/share/HDA_DATA/.qpkg/Optware/include/php/main/php_config.h

Enable Nginx 1.6 + PHP 5.5.12 FastCGI QPKG

nginx.conf /share/CACHEDEV1_DATA/.qpkg/Nginx/nginx/conf/nginx.conf

Executable

Build-in

apache /usr/local/apache/bin/apache
* Fail to start or stop apache directly without /sbin/daemon_mgr. Need to use Qthttpd.sh
ipkg /opt/bin/ipkg
Usage:
ipkg install [package name]
ipkg remove [package name]
mysql shell
/usr/local/mysql/bin/mysql
mysqld.sh
/etc/init.d/mysqld.sh
Usage:
/etc/init.d/mysqld.sh restart
php cli
/usr/local/apache/bin/php
Qthttpd.sh /etc/init.d/Qthttpd.sh

Enable Nginx 1.6 + PHP 5.5.12 FastCGI QPKG

Nginx /share/CACHEDEV1_DATA/.qpkg/Nginx/nginx/sbin/nginx -s {stop | quit | reopen | reload}
Nginx.sh /share/CACHEDEV1_DATA/.qpkg/Nginx/Nginx.sh {start | stop | restart}
php cli
/share/CACHEDEV1_DATA/.qpkg/Nginx/php/bin/php

Log Files

Build-in

apache error /usr/local/apache/logs/error_log
* Need to manually enable by first creating /etc/config/apache/extra/apache-myconfig.conf with following configurations:

CustomLog logs/main_log combined
ErrorLog logs/error_log

Then modify /etc/config/apache/apache.conf to include this configuration file:

Include /etc/config/apache/extra/apache-myconfig.conf

Enable Nginx 1.6 + PHP 5.5.12 FastCGI QPKG

Nginx error /share/CACHEDEV1_DATA/.qpkg/Nginx/nginx/logs/error_log

Other Files

Build-in

apache modules /usr/local/apache/modules
session files /share/CACHEDEV1_DATA/.php_session
web pages /share/Web
Owner: admin

Enable Nginx 1.6 + PHP 5.5.12 FastCGI QPKG

apache modules /usr/local/apache/modules
session files /share/CACHEDEV1_DATA/.php_session ?
web pages /home/Qhttpd/Web
/share/CACHEDEV1_DATA/.qpkg/Nginx/nginx/html
Owner: admin

Notes

  1. When use ssh to login, use ssh admin@[IP]. admin is the root.

Reference

  1. QNAP: QTS
  2. QNAP: Forum: strange problem in Apache error_log
  3. QNAP: Forum: MySQL Start – Stop problem

4 thoughts on “QNAP QTS Configuration and Executable Files

    • Dear Frey,

      If the /etc/config/my.cnf is the real in use, where is it? ls -l /etc/my.cnf shows links to /etc/config/my.cnf

      When modify my.cnf, I will also take a look at /etc/init.d/mysqld.sh because QTS will protect some configuration in my.cnf using mysqld.sh. You need to edit mysqld.sh to change the value.

      It is the same to /etc/config/apache/apache.conf with Qthttpd.sh

      Have a nice day!

      Best regards,

      Amigo

      Like

  1. Just wanted to say thanks for putting your notes online! Do you have an Intel or ARM-based QNAP? I’m running 4.1.3 on a QNAP TS-451

    Liked by 1 person

    • Dear Mr. Tseng,

      Yes, I do have a QNAP TS-119PII (running Time Machine service for my Mac Mini. It has a Marvell 88F6281 at 2.0GHz which is ARM-based model.

      QNAP kindly lend me a TS-251 and a TS-253 for testing. They are both based on Intel Bay Trail technology. I expect to return them to QNAP next month.

      I have upgrade my TS-119PII to 4.1.3 earlier this month (2015/3).

      Have a nice day!

      Best regards,

      Amigo

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s