Severname in Confixx ändern

cybernoon

New Member
Hallo Leute,
ich benötige eine Dummi-Anleitung um den Servernamen in Confixx zu ändern. Ich habe keine Lust den Server neu zu installieren.

Ich bin der Meinung es sollte einen Weg geben. Muss dazu sagen, dass ich nicht viel Ahnung von Unix/Linux habe, aber ich bin lernfähig.

Vielen Dank

Chris
 
Hier mal eine kurze Anleitung, vielleicht hilft sie dir weiter (Serverpfade ggf. anpassen):

Zur Änderung des Hostnames:

Zuerst im Confixx-Adminlevel unter Einstellungen Standarddomain die neu Domain ändern.

Bitte immer ein Backup aller Dateien machen, welche Sie editieren! In folgende Dateien, Ihre Domain eintragen:

/root/confixx/confixx_main.conf:
$stdDomain = 'stratoserver-th-root6.de';


/srv/www/htdocs/confixx/settings.inc.php:
$hostname = 'stratoserver-th-root6.de';


/srv/www/htdocs/confixx/html/phpMyAdmin/config.inc.php:
$cfg['PmaAbsoluteUri'] = 'http://stratoserver-th-root6.de/phpMyAdmin/';


/etc/httpd/confixx_mhost.conf:
ServerName stratoserver-th-root6.de
CustomLog /var/log/httpd/confixx/stratoserver-th-root6.de_access.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
ErrorLog /var/log/httpd/confixx/stratoserver-th-root6.de_error.log


/etc/httpd/httpd.conf:
ServerName stratoserver-th-root6.de

Danach muß noch der Apache neugestartet werden:

/etc/init.d/apache restart
 
Nicht zu vergessen, der Hostname wird auch in der Datenbank des Confixx gespeichert...

Die kann man über folgendes Script ändern:

Code:
#!/bin/sh
# 
# Syntax: ./hcaendern.sh <alter.hostname> <neuer.hostname>
# Passwort welches abgefragt wird ist das vom MySQL-User root
#
mysqldump -alQ --add-drop-table -uroot -p confixx > confixx-alt.sql
cp confixx-alt.sql confixx-neu.sql
replace "$1" "$2" -- confixx-neu.sql /root/confixx/confixx_main.conf
mysql -uroot -p confixx < confixx-neu.sql
/root/confixx/confixx_counterscript.pl -fa -ft
/root/confixx/admin/subs/webPages_install.pl

Lieben Gruß
ESchauer
 
Back
Top