What is phpMyFAQ?

phpMyFAQ is a multilingual, completely database-driven FAQ-system. phpMyFAQ also offers a multi-language Content Management-System with a WYSIWYG editor and an Image Manager, flexible multi-user support with user and group based permissions on categories and records, a wiki-like revision feature, a news system, user-tracking, language modules, enhanced automatic content negotiation, templates, extensive XML-support, PDF-support, a backup-system, a dynamic sitemap, related articles, tagging, RSS feeds, built-in spam protection systems, LDAP support,

Process to install phpmyfaq with source file.

Needed package for phpmyfaq.
2.Php with gd and curl
4.Phpmyfaq tar file

Apache Installation steps

Installation of Apache2 from source on ubuntu with php.
Install all dependencies needed by the apache

phpmyfaq@hari:~$ sudo apt-get install build-essential
phpmyfaq@hari:~$ sudo apt-get build-dep apache2
phpmyfaq@hari:~$ apt-get install openssl libssl-dev

Download the latest Apache
We can download the latest apache form the link . Lets download
the apache source file and install.

phpmyfaq@hari:~$ wget
phpmyfaq@hari:~/download$ tar -jxvf httpd-2.2.27.tar.bz2
phpmyfaq@hari:~/download$ cd httpd-2.2.27
phpmyfaq@hari:~/download/httpd-2.2.27$ vi ins
"./configure" \
"--prefix=/home/phpmyfaq/apache" \
"--enable-so" \
"--enable-cgi" \
"--enable-info" \
"--enable-rewrite" \
"--enable-speling" \
"--enable-usertrack" \
"--enable-deflate" \
"--enable-ssl" \
"--enable-mime-magic" \
"--with-included-apr" \
phpmyfaq@hari:~/download/httpd-2.2.27$ chmod +x ins
phpmyfaq@hari:~/download/httpd-2.2.27$ sh ins
phpmyfaq@hari:~/download/httpd-2.2.27$ make
phpmyfaq@hari:~/download/httpd-2.2.27$ make install


Download/unpack PHP source from the PHP website, pick the latest from the 4.x series or 5.x series.

phpmyfaq@hari:~/download$ tar -jxvf php-5.6.0.tar.bz2
phpmyfaq@hari:~/download$ cd php-5.6.0
phpmyfaq@hari:~/download/php-5.6.0$ vi ins
'./configure' \
'--with-apxs2=/home/phpmyfaq/apache/bin/apxs' \
'--prefix=/home/phpmyfaq/apache/php5' \
'--with-config-file-path=/home/phpmyfaq/apache/php5' \
'--with-zlib' \
'--with-mysql' \
'--enable-zip' \
'--with-gd' \
'--with-jpeg-dir' \
'--with-freetype-dir=/usr/include/freetype2' \
'--enable-gd-native-ttf' \
phpmyfaq@hari:~/download/php-5.6.0$chmod +x ins
phpmyfaq@hari:~/download/php-5.6.0$ make
phpmyfaq@hari:~/download/php-5.6.0$ make install
phpmyfaq@hari:~/download/php-5.6.0$cp -p .libs/ /home/phpmyfaq/apache/modules
phpmyfaq@hari:~/download/php-5.6.0$cp -p php.ini-recommended /home/phpmyfaq/apache/php/php.ini

You only need the –with-apxs2, and prefix lines. –with-mysql adds MySql (you need to specify the directory if it’s in a unusual location (e.g., –with-mysql=/usr/local ), –with-config-file moves the php.ini file location, disable-cgi disables the CGI version, which is not needed if you use Apache modules. It also enables and installs the command line interface (CLI) version. –with-zlib allows use of gzip-type compression, –with-gettext is for internationalization, and –with-gdbm allows access to GDBM databases. For more information, type ./configure –help and see the “Installation” chapter in the PHP Manual,

For any php related error please check the below link.

Check the below directives are in httpd.conf

# Make sure there’s only **1** line for each of these 2 directives:
# Use for PHP 4.x:
#LoadModule php4_module modules/
#AddHandler php-script .php
# Use for PHP 5.x:
LoadModule php5_module modules/
AddHandler php5-script .php
# Add index.php to your DirectoryIndex line:
DirectoryIndex index.html index.php
AddType text/html .php
# PHP Syntax Coloring
# (optional but useful for reading PHP source for debugging):
AddType application/x-httpd-php-source phps

Lets start now apache

phpmyfaq@hari:~$ cd apache
phpmyfaq@hari:~/apache$/home/phpmyfaq/apache/bin/apachectl start
phpmyfaq@hari:~/apache/bin$ ./httpd -t
Syntax OK

Access your webserver with your favorite browser. The following is a good test page to use for PHP. You only need the one line in bold is needed to display PHP configuration information. Name the file anything you want, but it must end with .php, such as phpinfo.php, and move the file to your web server content directory (for me /home/phpmyfaq/apache/htdocs), with read permission set:

#vi php
	<title>PHP Test</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<h1>PHP Test</h1>
<b>An Example of PHP in Action</b>
<?php echo "The Current Date and Time is:
			echo date("g:i A l, F j Y.");?>
<h2>PHP Information</h2>
<?php phpinfo(); ?>




Now access php page by http://yourmachineip:port/php


Below is the apr sources files link with installation which is needed before compilation

phpmyfaq@hari:~/download$gzip -d apr-1.4.6.tar.gz; tar xvf apr-1.4.6.tar
phpmyfaq@hari:~/download$gzip -d apr-util-1.4.1.tar.gz; tar xvf apr-util-1.4.1.tar
phpmyfaq@hari:~/download$gzip -d httpd-2.4.3.tar.gz; tar xvf httpd-2.4.3.tar
phpmyfaq@hari:~/download$mv apr-1.4.6 httpd-2.4.3/srclib/apr
phpmyfaq@hari:~/download$mv apr-util-1.4.1 httpd-2.4.3/srclib/apr-util cd httpd-2.4.3
phpmyfaq@hari:~/download/httpd-2.4.3$./configure –with-included-apr –with-pcre
phpmyfaq@hari:~/download/httpd-2.4.3$make; make install

Mysql installation for phpmyfaq

Installation of mysql-server in ubuntu

phpmyfaq@hari:~/download$sudo apt-get install mysql-server
phpmyfaq@hari:~/download$sudo apt-get install build-essential apache2-threaded-dev apache2-mpm-prefork apache2-prefork-dev libcurl4-openssl-dev
phpmyfaq@hari:~/download$sudo apt-get install libsqlite3-dev sqlite3 mysql-server libmysqlclient-dev libreadline-dev libzip-dev libxslt1-dev
phpmyfaq@hari:~/download$sudo apt-get install libicu-dev libmcrypt-dev libmhash-dev libpcre3-dev libjpeg-dev libpng12-dev libfreetype6-dev libbz2-dev libxpm-dev 

You can also get information on compilation from below link.

You can also install Free type and gd installation through source

How do i install Php Curl on linux debian?

#apt-get update
#apt-get install curl libcurl3 php5-curl 

We need to create database can be named as phpmyfaq.

mysql> create database phpmyfaq
TO 'phpmyfaq'@'localhost' IDENTIFIED BY 'root123'; 

Links for configuring UI


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s