I have been trying to a long time now to get php running on myPB. For some reason i can't seem to get it working.
I followed the tutorial found here [piratebox.cc]
I Just want to confirm i am doing this right:
Of course i do this:
That seems to go good.
Next part i am a little confused about:
I then Enter:
which gives me
Hit enter:
Then type
I can see now that i get a fastcgi.conf file generated with the above code inside.
Now i type this 2 lines:
Now here is where i start noticing issues:
after restart my scripts i see it stopping lightpd
Then i get a umount error
So next i reboot
After i reboot i go to piratebox.lan/phpinfo.php
but now i get redirected back to the homepage,
I shut down and restart again but now i can no longer ssh into my box.
i am going to do a fresh install and wait for some much appreciated help from the experienced pros on here.
I tried it again an although i still get redirected back to piratebox.lan when going /phpinfo.php, every thing else looks good so i went ahead with the Calibre install, everything went find until i tried to use it.
First i get an error that states, when accessing it through the broswer at cops/index.php:
So i viewed source which gave me this result:
I know nothing about php but i figured it was a syntax error, tried searching through author.php but had no luck.
I followed the tutorial found here [piratebox.cc]
I Just want to confirm i am doing this right:
Of course i do this:
/etc/init.d/piratebox nodns opkg update opkg -d ext install extendRoot-php lighttpd-mod-fastcgi
That seems to go good.
Next part i am a little confused about:
I then Enter:
cat >/opt/piratebox/conf/lighttpd/fastcgi.conf <<EOF
which gives me
root@piratebox#: >Then i copy and paste this:
#-------------------- FAST CGI stuff server.modules += ( "mod_fastcgi" ) >fastcgi.server = ( > ".php" => (( > "bin-path" => "/usr/bin/php-cgi", > "socket" => "/tmp/php.socket", > "max-procs" => 1 > )) >)
Hit enter:
Then type
EOF
I can see now that i get a fastcgi.conf file generated with the above code inside.
Now i type this 2 lines:
echo 'include "/opt/piratebox/conf/lighttpd/fastcgi.conf"' >> /opt/piratebox/conf/lighttpd/lighttpd.conf echo "<?php phpinfo(); ?>" >> /opt/piratebox/www/phpinfo.php
Now here is where i start noticing issues:
after restart my scripts i see it stopping lightpd
Then i get a umount error
So next i reboot
After i reboot i go to piratebox.lan/phpinfo.php
but now i get redirected back to the homepage,
I shut down and restart again but now i can no longer ssh into my box.
i am going to do a fresh install and wait for some much appreciated help from the experienced pros on here.
I tried it again an although i still get redirected back to piratebox.lan when going /phpinfo.php, every thing else looks good so i went ahead with the Calibre install, everything went find until i tried to use it.
First i get an error that states, when accessing it through the broswer at cops/index.php:
This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error.
So i viewed source which gave me this result:
<br /> <b>Fatal error</b>: Call to a member function fetchColumn() on a non-object in <b>/opt/piratebox/www/php/cops/author.php</b> on line <b>40</b><br />
I know nothing about php but i figured it was a syntax error, tried searching through author.php but had no luck.