header_lt header_rt
May 24, 2013
home Email Print Site Map
Synology



Customize

Overview on modifying the Synology Server, bootstrap, ipkg etc

I prefer NOT to run "ipkg install optware-devel" because this leaves to much mess. Just run "ipkg install gcc" to install the gcc compiler with the needed packages.

Add php to 3rdparty

By default the system Apache server has PHP disabled. This is good for security but inconvenient for 3rdparty applications.
PHP can be enabled in the following way:
- edit "/usr/syno/apache/conf/httpd.conf-sys" and add the green parts:
...
LoadModule rewrite_module modules/mod_rewrite.so                             
LoadModule deflate_module modules/mod_deflate.so                             
LoadModule headers_module modules/mod_headers.so                             
 
AddType application/x-httpd-php .php
LoadModule php5_module /lib/libphp5.so

<IfModule !mpm_netware_module>                                       
#                                                         
# If you wish httpd to run as a different user or group, you must run
...
- edit "/usr/syno/etc.defaults/rc.d/S97apache-sys.sh" and add the following:
...
startArg="-DHAVE_PHP"

...
- now "/usr/syno/etc.defaults/rc.d/S97apache-sys.sh restart" to restart the server.

...Or...

create a symlink from "/var/services/web/<appl>" to "/usr/syno/synoman/webman/3rdparty/<appl>". Now by using the url "<ip>/<appl>/<appl>.php" the php is executed.

footer_lt footer_grey footer_rt