Joom:SiteAdmin

From Kb_JMY(晉明夷)

Jump to: navigation, search

Joomla Site Administration Issues


Contents

Bad Admin Template installation corrupted my admin backend, pls.help!

  • Solutions:
  • Go to phpMyAdmin and looks for the database table "dst_templates_menu" which stores:
-> the current administration template, e.g. "mambo_admin_blackwine" and
-> the current Site Template, e.g. "rhuk_solarflare_ii"
  • De-select the problem admin template by setting its "client_id" from "1" to "0"
  • Go back to the admin backend, select "Site" -> "Template Manager" -> "Administrator Templates"
  • You will find none of the templates are selected
-> select any good admin template, e.g. "joomla Admin"
  • That's it!


User Management

  • Ans: Go to your admin. backend --> global configuration --> change "allow user registration" to "NO".


How to move site from one hosting company to another?

  • Ref:
  1. joomla.org -- How to move from one hosting company to another?
  2. joomla.org -- FAQ: Moving Your Joomla! Site(files and configuring of configuration.php)
  3. joomla.org -- Moving / Exporting Joomla's mySql DB to another host via phpmyadmin
  • Assume:
  1. Joomla: Joomla_1.0.12-Full_Package(Chinese-Beta1).tar.gz
  2. addons: VirtueMart_1.0.10-COMPLETE_PACKAGE.zip
  3. addons: G2 bridge v2.0.14beta (com_gallery2_v2.0.14_beta.zip & com_joomlalib_1_3_1.zip) + update patch
  4. 3rd party application: Gallery2 v2.2.1 (gallery-2.2.1-full.tar.gz)


  • Suppose your site is originally hosted here:
  • program directory: /home/mysite01/public_html/mac
  • database name: mysite01_mac [Note: Don't forget to record down dbase user name and password]
-> Here you back up the program directory and database
  • and will be moved to another hosting company with:
  • program directory: /home/mysite02/public_html/mac
  • database name: mysite02_mac
-> Here you re-store the program directory and database
  • the 3rd step: Update the configuration file "configuration.php" to reflect new settings as follows:
 line06: $mosConfig_absolute_path = '/home/mysite02/public_html/mac';
 line10: $mosConfig_cachepath = '/home/mysite02/public_html/mac/cache'; 
 line13: $mosConfig_db = 'mysite02_mac';      // i.e. dbase name
 line69: $mosConfig_user = 'mysite02_mac';    // i.e. dbase user name 

 //*** If domain name also changed to http://mysite02.com , you need to change also:
 line29: $mosConfig_helpurl = 'http://www.mysite02.com';
 line44: $mosConfig_live_site = 'http://www.mysite02.com/mac';
 line47: $mosConfig_mailfrom = 'admin@mysite02.com';
  • Step4: check all the Joomla addons if server path or URL needs to be updated:
  • e.g. Virtuemart's settings:
  • In Joomla Admin backend,
  • go "components" -> "Virtuemart"
  • then go "admin" -> "configuration" -> "Path & URL"
-> update the "SECUREURL" to: http://www.mysite02.com/mac/
-> then click the "Downloads" tab
-> update the "DOWNLOADROOT" to: /home/mysite02/public_html/mac/


  • Step5: update Joomla bridge addons (G2 bridge here) to reflect new settings:
  • login Joomla's admin backend
-> click "components" -> "Gallery 2" -> "Settings"
-> update the G2 path as follows:
all the above works, until I start updating G2 bridge to make it works in the new site, "mysite02"!
-> I tried to edit manually or using the wizard of G2 bridge to update the G2 server path and URL, both get it correctly:
    Gallery 2 Path: /home/mysite02/public_html/macg2/embed.php
      Gallery 2 Url: http://www.mysite02.com/macg2/

-> what I get is just a "blank page" when I click on the new links I created to link the G2 bridge component!

-> I have checked that the standalone Gallery2 is working!


  • Configure your .htaccess file in the new location if neccessary


Packaging Addons into Joomla

  • Solution#1: <-- Tried Good for http://forum.6MillionDollarPage.org (2006.12.15)!
  • a modified version of Solution#2.
  • Setup the package with wanted addons
=> Make the (1) installtion files "Joomla_v1.0.11_wPacked_addons.zip"
=> (2) backed database "site1_joom1.sql"
=> (3) note down the admin login name and password.
  1. Install Joomla as normal
  2. RENAME instead of delete installation folder (you will need to add it to the zip) to e.g. "__installation";
  3. Install all extentions as per instructions for each.
  4. Backup the database with name, e.g. "site1_joom1.sql"
  5. Rename the __installation back to installation
  6. Rename configuration.php to "__configuration.php"
  7. Zip all files and folders (making sure to maintain file and folder structure in the zip) with name, e.g. "Joomla_v1.0.11_wPacked_addons.zip"
  • Install "Joomla_v1.0.11_wPacked_addons.zip" as normal Joomla installation
  1. Upload that zip and extract all the files to the webroot of the target site.
  2. Install as normal Joomla installation (Note: At "installation Step1", a Warning Message "JS_NO_DB_ALERT3" is popped up, don't know if problem, but just leave it now and observe)
  3. check to see if there are any patches since the time you made this package and patch accordingly.
  4. Note that file permissions will not be retained by the zip so you will have to go through all the permission steps during install and patch as usual. And you will most likely have to edit the userlist and remove one of the Administrators.
  • Setting up the database
  1. Go to phpMyAdmin and select the database
  2. drop all existing tables
  3. import the backed database "site1_joom1.sql" -- Just one more step to complete:
  • Correcting Admin Login
  1. login using the admin login name and password of the packaged installation as stored in "site1_joom1.sql";
  2. Change them to what you want.
  3. That's it!


  • Solutions2: <-- Problems at step4! sql-subfolder per language!!
You may want to creat an installation file that includes specific extensions in addition to the core Joomla!. You might want to do this if you have or plan to create many sites that all use the same basic suite of extensions.
  1. Install Joomla as normal
  2. RENAME instead of delete installation folder (you will need to add it to the zip)
  3. Install all extentions as per instructions for each.
  4. Backup the database and name the file joomla.sql and place into the sql folder of the installation folder you renamed.
  5. Rename the installation folder to installation from whatever you renamed it.
  6. Zip all files and folders (making sure to maintain file and folder structure in the zip) but do not zip the configuration.php that was created during install.
  7. Upload that zip and extract all the files to the webroot of the target site.
  8. Install as normal
  9. check to see if there are any patches since the time you made this package and patch accordingly.
  10. Note that file permissions will not be retained by the zip so you will have to go through all the permission steps during install and patch as usual. And you will most likely have to edit the userlist and remove one of the Administrators.


Security issues




Personal tools