-
Q:
[Joomla] Verhuizing problemen
Beste OMT’ers,
Ik heb er nog niet heel veel ervaring mee maar ik probeer een joomla gebaseerde website te verhuizen. Ik had de database geëxporteerd als .sql en die in de nieuwe database geïmporteerd. Ik heb ook de configuration.php gekopieerd en die doet het nu dus niet. Misschien ook wel logisch, het absolutepath en dergelijke is nu natuurlijk veranderd. Nu heb ik ook even een schone installatie van joomla op de nieuwe server gezet om te kijken hoe hij de configuration.php dan maakt.
Mijn configuration.php.
[code:1:ad1c08d0b9]<?php
$mosConfig_MetaAuthor = ‘1’;
$mosConfig_MetaDesc = ‘Parkzoom is het gezondheidscentrum in Bergschenhoek. In het gezondheidscentrum zijn de volgende disciplines te vinden: huisarts, apotheek, fysiotherapie, verloskunde, thuiszorg.’;
$mosConfig_MetaKeys = ‘Parkzoon,Parkzoom, Janson, gezondheidscentrum, bergschenhoek, huisarts, apotheek, fysiotherapie, verloskunde, thuiszorg, multidisciplinair.’;
$mosConfig_MetaTitle = ‘1’;
$mosConfig_absolute_path = ‘/home/parkzoom/domains/gc-parkzoom.nl/public_html/joomla’;
$mosConfig_admin_expired = ‘1’;
$mosConfig_allowUserRegistration = ‘0’;
$mosConfig_back_button = ‘0’;
$mosConfig_cachepath = ‘/home/parkzoom/domains/gc-parkzoom.nl/public_html/joomla/cache’;
$mosConfig_cachetime = ‘900’;
$mosConfig_caching = ‘0’;
$mosConfig_db = ‘parkzoom_joomla’;
$mosConfig_dbprefix = ‘jos_’;
$mosConfig_debug = ‘0’;
$mosConfig_dirperms = ”;
$mosConfig_editor = ‘tinymce’;
$mosConfig_enable_log_items = ‘1’;
$mosConfig_enable_log_searches = ‘1’;
$mosConfig_enable_stats = ‘1’;
$mosConfig_error_message = ‘This site is temporarily unavailable.<br /> Please notify the System Administrator’;
$mosConfig_error_reporting = ‘-1’;
$mosConfig_favicon = ‘favicon.ico’;
$mosConfig_fileperms = ”;
$mosConfig_fromname = ‘Gezondheidscentrum Parkzoom’;
$mosConfig_frontend_login = ‘1’;
$mosConfig_frontend_userparams = ‘1’;
$mosConfig_gzip = ‘0’;
$mosConfig_helpurl = ‘http://help.joomla.org’;
$mosConfig_hideAuthor = ‘1’;
$mosConfig_hideCreateDate = ‘1’;
$mosConfig_hideEmail = ‘1’;
$mosConfig_hideModifyDate = ‘1’;
$mosConfig_hidePdf = ‘1’;
$mosConfig_hidePrint = ‘1’;
$mosConfig_hits = ‘0’;
$mosConfig_host = ‘localhost’;
$mosConfig_icons = ‘0’;
$mosConfig_item_navigation = ‘0’;
$mosConfig_lang = ‘dutch’;
$mosConfig_lifetime = ‘900’;
$mosConfig_link_titles = ‘0’;
$mosConfig_list_limit = ’30’;
$mosConfig_live_site = ‘http://www.gc-parkzoom.nl/home’;
$mosConfig_locale = ‘nl_NL’;
$mosConfig_mailer = ‘mail’;
$mosConfig_mailfrom = ‘[email protected]’;
$mosConfig_multilingual_support = ‘0’;
$mosConfig_multipage_toc = ‘0’;
$mosConfig_offline = ‘0’;
$mosConfig_offline_message = ‘This site is down for maintenance.<br /> Please check back again soon.’;
$mosConfig_offset = ‘-1’;
$mosConfig_offset_user = ‘1’;
$mosConfig_pagetitles = ‘1’;
$mosConfig_password = ‘*****’;
$mosConfig_readmore = ‘0’;
$mosConfig_secret = ‘H9CFFieWKbZAR7cE’;
$mosConfig_sef = ‘0’;
$mosConfig_sendmail = ‘/usr/sbin/sendmail’;
$mosConfig_session_life_admin = ‘1800’;
$mosConfig_session_type = ‘0’;
$mosConfig_shownoauth = ‘0’;
$mosConfig_sitename = ‘Gezondheidscentrum Parkzoom’;
$mosConfig_smtpauth = ‘0’;
$mosConfig_smtphost = ‘localhost’;
$mosConfig_smtppass = ”;
$mosConfig_smtpuser = ”;
$mosConfig_uniquemail = ‘1’;
$mosConfig_user = ‘parkzoom_joomla’;
$mosConfig_useractivation = ‘1’;
$mosConfig_vote = ‘0’;
setlocale (LC_TIME, $mosConfig_locale);
?>[/code:1:ad1c08d0b9]De configuration.php die ik heb gemaakt om te kijken hoe hij er dan uit ziet.
[code:1:ad1c08d0b9]<?php
/**
* @version $Id: configuration.php-dist 7424 2007-05-17 15:56:10Z robs $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software and parts of it may contain or be derived from the
* GNU General Public License or other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
* ————————————————————————-
* THIS SHOULD ONLY BE USED AS A LAST RESORT WHEN THE WEB INSTALLER FAILS
*
* If you are installing Joomla manually i.e. not using the web installer
* then rename this file to configuration.php e.g.
*
* UNIX -> mv configuration.php-dist configuration.php
* Windows -> rename configuration.php-dist configuration.php
*
* Now edit this file and configure the parameters for your site and
* database.
* ————————————————————————-
* Database configuration section
* ————————————————————————-
*/
$mosConfig_offline = ‘0’;
$mosConfig_host = ‘localhost’; // This is normally set to localhost
$mosConfig_user = ‘parkzoom_iTvVwjo’; // MySQL username
$mosConfig_password = ‘********’; // MySQL password
$mosConfig_db = ‘parkzoom_iTvVwjo’; // MySQL database name
$mosConfig_dbprefix = ‘itvv_’; // Do not change unless you need to!
/**
* ————————————————————————-
* Site specific configuration
* ————————————————————————-
*/
if(!defined(’RG_EMULATION’)) { define( ‘RG_EMULATION’, 0 ); } // Off by default for security
$mosConfig_lang = ‘english’; // Site language
$mosConfig_absolute_path = ‘c’; // No trailing slash
$mosConfig_live_site = ‘http://gc-parkzoom.nl/joomla’; // No trailing slash
$mosConfig_sitename = ‘My Joomla Site’; // 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 = ‘/home/parkzoom/domains/gc-parkzoom.nl/public_html/joomla/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 = ‘*********’; //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
?>[/code:1:ad1c08d0b9]Nu geeft hij deze meldingen met mijn configuration.php (de bovenste dus).
Het rare is ook nog dat als ik naar …/administrator/ ga dat hij dan wel wat laat zien maar met het oude wachtwoord het niet doet. Ook niet als ik in PHPMyAdmin het wachtwoord verander. Heel raar allemaal. Wie kan mij helpen?
Tip 1, gebruik geen Joomla! dat is echt het meest onveilige CMS systeem wat er bestaat. Gebruik het dan ook al helemaal niet als je geen kennis hebt van PHP en MySQL.
Punt 2, wat er mis gaat is dat hij geen dutch.php bestand kan vinden. Je path klopt dus niet of ’t bestand is niet aanwezig.
Heb je de mappen op de server de goede rechten gegeven?
Volgens mij gaat het hier fout in de config:
[code:1:0214fb2f8a]$mosConfig_absolute_path = ‘/home/parkzoom/domains/gc-parkzoom.nl/public_html/joomla’;
$mosConfig_live_site = ‘http://www.gc-parkzoom.nl/home’; [/code:1:0214fb2f8a]Als de hierbovenstaande $mosConfig_live_site klopt zal de $mosConfig_absolute_path moeten zijn:
[code:1:0214fb2f8a]$mosConfig_absolute_path = ‘/home/parkzoom/domains/gc-parkzoom.nl/public_html/home’;
[/code:1:0214fb2f8a]Succes ermee!
”Jeroen-W”Heb je de mappen op de server de goede rechten gegeven?
Volgens mij gaat het hier fout in de config:
[code:1:f33f069699]$mosConfig_absolute_path = ‘/home/parkzoom/domains/gc-parkzoom.nl/public_html/joomla’;
$mosConfig_live_site = ‘http://www.gc-parkzoom.nl/home’; [/code:1:f33f069699]Als de hierbovenstaande $mosConfig_live_site klopt zal de $mosConfig_absolute_path moeten zijn:
[code:1:f33f069699]$mosConfig_absolute_path = ‘/home/parkzoom/domains/gc-parkzoom.nl/public_html/home’;
[/code:1:f33f069699]Succes ermee!
Bedankt, die absolute path was inderdaad gewoon fout. Wat een slordige fout. Toch super bedankt!
”MartijnTip 1, gebruik geen Joomla! dat is echt het meest onveilige CMS systeem wat er bestaat. Gebruik het dan ook al helemaal niet als je geen kennis hebt van PHP en MySQL.
Punt 2, wat er mis gaat is dat hij geen dutch.php bestand kan vinden. Je path klopt dus niet of ’t bestand is niet aanwezig.
Wat zou jij dan aanraden? Ik gebruik Joomla omdat er veel mogelijkheden zijn en veel voorgeschreven scripts en templates.
Tip 1, gebruik geen Joomla! dat is echt het meest onveilige CMS systeem wat er bestaat. Gebruik het dan ook al helemaal niet als je geen kennis hebt van PHP en MySQL.
Zucht.
Inderdaad Joomla! up to date houden, en geen gekke modules installeren die al 300 dagen niet meer geupdate zijn etc…
Maar onveilig is het niet per definitie. We werken hier met tientallen of honderden sites over de laatste 3 jaar, en er zijn pas 2 gehacht door “klanten” fouten. Niet door Joomla! zelf.Maar laten we die discussie niet weer voeren
Je moet ingelogd zijn om een reactie op dit onderwerp te kunnen geven.