1
Development and Code Review / Re: [SOLVED] Building from Source Issues
« on: August 01, 2017, 06:16:16 pm »
Hi there
I just installed OPNsense after my pfsense SG2440 borked an update yesterday :s
I was ready to make the switch so I installed FreeBSD 11 first, and used the bootstrap script found on github.
The same PHP error mentioned above occured - i.e. includepath is incomplete.
Solution:
I identified empty php.ini files in /usr/local/etc/ as well as the templates for dev and prod.
I copied the dev one into the php.ini and manually added the include path copied from:
/usr/local/opnsense/service/templates/OPNsense/WebGui/php.ini, namely:
and started the webserver manually using the rc script /usr/local/etc/rc.restart_webgui
I know the thread is solved, but I'm not sure how this happened. It does not seem to share the same cause as before.
I just installed OPNsense after my pfsense SG2440 borked an update yesterday :s
I was ready to make the switch so I installed FreeBSD 11 first, and used the bootstrap script found on github.
The same PHP error mentioned above occured - i.e. includepath is incomplete.
Solution:
I identified empty php.ini files in /usr/local/etc/ as well as the templates for dev and prod.
I copied the dev one into the php.ini and manually added the include path copied from:
/usr/local/opnsense/service/templates/OPNsense/WebGui/php.ini, namely:
Code: [Select]
include_path = ".:/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/share/pear:/usr/local/opnsense/contrib"
and started the webserver manually using the rc script /usr/local/etc/rc.restart_webgui
I know the thread is solved, but I'm not sure how this happened. It does not seem to share the same cause as before.