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.


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

1 Comments on “Adding Pear to Synology Apache:Php”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.