Fedora Core 4 - Setting up server

anthony88guy

Senior member
Feb 3, 2005
220
0
0
Im Very new to Linux so please bear with me.

So Im trying to set up a server using Fedora Core 4, following this guide The Perfect Setup - Fedora Core 4. Im on page 3, "Configure Additional IP Addresses" first, of all it wont let me add/edit/save files in the /network-scripts/ folder because I need root access. I tried logging in, but it still gives me problems. Second, I have to change back to dhcp so I can connect to the internet. When I try using a Static IP I cant connect. So those are the two problems I'm currently fighting, I hope that will be it.

Thanks alot, another noob has entered the Linux World.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Originally posted by: anthony88guy
Im Very new to Linux so please bear with me.

So Im trying to set up a server using Fedora Core 4, following this guide The Perfect Setup - Fedora Core 4. Im on page 3, "Configure Additional IP Addresses" first, of all it wont let me add/edit/save files in the /network-scripts/ folder because I need root access. I tried logging in, but it still gives me problems. Second, I have to change back to dhcp so I can connect to the internet. When I try using a Static IP I cant connect. So those are the two problems I'm currently fighting, I hope that will be it.

Thanks alot, another noob has entered the Linux World.

So you can't login or can't remember your password? I'm not sure how to reset the password, but you could try to use sudo. Launch the program with 'sudo' before it to launch it as a super user and then you'll be able to save it and stuff.

And when setting the static ip, can you ping a site? Did you forget to add your DNS? At the command prompt (konsole, whatever its called) type "ping -c3 216.239.57.99" [google.com] and see if it can reach. Then try "ping -c3 google.com". If the first one works, but not the second one, then you need to add your DNS IPs.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
I know the password to my root account, but how do I like login? I would have to use the terminal and do it that way?

For the static IP, I checked my routers (Linksys, wireless-g) status page, and gave me DNS IP's, Default Gateway...so I used those. Would I have to configure the router to accept static IPs?
 

rmrf

Platinum Member
May 14, 2003
2,872
0
0
to log in as root from the terminal type this command:

su OR su -

the first gives you elevated privileges. the second gives you elevated privileges as well as the PATH for root.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Originally posted by: anthony88guy
I know the password to my root account, but how do I like login? I would have to use the terminal and do it that way?

Do like rmrf said. Once you're logged in with the terminal all you have to do is launch the text editing program of your choice by typing its name and you should be good to go.

Originally posted by: anthony88guy
For the static IP, I checked my routers (Linksys, wireless-g) status page, and gave me DNS IP's, Default Gateway...so I used those. Would I have to configure the router to accept static IPs?

Nope.
 

nsafreak

Diamond Member
Oct 16, 2001
7,093
3
81
It's probably set so that you can't login as root which is good for security in some ways but it can hinder a new user that doesn't know any better. Definitely a good idea to use sudo or su though. You should be able to setup static Virtual IP addresses and have your main IP address be DHCP. I have it setup on my servers if you want to see my configuration files.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
Originally posted by: nsafreak
It's probably set so that you can't login as root which is good for security in some ways but it can hinder a new user that doesn't know any better. Definitely a good idea to use sudo or su though. You should be able to setup static Virtual IP addresses and have your main IP address be DHCP. I have it setup on my servers if you want to see my configuration files.

I was told by someone that I dont need a Virtual IP address. But I wouldnt mind taking a look at them. Thanks Guys.
 

nsafreak

Diamond Member
Oct 16, 2001
7,093
3
81
You do need them, believe me. Here are my files:

ifcfg-eth0:

BOOTPROTO=dhcp
TYPE=Ethernet
DEVICE=eth0
MTU=""
NETMASK=255.255.255.0
BROADCAST=""
IPADDR=""
NETWORK=""
ONBOOT=yes

ifcfg-eth0:1 :

MTU=""
NETMASK=255.255.255.0
ONPARENT=yes
BROADCAST=255.255.255.0
BOOTPROTO=none
IPADDR=192.168.15.2
NETWORK=192.168.15.0
ONBOOT=yes
DEVICE=eth0:1

I have a few other virtual IP addresses but they're pretty similar to the first virtual IP address.

 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: nsafreak
It's probably set so that you can't login as root
I'm pretty sure fc4 doesn't have restrictions on root login, except possibly for sudo. I'm quite sure you can su in the default install.
which is good for security in some ways but it can hinder a new user that doesn't know any better. Definitely a good idea to use sudo or su though. You should be able to setup static Virtual IP addresses and have your main IP address be DHCP. I have it setup on my servers if you want to see my configuration files.
A static virtual IP isn't an absolute necessity, it just comes in real handy when you reboot, the router assigns you a different IP and all your port forwardings break (explaining to anthony, not you nsa :))
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
Thanks Everyone.

I finished the FC4 tutorial, and sent me to http://www.ispconfig.org/manual_installation.htm to set up the control panel. Following the guide, last night I did everything and then at the end it asked me a few questions, so such as host, and domain. I entered: amdserver for the domain and then the installation stopped. It was late so this morning I just tried reinstalling everything, I knew it takes a while to set it up, and then went off to do some other things, not watching it so I don't know where my login to ISPConfig is. If I go to my local IP address I get the Fedora/Apache welcome page.

EDIT: If i go to http://amdserver.com I get:

Forbidden

You don't have permission to access / on this server.
Apache/2.0.54 (FreeBSD) PHP/5.0.5 Server at www.amdserver.com Port 80

Im pretty sure the Control panel works on port 81, but I get a connection was refused error.

EDIT2: Received these Errors in Terminal:
Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/amdserver/Desktop/install_ispconfig/install.php on line 624

Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='.:/root/ispconfig/php/lib/php') in /home/amdserver/Desktop/install_ispconfig/install.php on line 624

Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: NO) in /home/amdserver/Desktop/install_ispconfig/install.php on line 634
Could not connect to db
Restarting some services...
./setup2: line 883: [: ==: unary operator expected
./setup2: line 901: /etc/rc.d/init.d/ispconfig_server: No such file or directoryCongratulations! Your ISPConfig system is now installed. If you had to install quota, please take the steps described in the installation manual. Otherwise your system is now available without reboot.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Do you own the amdserver.com domain?

And, I'm not sure if this is your problem, but fc4 comes with selinux enabled by default and that has a setting which, by default, denies network access to scripts running under the webserver. I don't think you'll be able to connect to mysql until you find and change that setting.
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
Originally posted by: kamper
Do you own the amdserver.com domain?

And, I'm not sure if this is your problem, but fc4 comes with selinux enabled by default and that has a setting which, by default, denies network access to scripts running under the webserver. I don't think you'll be able to connect to mysql until you find and change that setting.

In the guide, it said turn off, disable all firewalls...
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
########## INSTALLATION ##########

Preparing files. Please wait a moment...
All prerequisites are fulfilled.
Here we go...
Please enter your MySQL server:localhost
Please enter your MySQL user:root
Please enter your MySQL password:
OK
Please enter a name for the ISPConfig database (e.g. db_ispconfig):Db_ispconfig
Please enter the IP address of the ISPConfig web (e.g. 192.168.0.1):192.168.1.102
OK
Please enter the host name (e.g. www):www
Please enter the domain (e.g. xyz.de):192.168.1.102
ERROR: The URL is not reachable! The installation routine stops here!


4th time trying to install.... What made the installation stop? i can access that url fine.
 

rmrf

Platinum Member
May 14, 2003
2,872
0
0
did you deviate from the guide, or would the guide *as is* help out someone who wants to set up a server?
 

anthony88guy

Senior member
Feb 3, 2005
220
0
0
Originally posted by: rmrf
did you deviate from the guide, or would the guide *as is* help out someone who wants to set up a server?

I stayed close to the guide. Just my newbish skills made it hard(for me). But its running right now...
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: anthony88guy
Originally posted by: kamper
Do you own the amdserver.com domain?

And, I'm not sure if this is your problem, but fc4 comes with selinux enabled by default and that has a setting which, by default, denies network access to scripts running under the webserver. I don't think you'll be able to connect to mysql until you find and change that setting.

In the guide, it said turn off, disable all firewalls...
SELinux is not a firewall...
 

wildwolf

Golden Member
Jan 9, 2000
1,690
0
76
Originally posted by: nsafreak
You do need them, believe me. ...
I have a few other virtual IP addresses but they're pretty similar to the first virtual IP address.

I've ran linux for years and have never needed virtual IP addresses. I've never even had one. I use it as a muti purpose server as well as an ip_masq router for my internal network. My linux box functions as the following servers: dhcp, web, mail, samba....I think that's the majority of its duty.

I *think* (and could definitely be wrong here) that virtual IP addresses are *needed* when you do what I have done, with only 1 network card in the machine. I have two.