I test it on my Test DS over and over again, in no situation I got the same behavior as you.
I can think of the following reasons:
- Either the Apache has an error at startup, but does not show it and restores the original state automatically. In this case you would get a DSM notification.
- It could also be another application that cancel the changes. (rather unlikely but possible)
- If the commands in the scripts have prefixed with no absolute paths and there are differences between Synology and /opt commands (eg grep).
Can you post me which apps you have installed.
Have you installed ipkg and some tools like grep?
The command
which grep tells you what you have in use
We now test whether the script is running successfully in a user environment.
- stop Init_3rdparty via package center
- log via telnet or ssh as root with password from admin into your ds
- exec the following command:
Rich (BBCode):
/var/packages/Init_3rdparty/scripts/start-stop-status start
Please also post any messages
- exec the following command:
Rich (BBCode):
tail -n 20 /usr/syno/apache/conf/httpd.conf-sys
and post output
If there is the following code at the end of the output, then the script works in user environment.
Rich (BBCode):
#step1
# ------------------------------------------------------------------------------------
# Integration of Init_3rdparty
#
Listen 5002
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module /lib/libphp5.so
AddType application/x-httpd-php .php
RewriteEngine On
RewriteCond %{SERVER_PORT} =5002
RewriteRule ^/$ http://%{SERVER_NAME}:5000/webman/3rdparty/Init_3rdparty/index.php [R]
Include /usr/syno/synoman/webman/3rdparty/Init_3rdparty/php.conf
# ------------------------------------------------------------------------------------
#step1
You can now restart the sys-apache with
Rich (BBCode):
/usr/syno/etc/rc.d/S97apache-sys.sh restart
If the script is running in the user environment, then it is up to 99% on the paths to the commands or the commands themselves.