Hello everybody,
I rent a dedicated server (http://www.digicube.fr) ; The install FreeBSD is automatic ;
I want to install a FreeBSD Apache22, MySql, PHP, phpMyAdmin, WordPress and an e-commerce as oscommerce and sendmail from a DigiCube. I will only install and configure Apache Bind I want to display only "It works!" In the browser, but that does not work by configuring Apache and Bind with Address:
http://www.takinium.com
and delete
http://digi00635.digicube.fr
IP address is 95.130.12.68
My domain name I want to convert is:
http://www.takinium.com I bought Gandi where I did the redirect to http. I went to the administration of the domain by clicking on takinium, I went down the link page on the modification of DNS zones by adding this:
Then I added a zone of type A, with the www address 95.130.12.68, I do not know if I did?

I changed the hostname in the file /etc/rc.conf :
by:
DigiCube dns and their ip:
ns1.digicube.fr = 95.130.8.8
ns2.digicube.fr = 195.254.130.121
digi00635#portsnap fetch extract
my install apache22 :
digi00635#cd /usr/ports/www/apache22
digi00635#make config
digi00635#make install clean
digi00635#rehash
digi00635#ee /usr/local/etc/apache22/httpd.conf
digi00635#ee /usr/local/etc/apache22/extra/httpd-default.conf
digi00635#echo 'apache22_enable="YES"' >> /etc/rc.conf
digi00635#echo 'apache22ssl_enable="YES"' >> /etc/rc.conf
digi00635#echo 'accf_http_ready="YES"' >> /etc/rc.conf && kldload accf_http
digi00635#ee /etc/rc.conf
digi00635#apachectl configtest
Syntax Ok
digi00635#/usr/local/etc/rc.d/apache22 restart
digi00635#telnet localhost 80
GET / HTTP/1.0
HTTP/1.1 200 OK
....
<html><body><h1>It works!</h1></body></html>Connection closed by
digi00635#reboot
After the reboot, the previous commands no longer work for cons, I still have:
digi00635#host digi00635.digicube.fr
digi00635.digicube.fr has address 95.130.12.68
digi00635#host http://www.takinium.com
http://www.takinium.com has address 95.130.12.68
production-tak# host digi00635.digicube.fr
digi00635.digicube.fr has address 95.130.12.68
production-tak# ee /etc/namedb/named.conf
edit file ee /etc/namedb/master/takinium.com.db
By cons, by modifying the following file (resolv.conf), these lines
they disappear immediately after a command reboot
production-tak#ee /etc/resolv.conf
Can anyone help me?
Even knowing the book FreeBSD 7.0, the complete guide, I can not configure and display "it works"
I thank you
Christophe
I rent a dedicated server (http://www.digicube.fr) ; The install FreeBSD is automatic ;
I want to install a FreeBSD Apache22, MySql, PHP, phpMyAdmin, WordPress and an e-commerce as oscommerce and sendmail from a DigiCube. I will only install and configure Apache Bind I want to display only "It works!" In the browser, but that does not work by configuring Apache and Bind with Address:
http://www.takinium.com
and delete
http://digi00635.digicube.fr
IP address is 95.130.12.68
My domain name I want to convert is:
http://www.takinium.com I bought Gandi where I did the redirect to http. I went to the administration of the domain by clicking on takinium, I went down the link page on the modification of DNS zones by adding this:
Code:
@ 3600 IN A 95.130.12.68
ftp 3600 IN A 95.130.12.68
www 3600 IN A 95.130.12.68
Then I added a zone of type A, with the www address 95.130.12.68, I do not know if I did?

I changed the hostname in the file /etc/rc.conf :
Code:
hostname="digi00635.digicube.fr"
Code:
hostname="production-tak.takinium.com"
DigiCube dns and their ip:
ns1.digicube.fr = 95.130.8.8
ns2.digicube.fr = 195.254.130.121
digi00635#portsnap fetch extract
my install apache22 :
digi00635#cd /usr/ports/www/apache22
digi00635#make config
digi00635#make install clean
digi00635#rehash
digi00635#ee /usr/local/etc/apache22/httpd.conf
Code:
ServerAdmin webmaster@takinium.com
ServerName www.takinium.com:80
Include etc/apache22/extra/httpd-default.conf
Code:
...
ServerTokens Prod
...
ServerSignature Off
...
HostnameLookups Off
digi00635#echo 'apache22ssl_enable="YES"' >> /etc/rc.conf
digi00635#echo 'accf_http_ready="YES"' >> /etc/rc.conf && kldload accf_http
digi00635#ee /etc/rc.conf
Code:
### activer Apache22 - ajouté par Ch Leroy – 06/01/2010 ###
apache22_flags="-DSSL" # Active le support de SSL
apache22_http_accept_enable=''YES''
named_enable="YES"
Syntax Ok
digi00635#/usr/local/etc/rc.d/apache22 restart
digi00635#telnet localhost 80
GET / HTTP/1.0
HTTP/1.1 200 OK
....
<html><body><h1>It works!</h1></body></html>Connection closed by
digi00635#reboot
After the reboot, the previous commands no longer work for cons, I still have:
digi00635#host digi00635.digicube.fr
digi00635.digicube.fr has address 95.130.12.68
digi00635#host http://www.takinium.com
http://www.takinium.com has address 95.130.12.68
production-tak# host digi00635.digicube.fr
digi00635.digicube.fr has address 95.130.12.68
production-tak# ee /etc/namedb/named.conf
Code:
zone "takinium.com" {
type master;
file "/etc/namedb/master/takinium.com.db";
};
zone "takinium.com" {
type slave;
file "/etc/namedb/slave/takinium.com.db";
};
edit file ee /etc/namedb/master/takinium.com.db
Code:
; durée dans le cache DNS - valeur par defaut 10800
$TTL 3600 ; 1 hour
; takinium.com. peut être remplace par @ si plusieurs domaines
; IN représente les donnees internet pour DIG, NSLOOKUP, HOST
; SOA, Start Of Authority avec le nom de la machine
takinium.com. IN SOA production-tak.takinium.com.
; l adresse mail de la personne de cette zone
; le premier point est sensé représenté l @
; première modification Serial : 2006051501
webmaster.production-tak.takinium.com. (
2006051501 ; Serial
3600 ; Refresh
900 ; Retry
604800 ; Expire
86400 ; Minimum TTL
; Serveurs DNS
IN NS ns1.digicube.fr.
IN NS ns2.digicube.fr.
; Enregistrements MX
IN MX 10 mx.example.org.
IN MX 20 mail.example.org.
IN A 192.168.1.1
; Noms de machine
localhost IN A 127.0.0.1
;ns1 IN A 192.168.1.2
;ns2 IN A 192.168.1.3
;mx IN A 192.168.1.4
;mail IN A 192.168.1.5
; Alias
www IN CNAME @
By cons, by modifying the following file (resolv.conf), these lines
Code:
domain takinium.com
nameserver 95.130.8.8
they disappear immediately after a command reboot
production-tak#ee /etc/resolv.conf
Code:
nameserver 95.130.12.1
Can anyone help me?
Even knowing the book FreeBSD 7.0, the complete guide, I can not configure and display "it works"
I thank you
Christophe