php5-cli

Posted by jdonth 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
php5-cli
June 21, 2013 03:04PM
I am attempting to install the php5 CLI package.

FYI I have performed the following sequence:
/etc/init.d/piratebox nodns
opkg update
opkg -d piratebox install php5
opkg -d piratebox install php5-cli
cp /mnt/ext/etc/php.ini /etc
ln -s /mnt/ext/etc/php5 /etc/php5
sed -i 's,extension_dir = \"/usr/lib/php\",extension_dir = \"/usr/local/lib/php\",g' /etc/php.ini
reboot


When I try to run the php5-cli program: "/mnt/ext/usr/bin/php5-cli" I get the following error:
"can't load library 'libpcre.so.0'"

Any thoughts?

Thanks,
Joe
Re: php5-cli
June 21, 2013 06:26PM
Just for fun, I tried to restart the lighttpd server with this command:
/mnt/ext/etc/lighttpg restart

and received the SAME error as with the PHP executable:
lighttpd: can't load library 'libpcre.so.0'

Does this help identify where I am going wrong?

Thanks in advance,
Joe
Re: php5-cli
June 22, 2013 09:02AM
You have to add 2 lines to you shell enivornment to get this working... and you have to add this two lines to every shell script, which should start through init.d:

  export PATH=$PATH:/usr/local/bin
  export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
Add those into /etc/profile and then run

source /etc/profile

this should work later on.
Re: php5-cli
June 23, 2013 02:47PM
Thank you very much.