FreeBSD Installation
From Joomla! Documentation
(Difference between revisions)
| Line 1: | Line 1: | ||
| + | [[Category:Tutorials]] | ||
| + | [[Category:Installation]] | ||
==Pre-requisites== | ==Pre-requisites== | ||
The following ports need to be installed before continuing | The following ports need to be installed before continuing | ||
Revision as of 01:08, 12 February 2011
Contents |
Pre-requisites
The following ports need to be installed before continuing
- Server running FreeBSD
- Ports directory downloaded from CVSUP or Portsnap.
- Knowledge on installing ports.
Installing Apache Server
- Execute the following commands to install your webserver.
cd /usr/ports/www/apache22- If you intalled your ports directory somewhere else make the change in the command
make config- Make any configuration changes you need to here, in most cases default will work fine
make install clean- This will install your web server
Installing PHP
- Execute the following commands to install PHP5
cd /usr/ports/lang/php5- If you installed your ports directory somehwre else make the change in the command
make config- Make any configuration changes you need here, You must enable APACHE
make install clean- This will install PHP5 onto your server
Installing Required PHP Extensions
- Execute the following commands to install the required php extensions listed below
- XML
- Simple XML
cd /usr/ports/textproc/php5-xml- If you installed your ports directory somewhere lese make the change in the command
make install- This will install the XML module to PHP5
cd /usr/ports/textproc/php5-simplexml- If you installed your ports direcotry somewhere else make the change in the command
Installing MYSQL
- Execute the following commabds to install your MYSQL server
cd /usr/ports/databases/mysql55- If you installed your ports directory somewhere else make the chage in the command
make config- Make any configuration changes you need here, in most cases default will work fine
make install clean- This will install your MYSQL server
Creating your MYSQL Database
- Execute the following commands to create your MYSQL database
- Note: In this example I am using jdatabase as the database name, juser as the username, and jpassword as the password to the user
- you should change these to whatever you wish as you run the commands
mysql- This will open the MYSQL interface
CREATE DATABASE jdatabase;- DO NOT forget the semicolon this is very VERY important
CREATE USER 'juser'@'localhost' identified by 'jpassword';- DO NOT forget the single quotes or semicolon they are very important
GRANT ALL ON jdatabase* TO juser;- This creates your databse, creates your user, and grants the user permission to control the database
- Do not forget your databse name, username, or password you will need them later
Configuring PHP
- By default php does not create your php.ini for you, but it does give you examples
- We will use these examples to create your php.ini
- Execute the following commands to create your php.ini
cd /usr/local/etc/- During the install we will use the development example
cp php.ini-Development php.ini- This creates a stock php.ini file, open it in your favorite text editor and modify it to your needs
- Once you are done with this you can go to your website and install joomla
Post Joomla Installation PHP Configuration
- Now you will want to change your php.ini to the production one so run the following commands
mv php.ini php.ini-Dev-Configured- We name it php.ini-Dev-Configured you can use it again later without re-configuring it
cp php.ini-Production php.ini- Now the poduction php.ini is installed so you need to configure it with your favorite text editor and you are done!