Installing phpbb on Fedora-Linux Before installing phpbb the following need to be installed




Дата канвертавання19.04.2016
Памер31.03 Kb.
Installing phpBB on Fedora-Linux

Before installing phpBB the following need to be installed:



Installing Apache HTTP Server

  1. Download the Apache HTTP server httpd-2.2.6.tar.bz2 from

http://httpd.apache.org/download.cgi

  1. 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.



  1. 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

  1. 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

  1. Since phpBB2 only support PostgreSQL7.x as we’ll see on the installation page. We chose to install PostgreSQL7.4.23.

  2. 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


  1. Download PHP-5.2.4.tar.bz2 from http://www.php.net/downloads.php

  2. 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.



  1. If the last line says something like libxml2 not found, install it from your package manager. (install libxml2 and libxml2-devel)



  1. Do

$make

$make install




  1. 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



  1. To test if php works write a small application, test.php:







PHP <a href="/developing-an-iq-test-concept-and-goal.html">Test Page</a>







База данных защищена авторским правом ©shkola.of.by 2016
звярнуцца да адміністрацыі

    Галоўная старонка