View Full Version : Finaly installed, but nothing works now :S
Nejko
14th March 2006, 16:15
Hey
I finaly managed to get ISP Config installation to the end, but now... my previuely installed websites are down, if i can say that... php doesnt work, webmin is down, ispconfig can not be started... WTF? :S Help plz, i have to fix that today :S
Cya, Nejko
till
14th March 2006, 16:24
Hey
I finaly managed to get ISP Config installation to the end, but now... my previuely installed websites are down, if i can say that... php doesnt work, webmin is down
Thats why ISPConfig prints the warning in the installer that ISPConfig shall not be installed on systems with existing websites.
To get your websites back online:
1) Get ISPConfig online and create the websites in ISPConfig again.
2) Copy your existing html / php files to the website directory ISPConfig created for this domain.
ispconfig can not be started...
What is the exact error message?
Nejko
14th March 2006, 16:49
I got ispconfig now started.. how can i now delete all previus domaind and data, if i can not acess webmin? :S
cya
falko
14th March 2006, 18:51
Then you must do it on the command line.
Nejko
14th March 2006, 18:58
well, can you tell me, how to zip directories and then download them?
cya
falko
14th March 2006, 19:02
Let's say you have /home/somedir/ and want to make a backup of somedir/:
cd /home
tar -pczf somedir.tar.gz somedir/
This will create the file somedir.tar.gz in /home.
Now you can use WinSCP ( http://winscp.net/eng/index.php ) to download the file.
Nejko
14th March 2006, 19:08
Ok, another request :) Can someone copy default named.conf? Coude my don't want to start, becouse of some error..
Thanx
falko
14th March 2006, 19:34
What's the exact error message? Do you see an error in the logs?
Nejko
14th March 2006, 19:48
[root@localhost ~]# /etc/init.d/named start
Starting named:
Error in named configuration:
/etc/named.conf:5: change directory to '/var/named/chroot/var/named' failed: file not found
/etc/named.conf:5: parsing failed
[FAILED]
[root@localhost ~]#
here's my named.conf (start)
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named/chroot/var/named";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
edit: I don't understand why i need an apache and php installed before i install ispcofig, if it use's it's own apache and php?
falko
15th March 2006, 01:43
[root@localhost ~]# /etc/init.d/named start
Starting named:
Error in named configuration:
/etc/named.conf:5: change directory to '/var/named/chroot/var/named' failed: file not found
[QUOTE=Nejko]
edit: I don't understand why i need an apache and php installed before i install ispcofig, if it use's it's own apache and php?
Because the Apache and PHP that come with ISPConfig are only for serving the ISPConfig web interface on port 81; they are totally independent from your main Apache and PHP on port 80.
Nejko
15th March 2006, 07:24
OK, i Got it :) But what to do with bind? Ican not figure it out :S
till
15th March 2006, 09:03
OK, i Got it :) But what to do with bind? Ican not figure it out :S
Please have a look at the "perfect setup" howtos and configure Bind as it is described there.
http://www.ispconfig.org/documentation.htm
The howtos are available for several linux distributions.
Nejko
15th March 2006, 12:51
ok, i have removed bind-chroot and reinstalled, but now:
[root@localhost named]# /etc/init.d/named start
Starting named:
Error in named configuration:
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 159.77.193.in-addr.arpa/IN: loading master file pri.159.77.193.in-addr.arpa: file not found
_default/159.77.193.in-addr.arpa/IN: file not found
zone aljaz.nero-server.com/IN: loading master file pri.aljaz.nero-server.com: file not found
_default/aljaz.nero-server.com/IN: file not found
zone nero-server.com/IN: loading master file pri.nero-server.com: file not found
_default/nero-server.com/IN: file not found
[SPODLETELO]
[root@localhost named]#
[SPODLETELO]means FAILED
What to do? :S
cya
falko
15th March 2006, 13:27
Do you use ISPConfig to manage these zones? Then go to these zones in ISPConfig and make a little change to each of them so that ISPConfig knows it has to rewrite the zone files.
Afterwards you can undo your changes.
Nejko
15th March 2006, 13:29
ok, got dns working.. how can i upload my default website to shared ip dir? now i have :
http://193.77.159.15/
at least it works :D
edit: i got nov even domain workind right :) i pwn :) thanx for all the help, stay here, if i will need any more help :D
thanx, cya
falko
15th March 2006, 13:44
ok, got dns working.. how can i upload my default website to shared ip dir? now i have :
http://193.77.159.15/
at least it works :D
Why do you want to upload it to the Shared-IP directory? Makes no sense. If you do this, then why do you use ISPConfig at all???
The correct way is to create a web site in ISPConfig, create an admin user for it (on the "User & Email" tab) and then use this admin user for ftp'ing to the new site. Then you can upload your files.
Nejko
15th March 2006, 14:25
Oh, 1 more thing :) I id as u said, admin acc and my domain, and i got it working :P
look here:
http://nero-server.com/index.php
in the bottom:
Server deluje neprestano že: 0 dni, 0 ur, 0 minut.
Odzivnost (Load Avarages): .
php ain't working, but that:
http://nero-server.com/forum/
works
and that:
http://nero-server.com/kontakt.php
doesn't work... what's wrong? i guess including files doesn't work?
cya
falko
15th March 2006, 18:51
PHP is working, otherwise you wouldn't see the pages, but the PHP source code in your browser. So I guess that there's something wrong with the "Load Averages" programming.
Nejko
15th March 2006, 20:33
<?
## Kaj pogledati, 1 za 1min, 2 za 5 min, 3 za 15 min
$use = 2;
$file = explode(" ", file_get_contents("/proc/loadavg"));
//$load[1] = $file[0];
$load[2] = $file[1];
//$load[3] = $file[2];
print "Odzivnost (Load Avarages): {$load[$use]} . \n";
?>
what? it worked before.. well, it works directly, but included in php in doen't work..
and another question :)
The name www.dnt-celje.com is already in use by another site or domain.
I don't fin it nowhere :S It doesn't exist :S Any ideas?
falko
15th March 2006, 23:32
/proc/loadavg isn't a normal file, you can't read from it like that.
You should use PHP exec or system or shell_exec or passthru command, e.g.
exec("cat /proc/loadavg");
dnt-celje.com is registered, but no A records exist yet.
You can check with whois dnt-celje.com
Nejko
16th March 2006, 07:30
Thanx,but i get thet: "The name www.dnt-celje.com is already in use by another site or domain. " when i want to create a client withnthat domain in ispconfig... but i can't see it anywhere..But i know it is registered, becouse it's mine :)
falko
16th March 2006, 12:26
Please check the recycle bins if www.dnt-celje.com is in there.
Nejko
16th March 2006, 13:12
No, it's not
falko
16th March 2006, 19:17
Please use the search function to search for www.dnt-celje.com.
Nejko
18th March 2006, 13:23
ya, i moved them to bin, but it just don't want to delete them :S
edit: i manualy deleted them from mysql, now it0s done... that. but when i create it again, it does not create dns records in bind, i have to do it manualy.. is that ok?
and another q:
whay's that not working?
<? include("filename.php") ?>
or
<?php include("filename.php") php?>
it worked before installation :S
falko
19th March 2006, 00:13
edit: i manualy deleted them from mysql, now it0s done... that. but when i create it again, it does not create dns records in bind, i have to do it manualy.. is that ok?:eek: :eek: NEVER touch the ISPConfig database! I'm 100% sure that you messed up some dependencies in the database now!
whay's that not working?
<? include("filename.php") ?>
or
<?php include("filename.php") php?>
it worked before installation :S
What's the exact error message? What do you see in the browser? Did you enable PHP for that web site in ISPConfig?
What's the path to the file?
Nejko
19th March 2006, 07:51
http://nero-server.com/kontakt.php
http://nero-server.com/kontakt
I haven't messed up anything, it works just like before :) What about BIND? I don0t want to create all records manualy all the time :(
cya
Nejko
19th March 2006, 08:04
Now i got BIND creating domains ;) BUT, when i created one, it couldn't start anymore:
Failed to start BIND : Starting named: Error in named configuration: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 zone aljaz.nero-server.com/IN: loading master file pri.aljaz.nero-server.com: file not found _default/aljaz.nero-server.com/IN: file not found zone nero-server.com/IN: loaded serial 1142422867 zone dnt-celje.com/IN: loaded serial 1142681570 [SPODLETELO]
that happens if i create any of domains in ISPConfig
:eek: :eek: ??
falko
19th March 2006, 14:02
http://nero-server.com/kontakt.php
http://nero-server.com/kontakt
I don't see any error messages!
Failed to start BIND : Starting named: Error in named configuration: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 zone aljaz.nero-server.com/IN: loading master file pri.aljaz.nero-server.com: file not found _default/aljaz.nero-server.com/IN: file not found zone nero-server.com/IN: loaded serial 1142422867 zone dnt-celje.com/IN: loaded serial 1142681570 [SPODLETELO]
There are some files missing (the second one looks strange to me: _default/aljaz.nero-server.com/IN).
I guess you made some manual changes to the BIND configuration (or in the ISPConfig database...)?
What's in your named.conf?
Nejko
19th March 2006, 14:07
it's no error messages, but php include doesn't work (php enabled).
named.conf: (now, worikng)
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
zone "nero-server.com" {
type master;
file "/var/named/nero-server.com.hosts";
};
zone "dnt-celje.com" {
type master;
file "/var/named/dnt-celje.com.hosts";
};
after creating domain:
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "2.168.192.in-addr.arpa" {
type master;
file "pri.2.168.192.in-addr.arpa";
};
zone "test.nero-server.com" {
type master;
file "pri.test.nero-server.com";
};
//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
zone "nero-server.com" {
type master;
file "/var/named/nero-server.com.hosts";
};
zone "dnt-celje.com" {
type master;
file "/var/named/dnt-celje.com.hosts";
};
hope it helps..
also, there's nothing wrong with database. (chech database, everything OK)
cya
falko
19th March 2006, 14:54
it's no error messages, but php include doesn't work (php enabled).
What's the exact include statement you're using in kontakt.php?
named.conf: (now, worikng)
You created the zone manually, so it's not an ISPConfig problem. You must check your zone files.
also, there's nothing wrong with database. (chech database, everything OK)
You don't understand me. I'm not talking about the physical consistency of the database, but about the logical consistency. Meaning, if you change anything in a table, you will break dependencies in another table.
Nejko
19th March 2006, 15:24
<?php include("kontakt/contact_us.php"); ?>
doen't work in any case. with "" or without.. i guess something is wrong in php.ini, but i have no idea what :(
Is what I'm using. Yes, i created nero-server.com and dnt-celje.com in webmin, and they worked, but if i create 'em in ISP COnfig, Bind won't start. I created nero-servercom i ispconfig and i got (when start):
[quote]
Failed to start BIND : Starting named: Error in named configuration: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 zone 2.168.192.in-addr.arpa/IN: loading master file pri.2.168.192.in-addr.arpa: file not found _default/2.168.192.in-addr.arpa/IN: file not found zone nero-server.com/IN: loading master file pri.nero-server.com: file not found _default/nero-server.com/IN: file not found [SPODLETELO]
So something must be wrong :S
till
19th March 2006, 23:02
<?php include("kontakt/contact_us.php"); ?>
doen't work in any case. with "" or without.. i guess something is wrong in php.ini, but i have no idea what :(
Please check your php.ini, make sure the include_path directive is not commented out and looks similar to this:
include_path = ".:/php/includes"
The relevant part is ".:" which means that relative includes where allowed.
Nejko
20th March 2006, 14:33
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
that's in root/ispconfig/php/php.ini
and that:
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
in etc/php.ini
How about my DNS problem? :S I realy want to fix it...
till
20th March 2006, 21:41
Change the line
;include_path = ".:/php/includes"
in the file /etc/php.ini to:
include_path = ".:/php/includes"
and restart your apache server.
Nejko
20th March 2006, 22:02
No changes, you can look:
http://nero-server.com/kontakt.php
and then:
http://nero-server.com/kontakt/
Strange... :S Any ideas about DNS problem? Becouse i realy have to fix it :) And some more... amm.. VSFTPD users can browse whole server, but i wan't to restrict their acess only to their homes. How to do that?
thanx!
falko
20th March 2006, 23:39
Make sure you edit the correct php.ini. You can find the correct php.ini in the output of phpinfo().
Strange... :S Any ideas about DNS problem? Becouse i realy have to fix it
Yes. Just make sure that all the files for your manually created zone exist (btw, why didn't you use ISPConfig to create the zones?).
And some more... amm.. VSFTPD users can browse whole server, but i wan't to restrict their acess only to their homes. How to do that?What's in /etc/vsftpd.conf?
Nejko
21st March 2006, 07:32
Make sure you edit the correct php.ini. You can find the correct php.ini in the output of phpinfo().
http://nero-server.com/phpinfo.php
It's etc/php.ini
I have it like that:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
include_path = ".:/php/includes"
Yes. Just make sure that all the files for your manually created zone exist (btw, why didn't you use ISPConfig to create the zones?).
I did. I doesn't work, if i create one, i can't even start bind, but as soon i delete it, bind works normally again :S
What's in /etc/vsftpd.conf?
Nothing, it's in there:
[root@localhost ~]# /etc/vsftpd/vsftpd.conf
-bash: /etc/vsftpd/vsftpd.conf: Permission denied
[root@localhost ~]#
Hmm? :S
falko
21st March 2006, 18:56
What's in /etc/vsftpd/vsftpd.conf?
Did you restart Apache after your changes to php.ini?
I did. I doesn't work, if i create one, i can't even start bind, but as soon i delete it, bind works normally again :S
Have a look at the BIND error message:
loading master file pri.nero-server.com: file not foundA lot of files are missing that you must create.
Nejko
21st March 2006, 20:10
I have restarted, yes. What do i have to create? I wasn't changing bind, i just used isp's DNS manager and added domain, but it didn't work :S
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#chroot_list_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
Everything works perfect (i tested), just DNS is making huge problem. I can not give a reseller acc, bocouse i would have to make all domains manualy :S:S Plz help me fix that :(
cya
edit: i will create new topic, becouse most of problems are gone :)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.