LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2003, 08:12 AM   #1
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Rep: Reputation: 30
A couple Mandrake questions


Hey everybody. I have installed Mandrake now, and I have a couple questions that I'd like to get figured out. They are asked in order of importance to me.

1. Booting into Manrake defaults to Linux-secure. Since this will be a major web-server, this is probably my best bet. However... when I boot into Linux-secure, the kernel loads, then nothing happens. I am left with a blank screen without even a command line. Why does this happen, and what can I do about it?? Booting into "Linux" brings me into a login screen to load KDE/GNOME/etc.

2. I have installed Apache, but I cannot seem to get it to start. When I go into the console to start it, it says that apache cannot be found. Any ideas?

3. When I installed Manrake, I set up separate users for Apache, MySQL, PHP, FTP, and myself. Was this necessary, is that the secure way to do things, and can somebody give me some links or a quick overview on how to set up these apps to run under the proper users?

4. Windows has "services", that run on startup, and do not require a user to log in, etc. How do I set my core web services (Apache, MySQL, etc.) to run immediately when booting?

5. I can't seem to specify more than one DNS server in Mandrake. Any attempts to add more result in Mandrake yelling at me. Any ideas?

I realize there is a lot here. I am new to Linux, but I have done a lot of reading. This doesn't quite take away the "shell shock", though, and so I have a few questions that I need to get answered.

Once again, the questions are asked in order of importance to me. You guys here have been great since I decided to start my quest into Linux, so I'm hoping you can help me out yet again. Thank you all very much =)
 
Old 12-18-2003, 11:03 AM   #2
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
I'll just take No5, 'cos I'm sure I can help.....
As root, edit your /etc/resolv.conf file, and just add your second dns server as a second line, using the same syntax as the other entry ( nameserver xxx.xx.xx.xxx ). Then save the file, and that should be it.
 
Old 12-18-2003, 06:41 PM   #3
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Original Poster
Rep: Reputation: 30
Thanks, Carlywarly. I have that done.

Now we move on to #1-4.

Also, if I may add a question to the list.

6. I can access just about every site I can think of.... except my own. Everybody else, including myself, can access the site on any other box, except I cannot seem to in Mandrake. What the bejeezus is going on?
 
Old 12-18-2003, 07:27 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
2.,3., and possibly 4. i'm not sure on this one, because, i never set up different users for different services. if i remember correctly apache and basically every other "server" runs at startup in mdk.i seem to recall a warning about this at the install procedure. if however, they are not, you may have to log in as the user you setup for each service in order for that service to start. when last i installed mdk, i only need 1 user and all the servers i installed ran at boot. the mdk control center should shed some light on this , as it has a system (or something like that) option where you can enable/disable staup services from the gui simply by selecting/deselecting a check box.

1. as far as linux-secure goes, i'd have to do some reading myself to help w/that, however, if you are wishing to boot to a cli instead of a gui w/ linux you can edit your /etc/inittab. you'll see a line that says default runlevel and it will have a number by it(5 i think). change that to 3 and it should boot you to the cli. from there you can startx to get to gui.
good luck.
 
Old 12-18-2003, 07:32 PM   #5
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Original Poster
Rep: Reputation: 30
PEACEDOG, you have been a real help.

Wow.... I honestly feel like a moron, and I have never felt like a moron with computers before.

However... I have "installed" Apache, and MySQL, but I cannot find it anywhere.... When I type in apache -start in the console, I get a "not found" error, or even if I simply type "apache". I cannot seem to find it when I search, either.

Any ideas?

Last edited by duerra; 12-18-2003 at 07:34 PM.
 
Old 12-18-2003, 07:51 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
PEACEDOG, you have been a real help.
thx, glad to help. the way i see it, helping you (or anyone) is helping myself, and
making the linux community stronger.

Quote:
Wow.... I honestly feel like a moron, and I have never felt like a moron with computers before.
don't feel that way, just try and remember what it was like the first time you booted a windows box, and, felt like...o.k. what do i do next? this is a new operating system your tackling, it will take some time to learn.



Quote:
When I type in apache -start in the console, I get a "not found" error, or even if I simply type "apache".
try httpd -v, if it returns errors instead of version, try httpd start.
good luck.
 
Old 12-18-2003, 08:00 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you type in your ip address in the browers, and the apache page comes up, then the httpd service is running. e.g. http: //192.168.1.100

If you have web-min installed try https: //<ipaddress>:10000.
This is a web based graphical administration program that you could use
to administer you system. Some web servers sit in a 19" rack, without a monitor or keyboard, and this is how they are configured.

Last edited by jschiwal; 12-18-2003 at 08:01 PM.
 
Old 12-18-2003, 08:12 PM   #8
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Original Poster
Rep: Reputation: 30
Greetings,
My apologies for not explaining futher. The Linux system is sitting on the left side of me, and the server hosting the site that will eventually be deployed on the Linux system is sitting on the right side of me. They are not networked together (except via the modem/router), and have their own WAN IP addresses. Mr. Linux box cannot seem to access Mr. Current Server box right now, even though everybody else can.

I typed in "localhost" on the Linux box, and it was a no go. After trying 192.168.0.1 and 192.168.0.100, neither of those worked, either (which subsequently tells me that Apache isn't running ).
 
Old 12-19-2003, 02:14 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
To check if a service is running (httpd) you could run the Mandrake Config program and select the services icon. If the service httpd is not checked to start on boot, you can change it there.

Or from the bash shell, first su to root, then enter:
service httpd --status.

to start:
service httpd --start

The services started in the init.d directory are actually script wrappers for the programs themselves and usually accept the arguments [B]start, stop, restart,[B/] and status.

You could go to the mandrake control center, and select add programs to make sure that apache is installed.

When you said that you set up seperate users for Apache, MySQL, etc. I don't understand what you mean by this. You manually added a user named Apache? Programs like MySQL can be restricted to certain users or networks. The Webmin program contains modules for setting each of the programs you mentioned.

Also, you may have you firewall set up so that the web-server cannot be accessed from a WAN. If you are trying to access the current web-server (Left Machine) with the web browser on the (Right Machine), this doesn't use Apache, and your internet connection may need setting up. By the way, if these machines are that close, and both use ethernet, you could connect them directly with a cross-over cable.

Often programs will create a user or group, like FTP group, but these aren't regular users. If you created your own users by the same name, I wonder if this wonked things up good!
 
Old 12-19-2003, 05:39 PM   #10
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Original Poster
Rep: Reputation: 30
*gulp* I have created an FTP user... I hope it's not too late to set things straight (without doing yet another full install).

Maybe service httpd --start is what I was looking for. In windows, the command to start apache is "apache --start", and not "httpd".

And yes, I created separate users ("apache", "mysql", etc.), but only because I didn't know if I needed them or not - and I thought it to be better to need them and not use them, then to mess up and try and have to figure it out later. Apparently with the ftp thing, though, I might have already messed it all up. Any ideas there?? Maybe everything is still ok =/

Also, the server right now is *not* on the Linux box. It is on the Windozzzz machine on the right, which gets about 500,000 hits per day. The problem is that I cannot get to the site from the Linux box, yet I can manage to get to any other site that's on the internet. I don't understand it =/. The Windows machine that is hosting the site right now will (hopefully) be deployed on the Linux box that I am currently configuring and setting up.

I will see what I can find when I get home tonight (in about an hour)

Last edited by duerra; 12-19-2003 at 05:40 PM.
 
Old 12-20-2003, 09:56 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you are going to use the linux box to replace the Windows server, sounds important enough to do a fresh install and be done with it. Your access problems may be due to your firewall settings, or your internet setup. The apache server isn't used to access the Windows web-server, that is the browsers job, which should work even if you didn't install apache.

There is a program that you should probably install. Using the Mandrake Software installation program, search for wizdrake. This will add a section to the Mandrake Control Center program dealing with setting up servers. This will give you wizards for setting up DHCP, DNS Clients, DNS Server, News Server, Samba, Postfix, Web Caching Proxy Server, Time syncronization, and Web Server. I don't know which Mandrake version you are installing. I know that the wizdrake is included with upto MDK 9.1.

If you are installing in a commercial environment, you may want to purchase the boxed set so you have access to some customer support, to get advice on what security setting to use.

The main point I want to make, is that browsing the web is something that you should be able to do after an install. If you are using a downloaded disk, download the manual and read up on what the security setting will do during an install. Use the Mandrake Control center to look at which services are installed, and running. Use the Server Configuration Section of the MCC (Mandrake Control Center) to initially set up your servers. Then you can read up on each program to tweak things like which users can use FTP, which users can remotely use the MySQL server, etc.

Good Luck, I hope I haven't lead you astray. I just think it is best to get the stock system working before tweeking.

Last edited by jschiwal; 12-20-2003 at 09:58 PM.
 
Old 01-11-2004, 11:12 PM   #12
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
apache start command

The Apache binary that installs with mandrake is controlled via the 'apachectl' command. It takes arguments like stop|start|restart|reload|status and so on.

The reload will reload the config files if you have made edits.

To check to see if it's running without that command, you can also do a ps -ef |grep http as root or su. You'll see the list of processes running with 'http' in the name. Regarding appache, you'll see the arguments supplied to start the process. That way, you can see what config file was specified. Helpful if your init.d file is doing stuff you're not aware of when the box boots.

Good luck with this project.

di11rod
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Mandrake - a couple of questions :) svarreby Mandriva 4 05-21-2004 08:44 AM
Couple of questions about Mandrake 10.0 hahler2 Mandriva 5 03-29-2004 04:55 PM
Couple of questions about mandrake 9.1 kernel hbbtstar Mandriva 7 09-24-2003 03:31 PM
Installing Linux (Mandrake) for the first time couple questions zzzmarcus Linux - Distributions 11 10-01-2002 10:38 AM
A couple questions aceman817 Linux - Networking 2 04-25-2001 07:02 PM


All times are GMT -5. The time now is 02:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration