Wednesday, January 13, 2010

Swollen Joints And Hives

Site on dynamic virtual local host [01-03] - Fedora How-to





Last Revised: January 12 2011


A how-to
to run a dynamic site

locally under Fedora? With all the guides that are out there?
Maccome Yes, you say, just take a

open source CMS like Joomla
! , go to Joomla.org or Joomla.it
or
Joomlaitalia.com
, and is everything you want.
Mmmmmhhh, everything? Not really. There is always something that does not work, statement or not suitable, or a small hiccup interpretation, or a setting to review, and I broke the boxes to waste time.
This is a pro-
full memo that allows you to get to run a dynamic site (PHP
,

Perl, Python

) as Joomla, but Drupal
or other, locally on the virtual site to test it offline with all the templates we want, with
RDBMS - Relational database management system - running, passing across a line
problemini
normally meet and that it is very difficult to be taken into consideration all together for each of the individual sources, before the site is able to activate. short, a simple step by step
for noobs like me, like "you know, for example., Joomla? No? So, if you give me 20 minutes to prove you do it on your Linuxbox ..." :-D
NB for everything related to the ' yumex to install, easier to find if you select view groups or, alternatively, type the package installer in console root
provenance (

if you belong to the group sudo sudoers , or by logging in as root up with
(enter) and password (enter)) First step: I assume that we start from scratch , that in Linuxbox there is installed and activated a server LAMP / LAPP , a group of server-side: -

Linux - the operating system; - Apache http server - server Web - MySQL or PostgreSQL RDBMS - relational database management system server side - PHP - scripting language
. Two caveats:
- as is known, the second P can be, instead of PHP, Perl or Python, depending on the selected language.
- the server that you can be can be LAMP LAPP instead, which means that the RDBMS can be chosen (replacing the P M) between MySQL and Postgres . . Both of these are present in the RDBMS repository . The choice should be based on the actual support the hosting provider offers chosen (eg. Linux instead of Win). Create a system that is based on PostgreSQL to find that is not fully supported, unlike MySQL, it might not be nice. The privilege to postgreSQL imo would be given not only because this is RDBMS objectively superior to MySQL, PostgreSQL, but also because, besides being open source also , is still under development, while development of MySQL, after the recent acquisition by Oracle ,

Sun (Java, OpenOffice, Solaris, MySQL) and statements made by its CEO, remains for now, sadly, a great unknown.
Unfortunately for Postgres, its support in Joomla is more complex, so it is advisable for a quick installation using MySQL, however, listed below are the instructions for installation. Because LAMP is essential for our purposes, let's
download and activate it to
.
Linux. If you have not already installed, then go straight on Fedora project and download it. NB it will take a while for you 'more than 20 minutes ... :-DDD



Apache 2 # yum-y install httpd goes anyway checked that the following packages are also installed with the following command: # yum-y install httpd-manual install mod_perl mod_python mod_ssl mod_auth_mysql mod_auth_pgsql awstats distcache crypto-utils To start the server: # / etc / init. d / httpd start For verification, type in the browser http://localhost will see the welcome page of Apache To stop the server: # / etc / init.d / httpd stop To restart the server: # / etc / init.d / httpd restart
For simplicity, instead of
# / etc / init.d / servicename can commandname
be used # service servicename commandname The httpd: # service httpd restart

PHP [NB I do not want to look on the net the way to prevent php code to be written to interfere with native code which is written the blog, resulting in modified if not eliminated. The quickest way for all lines of php code that will follow, was to replace the initial element (\u0026lt;) and end (>) of a script with the element (§).
Obviously, the lines of code from this article copincollate may not work until the restoration of the original elements.]
# Yum install php -y install php

still has to be checked that they are also installed the following packages with the following command: # yum-y install php-mysql php-pgsql tomcat5 phpldapadmin phpmyadmin php-odbc php-ldap php php-pdo-pgsql perl-DBD-MySQL perl-DBI

To test it:

# / etc / init.d / httpd restart
# gedit / var / www / html / testphp.php
included in § this script file? php phpinfo ();? §

Save in the browser and type:
http://localhost/testphp.php


MySQL
# yum-y install mysql
still has to be checked that they are installed also the following packages with the following command:
# yum-y install mysql-server php-mysql MySQL-python libdbi-dbd-mysql mysql-devel mod_auth_mysql perl-DBD-MySQL mysql-gui-common mysql-gui-tools mysql mysql-libs-query-browser
To install the MySQL control center (the F14 release): # yum-y install mysql-workbench

or even, and probably better
# yum install phpMyAdmin

mysql-administrator is a ' graphical interface that is launched from the menu system.
phpMyAdmin, however, is a graphical browser that launches into space by writing the URL:
http://localhost/phpmyadmin/

This will be useful later (post 03 of 03) talking about the management of the database.

PostgreSQL

an alternative to MySQL

can install Postgres. # yum-y install postgresql
still has to be checked that they are also installed the following packages with the following command:
# yum-y install postgresql-jdbc postgresql-contrib postgresql-python libdbi-dbd-pgsql unixODBC perl-DBD- ODBC-Pg postgresql postgresql-test-utils rhdb qt-postgresql postgresql-server


Install pgSQL control center
# yum-y install phpPgAdmin pgAdmin3

(go to 02 of 03 ->)



0 comments:

Post a Comment