Adding Pear to Synology Apache:Php

Ok,  you want Pear for your webserver.

1) Using your ipkg you must install and test it with.

Now update php to use it, finding the include_path entry and making it look like  include_path = “.:/php/includes:/opt/share/pear”

Now login to your DiskStation > Web Services control panel and add the pear path to your opendir directive – can you see I have added /opt/share/pear/: to the start of the path.

screenshot_611

Now add the following to a webpage and test it returns bool(true)

Comments 1

Write a Reply or Comment

We will not publish your email.*


*