Firefox 16, a treat for developers http://t.co/cnd27CzT
How to install AMP and phpmyadmin in FreeBSD
In this tutorial i will show you how to install AMP (Apache, mysql, php ) and PHPmyadmin in FreeBSD 8.1 or 8.2 .![]()
Installing AMP in FreeBSD:
-
Install MySQL:
1. Go to the mysql55-server port directory by typing the command:
cd /usr/ports/databases/mysql55-server
2. Build the port by typing:
make BUILD_OPTIMIZED=yes BUILD_STATIC=yes
and start the installation with :
make install clean
3. Open /etc/rc.conf with your editor and add the line shown below to enable starting mysql server on boot.
mysql_enable="YES"
4. Start mysql manually
/usr/local/etc/rc.d/mysql-server start
5. Set a password for the MySQL root user by executing the command
/usr/local/bin/mysqladmin -uroot password 'new-password'
Done
#
-
Install Apache
1. Go to the apache22 port directory by entering the following command:
cd /usr/ports/www/apache22
2. install apache by typing:
make install clean
3. Open /etc/rc.conf with your editor and add the line shown below. to ensure that apache with start on boot
apache22_enable="YES"
#
-
Install PHP
1. Go to the php5 port directory by typing the command:
cd /usr/ports/lang/php52
2. Build and install the port by typing
make install clean
Make sure the APACHE (Build Apache module) option is ticked when configuring the build,
3. Go to the php52-extentions meta port :
cd /usr/ports/lang/php52-extentions
4. Build and install the port (Just accept the defaults )
make install clean
5.Copy the php.ini file:
cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini
6. Edit your Apache configuration file (/usr/local/etc/apache22/httpd.conf) and add this:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
7. in the DirectoryIndex add php extentions like:
DirectoryIndex index.php index.html
8: Configure httpd-languages.conf
Edit the Languageconfiguration file ”’/usr/local/etc/apache22/extra/httpd-languages.conf”’ and add the following lines:
AddDefaultCharset On
10. Start Apache :
/usr/local/etc/rc.d/apache22 start
you’re done!
#
-
Install PhpMyAdmin
Got to the phpmyadmin port directory by typing the command:
cd /usr/ports/databases/phpmyadmin
2. Build and install the port by typing:
make install clean
3. phpMyAdmin is now installed in /usr/local/www/phpMyAdmi, we have to create Alias and Directory entries in /usr/local/etc/apache22/httpd.conf. add the following lines to the <IfModule alias_module> section .
Alias /phpmyadmin /usr/local/www/phpMyAdmin
4. As /usr/local/www/phpMyadmin is outside of the Apache <DocumentRoot> you will have to make a <Directory> entry for it too, like :
<Directory "/usr/local/www/phpMyAdmin">
Order allow,deny
Allow from all
</Directory>
save and exit
5- last
cp /usr/local/www/phpMyAdmin/config.default.php /usr/local/www/phpMyAdmin/config.inc.php
Done .
you can access your phpmyadmin panel from http://hostname/phpmyadmi
{module user9-footer|none}
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Install and Configure Samba share in Ubuntu 13.04 Raring Ringtail , 12.10, 12.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comment(s) |
How to use Remote Desktop in Ubuntu : Sometimes, we need to access our computer from other locations when we’re not at home and such. This...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Recent Posts
- How to find Default Gateway in Linux
- Setup Backup server using rsnapshot on RHEL / CentOS / Ubuntu / Debian
- How to disable/change default PDF viewer in Mozilla Firefox
- Dictionaries in Python
- How to Install uTorrent Client on Ubuntu/Debian/Linux Mint
- Lists in Python
- Argument Handling in Python
- Setup your own Wikipedia like website using MediaWiki
- Administer your Server using Ajenti Server Manager
- “Brand New” Unixmen Forum is Now Live!
Recent Comments



















Ladi Oyekanmi
| #
Could you please assist in step by step on how to install nagios on solaris
Adhraa
| #
Greate tutorial :)
pigmej
| #
Just one thing:
What about pep8 in your python code ? How can you give ‘tutorials’ on quite popular website, of such a bad quality ?
Amit Rai
| #
I just renamed shared.xml and it logged in and created a new shared.xml.
DB Griffin
| #
Larry Page is not being completely honest! The manner in which the PRISM program/project works does not need access from company administrators or owners, so called “direct access”; the access to the information is already there. These tech company CEOs take for granted the actual intelligence of most end users of their products. All it takes is a little digging and reading to go from ignorant to informed on these things especially on exactly how the internet works/functions in the U.S.A. I find Larry Page’s remarks just as laughable as Al Gore’s claim to “inventing” the internet/world wide web!
If you, as an end user, are reading this post; I challenge you to research these matters yourself. It really is quite simple with all the “information sites” that exist on the web today ie Wikipedia, & other online encyclopedias that actually list source material, as well as highly respected tech sites and blogs that also list their source material. Be warned: this is only the tip of the iceberg and these tech CEOs know and understand this; they are scrambling in attempt to perform DAMAGE CONTROL to save the company and what little trust thay have left from their products end users/consumers.
Am I a skeptic? I believe someone has to be or needs to be at this point in time! If your not just a little skeptical of the government, tech companies, and the people that are in charge of these agencies and companies; you need to be, even if just a little skeptic. For your own personal protection and security! I know I was a part of this community for over 14 years!