Installing phpBB on Fedora-Linux
Before installing phpBB the following need to be installed:
Installing Apache HTTP Server
-
Download the Apache HTTP server httpd-2.2.6.tar.bz2 from
http://httpd.apache.org/download.cgi
-
After extracting the contents, from that folder do
$./configure --prefix=/usr/local/apache --enable-so
$make
$make install
Note: you must add --enable-so to get PHP working as a module later.
-
Start the HTTP server:
$/usr/local/apache/bin/apachectl start
Now go to your browser and type http://localhost.The apache test page should load.
Installing MYSQL Database
-
Install mysql and mysql-server using the Add/Remove software tool in your linux machine and also include the mysql development packages (named like –devel--) for your installation.
Installing PostgreSQL Database
-
Since phpBB2 only support PostgreSQL7.x as we’ll see on the installation page. We chose to install PostgreSQL7.4.23.
-
Go to http://www.postgresql.org/ftp/binary/v7.4.23/linux/rpms/fedora/fedora-9-i386/. Download the following 4 rpm packages:
postgresql-libs-7.4.23-1PGDG.f9.i386.rpm
postgresql-7.4.23-1PGDG.f9.i386.rpm
postgresql-server-7.4.23-1PGDG.f9.i386.rpm
postgresql-devel-7.4.23-1PGDG.f9.i386.rpm
And install them by issuing ( Please follow the exact order):
# rpm –ivh postgresql-libs-7.4.23-1PGDG.f9.i386.rpm
# rpm –ivh postgresql-7.4.23-1PGDG.f9.i386.rpm
# rpm –ivh postgresql-server-7.4.23-1PGDG.f9.i386.rpm
# rpm –ivh postgresql-devel-7.4.23-1PGDG.f9.i386.rpm
Installing PHP
-
Download PHP-5.2.4.tar.bz2 from http://www.php.net/downloads.php
-
Extract the file and from that folder (cd php-5.2.4) do:
$./configure \
--with-apxs2=/"PATH_TO_apxs"/apxs \
--with-mysql=/"PATH_TO_mysql"
--with-pgsql=/"PATH_TO_pgsql"
Where,
“PATH_TO_apxs” is /usr/local/apache/bin
"PATH_TO_mysql" is the path of header files of mysql. Normally it should be /usr/include/mysql (use /usr/ if this doesn’t work).
"PATH_TO_pgsql" is the path of header files of pgsql. Normally it should be /usr/include/pgsql. Ignore this option if you didn’t install postgreSQL.
-
If the last line says something like libxml2 not found, install it from your package manager. (install libxml2 and libxml2-devel)
-
Do
$make
$make install
-
Now restart the apache server:
$/usr/local/apache/bin/apachectl stop
$/usr/local/apache/bin/apachectl start
In case you get an error with libphp.so in httpd.conf(line 53) use this command:
$chcon -t texrel_shlib_t /usr/local/apache/modules/*.so
-
To test if php works write a small application, test.php:
PHP Test Page
|