How to install joomla on debian etch


1. install a LAMP server ... make sure to install php4-myql package..... make sure you areaq able to connect mysql through php withe following script ... add this test.php in /var/www/apache2-default/

<?php
include("config.php");
mysql_connect("$dbhost", "$dbuname", "$dbpass");
mysql_select_db("$dbname");
echo mysql_error();
phpinfo();
?>

 
2.download the joomla tar files in /var/www/joomal
 
3 .chmod all the directories in /var/www/joomal to 777
 
create database joomla
mysqladmin -u root -pthepassword create joomla

mysql -u root -p
Enter Password:
mysql> GRANT ALL ON joomla.* to 'joomla'@'localhost' IDENTIFIED BY '';
quit; 
 
mv /var/www/joomla/configuration.php-dist to /var/www/joomla/configuration.php
 
edit /var/www/joomla/configuration.php
 
$mosConfig_lang = 'english';                            // Site language
$mosConfig_absolute_path = '/var/www/joomla';   // No trailing slash
$mosConfig_live_site = 'http://test-server.com';        // No trailing slash
$mosConfig_sitename = 'Joomla';                         // Name of Joomla site
$mosConfig_shownoauth = '0';                            // Display links & categories users don't have access to
$mosConfig_useractivation = '1';                        // Send new registration passwords via e-mail
$mosConfig_uniquemail = '1';                            // Require unique email adress for each user
$mosConfig_offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';
$mosConfig_lifetime = '900';                            // Frontend Session time
$mosConfig_session_life_admin = '1800';         // Admin Session Time
$mosConfig_MetaDesc = 'Joomla - the dynamic portal engine and content management system';
$mosConfig_MetaKeys = 'joomla';
$mosConfig_MetaTitle = '1';
$mosConfig_MetaAuthor = '1';
$mosConfig_debug = '0';
$mosConfig_locale = 'en_GB';
$mosConfig_offset = '0';                                // Server Local Time
$mosConfig_offset_user = '0';                   // User Local Time
$mosConfig_hideAuthor = '0';
$mosConfig_hideCreateDate = '0';
$mosConfig_hideModifyDate = '0';
$mosConfig_hidePdf = '0';
$mosConfig_hidePrint = '0';
$mosConfig_hideEmail = '0';
$mosConfig_enable_log_items = '0';
$mosConfig_enable_log_searches = '0';
$mosConfig_enable_stats = '0';
$mosConfig_sef = '0';
$mosConfig_vote = '0';
$mosConfig_gzip = '0';
$mosConfig_multipage_toc = '0';
$mosConfig_allowUserRegistration = '1';
$mosConfig_error_reporting = -1;
$mosConfig_error_message = 'This site is temporarily unavailable.<br />Please contact your System Administrator.';
$mosConfig_link_titles = '0';
$mosConfig_list_limit = '30';
$mosConfig_caching = '0';
$mosConfig_cachepath = '/var/www/joomla/install/cache';
$mosConfig_cachetime = '900';
$mosConfig_mailer = 'mail';
$mosConfig_mailfrom = '';
$mosConfig_fromname = '';
$mosConfig_sendmail = '/usr/sbin/sendmail';
$mosConfig_smtpauth = '0';
$mosConfig_smtpuser = '';
$mosConfig_smtppass = '';
$mosConfig_smtphost = 'localhost';
$mosConfig_back_button = '1';
$mosConfig_item_navigation = '1';
$mosConfig_secret = 'FBVtggIk5lAzEU9H'; //Change this to something more secure
$mosConfig_pagetitles = '1';
$mosConfig_readmore = '1';
$mosConfig_hits = '1';
$mosConfig_icons = '1';
$mosConfig_favicon = 'favicon.ico';
$mosConfig_fileperms = '';
$mosConfig_dirperms = '';
$mosConfig_helpurl = 'http://help.joomla.org';
$mosConfig_mbf_content='0';
$mosConfig_editor = 'tinymce';
$mosConfig_admin_expired = '1';
$mosConfig_frontend_login = '1';
$mosConfig_frontend_userparams = '1';
$mosConfig_itemid_compat = '0';
setlocale (LC_ALL, $mosConfig_locale);                  // Country locale
 
chmod 777 /var/www/joomla/configuration.php
 
 
4. mkdir -p /var/log/test-server.com/
mkdir -p /var/log/test-server.com/joomla/
 
 edit the /etc/apache2/sites-available/default and add the following
<VirtualHost *>
        # Basic setup
        ServerAdmin webmaster@test-server.com
        ServerName test.debain.com
        DocumentRoot /var/www/joomla/


# HTML documents, with indexing.
        <Directory />
        Options +Includes
        </Directory>

# CGI Handling
#  ScriptAlias /cgi-bin/ /home/www/www.foo.com/cgi-bin/
# <Location /cgi-bin>
#  Options +ExecCGI
# </Location>

#Logfiles
         ErrorLog  /var/log/test-server.com/joomla/error.log
         CustomLog /var/log/test-server.com/joomla/access.log combined
 </VirtualHost>

restart apache 2

now try http://www.test-server.com/administrator/ -----> admin login

http://www.test-server.com -----> your site

all holds true if DNS settinga are changed ( i have used a internal DNS server )


--

No comments:

Other Articles

Enter your email address: