cancel
Showing results for 
Search instead for 
Did you mean: 

How to install phpbb3?

cottonpickers
Newbie
Posts: 5
Registered: ‎16-05-2012

How to install phpbb3?

Hi,
The old instructions for installing phpbb3 need telnet which is no longer available. Don't suppose anyone has a 'quick' guide to getting it up and running on plusnet do they?
thx!!
6 REPLIES 6
spraxyt
Superuser
Superuser
Posts: 10,063
Thanks: 1,369
Fixes: 75
Registered: ‎06-04-2007

Re: How to install phpbb3?

Installing phpBB3 on ccgi isn't difficult.
Assuming phpBB3 will have its own directory, create that directory (eg phpbb3) using your FTP program
Upload the following script file (getpb3unpk.cgi ) to that folder using ASCII transfer mode
[code=getpb3unpk.cgi]
#!/bin/bash
# Get phpBB archive and unpack it into the current directory
echo -e -n "Content-type: text/plain\n\n"
archive="phpBB-3.0.10.zip"
wget -o wget-log.txt "http://www.phpbb.com/files/release/$archive"
errorstatus=$?
if [ "$errorstatus" -ne 0 ] ; then
echo "wget not successful (return status $errorstatus)"
cat ./wget-log.txt
else
echo "wget successful"
echo "unzipping and relocating to current directory"
unzip -qa "$archive" && (shopt -s dotglob; mv ./phpBB3/* .) && rmdir ./phpBB3
echo ... done
fi[/code]
Upload the following script file (setperms.cgi ) to that folder using ASCII transfer mode
[code=setperms.cgi]
#!/bin/bash
# set directory and file permissions for ccgi (courtesy Gabe)
echo -e -n "Content-type: text/html\n\n"
find . -type d ! -perm 1710 -print0 | xargs -0 chmod 710
find . -type f -regextype posix-extended -regex '.*\.(php|pl|cgi)$' -print0 | xargs -0 chmod 700
echo "<table border='1' cellpadding='2' cellspacing='1'>"
echo "<tr><th>Type</th><th>Name</th><th>User, Group</th><th>Permissions</th></tr>"
find . -type d -printf '<tr><td>Folder</td><td>%p</td><td>%u, %g</td><td>%M</td></tr>\n'
find . -type f -printf '<tr><td>File</td><td>%p</td><td>%u, %g</td><td>%M</td></tr>\n'
echo "</table>"[/code]
Using your FTP program set file permissions (chmod) of both files to 0700 (-rwx------)
Browse to http://domain.tld/phpbb3/getpb3unpk.cgi which should download and unpack the phpBB3 version 3.0.10 code
If that is successful browse to http://domain.tld/phpbb3/setperms.cgi to set directory and file permissions required for ccgi. You should get a table of folder and file names showing the permissions set.
Now browse to the install script at http://domain.tld/phpbb3/install/ and follow the prompts to install phpBB3.
In the later stages of the install, under Server URL settings you will see the script path was determined to be /~username/phpbb3 . I suggest changing that to /phpbb3 so that /~username does not show in the browser address box.
Hope this works for you.
David
David
cottonpickers
Newbie
Posts: 5
Registered: ‎16-05-2012

Re: How to install phpbb3?

David , firstly , thanks so much for the help.
I'm still struggling 😞
I've:
enabled cgi
used notepad to create the files
ftp'd them up in ASCII format (in a new directory at the same level but not inside cgi-bin)
changed the perms of both the files and the directory to make writeable/executable etc.
tried to run them using http://cgi.DOMAINNAME/DIRECTORY/getpb3unpk.cgi
but I get an error:

Server error!

The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: getpb3unpk.cgi
If you think this is a server error, please contact the webmaster.
Error 500
Some troubleshooting I've done includes:
Load a jpg file in to the cgi area, and I can load that fine
getting a bit lost now!
Any further help appreciated.
David
cottonpickers
Newbie
Posts: 5
Registered: ‎16-05-2012

Re: How to install phpbb3?

Update: I've manually unzipped and copied phpbb3 across and succesfully ran the setperms file 🙂
Thanks
Hopefully I can take it from here.
spraxyt
Superuser
Superuser
Posts: 10,063
Thanks: 1,369
Fixes: 75
Registered: ‎06-04-2007

Re: How to install phpbb3?

Server 500 errors are usually caused by invalid options in a .htaccess file, incorrect file permissions set, or the line endings being incorrect with the file not uploaded as an ASCII transfer. More information in the CGI platform PHP upgrade FAQ here.
Unzipping the file yourself is fine. Did you do that on ccgi or on your own PC? If you did it on your PC is your FTP program set to show hidden files like .htaccess. If it isn't .htaccess files might not have transferred. phpBB3 has these in certain directories to prevent browser access to those directories.
Now setperms.cgi has run it will have set correct file and directory permissions.
David
cottonpickers
Newbie
Posts: 5
Registered: ‎16-05-2012

Re: How to install phpbb3?

Thanks. That makes sense.
I've got it up and running (phew) at http://cgi.cottonpickers.plus.com/forums/ which feels just brilliant 🙂

I was hoping that plusnet would somehow let me access it at www.cottonpickers.plus.com/forums/ ;
Is there something I'm missing with that? is it an easy fix? I'm also getting an error when I go to to 'users' in the admin control panel, but hoping a re-install will cure that.
spraxyt
Superuser
Superuser
Posts: 10,063
Thanks: 1,369
Fixes: 75
Registered: ‎06-04-2007

Re: How to install phpbb3?

www.username.plus.com will still point to homepages. If you don't use homepages and would rather www. went to ccgi I think Plusnet can set that for you; I think you would need to raise a ticket to get that changed.
David