LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-04-2003, 06:23 PM   #1
amadeuss
LQ Newbie
 
Registered: Nov 2002
Location: Chicago
Distribution: suse pro 8.2 ,mandrake 9.0, Win XP pro, win2000 adv server
Posts: 11

Rep: Reputation: 0
Post Very Very new at Linux


OK... FInnaly I decided to switch to linux. I used win adv serv 2000 and I did an upgrade to 2003 which really screwed my system.Now I just bought Suse Prof. 8.2 and I really don't know what to do Not because I don't want to know but because the user guide and Admin guide that came with them says nothing about webserver or something like that.. I want to Install apache with php and mysql for a couple of websites and of course to have a few virtual hosts ( I have only one IP ).

Now I don't want t bug anybody with my questions but ... On cd's I have all the packages... mysql ..php, apache, apachem( I really never heard about this until now ) but I really don't know which to install how to configure them... and how to get everything going... Any good manuals on the internet about how to do all these?

Thank you and your support is already appreciated Not only by me but by many others... Thanks again!
 
Old 10-04-2003, 06:53 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Have you installed SuSE? If not, do it. During the installation you should have a chance to choose which packages you'd like to install. You can install them later: the command is
rpm -i packagename
(you need to be root to do this).
 
Old 10-04-2003, 07:02 PM   #3
amadeuss
LQ Newbie
 
Registered: Nov 2002
Location: Chicago
Distribution: suse pro 8.2 ,mandrake 9.0, Win XP pro, win2000 adv server
Posts: 11

Original Poster
Rep: Reputation: 0
Thx

I did .. everything went great but .... It didn't ask me which packages to install like it does in Mandrake or red hat it just installed and at the end it asked me... I chosed apache2 but later on I found that I need 'apache' package too then I installed mysql ... but now I have httpd files all over the place and I really don't know which one is the right one for vhosts. Then when I try to add a user aor a group it says :

Quote:
linux:~ # useradd cobra
useradd: unable to lock password file

it's strange cause in other linux versions like mandrake and rh I used a GUI for apache which for me is easier....
Thx
 
Old 10-04-2003, 07:17 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
What happens when you run 'apachectl start'? It should start Apache (with default configuration). Which GUI have you used for Apache? Webmin?
 
Old 10-04-2003, 07:23 PM   #5
amadeuss
LQ Newbie
 
Registered: Nov 2002
Location: Chicago
Distribution: suse pro 8.2 ,mandrake 9.0, Win XP pro, win2000 adv server
Posts: 11

Original Poster
Rep: Reputation: 0
hmm Not so sure

Hmm in Suse I don't use a GUI

right now I'm on ssh cause I'm at work and when I run apache is just

linux:~ # apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
/usr/sbin/apachectl restart: httpd started


I used a Gui with mandrake and redhat the one that comes with the OS... I'm not sure if it has a name or not ...
anyway apache runs great now... I removed apachem from my system cause it had something in it's config

php_define or something like that and when I tried to run apache it said something about unknown variable or something like that.. I'm not sure



Thx
 
Old 10-04-2003, 07:27 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Ok, so now teh config file. It should be /etc/httpd/httpd.conf (but may be divided into pieces). Could you list them if there's more than one (my last contact with SuSE was ... years ago ).
 
Old 10-04-2003, 07:39 PM   #7
amadeuss
LQ Newbie
 
Registered: Nov 2002
Location: Chicago
Distribution: suse pro 8.2 ,mandrake 9.0, Win XP pro, win2000 adv server
Posts: 11

Original Poster
Rep: Reputation: 0
Ok

I looked for all httpd.conf I have... I don't think it's all of them but .... I'll see

linux:~ # find / -name httpd.conf
/etc/httpd/httpd.conf
/etc/apache2/httpd.conf
/var/adm/SuSEconfig/md5/etc/httpd/httpd.conf

and


linux:/etc/httpd # ls
. httpd.conf.rpmsave suse_addmodule.conf suse_loadmodule.conf.rpmsave
.. magic suse_addmodule.conf.rpmsave suse_public_html.conf
access.conf mime.types suse_define.conf suse_text.conf
awstats.conf mod_frontpage.conf suse_define.conf.rpmsave suse_text.conf.rpmsave
httpd.conf modules suse_include.conf susehelp.conf
httpd.conf.SuSEconfig mp3.conf suse_include.conf.rpmsave susehelp.conf.old
httpd.conf.ampache.rpmsave srm.conf suse_loadmodule.conf
linux:/etc/httpd #


and then I have this : apache2 in etc


linux:/etc/apache2 # ls
. conf.d httpd.conf.default mime.types modules ssl.crl ssl.csr ssl.prm
.. httpd.conf magic mod_perl-startup.pl ssl.conf ssl.crt ssl.key suse_include.conf
linux:/etc/apache2 #

That's y I'm messed up cause I don't know which one is the apache I have to run
 
Old 10-05-2003, 05:02 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Hmm...Quite many config files...How many Apache installations do you have? 3, probably. The command to find the config file for Apache executable is
httpd2 -V
Example output (fragment, Mandrake 9.1):
Code:
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
...
 -D HTTPD_ROOT="/etc/httpd/2.0"
...
 -D SERVER_CONFIG_FILE="conf/httpd2.conf"
So the config file for my default httpd is /etc/httpd/2.0/conf/httpd2.conf
 
Old 10-05-2003, 10:13 PM   #9
amadeuss
LQ Newbie
 
Registered: Nov 2002
Location: Chicago
Distribution: suse pro 8.2 ,mandrake 9.0, Win XP pro, win2000 adv server
Posts: 11

Original Poster
Rep: Reputation: 0
Thx....

because it was a fresh installation and nothing to lose , I just installed suse one more time... this time I was careful at the post package installation and unselected what I didn't know ( apachem and all the apache things... I just left apache and checked ( automatically check dependencies ) so everything works fine right now... thank you for your time but I have another q... hope I'm not boring....

I installed squirrelmail... could you tell me if this is one of the best webmail servers? And it says that IMAP and POP3 servers are included... but when I try to log in it gives me errors like:
Cannot connect to IMAP .... do I have to install Imap server from suse? ( didn't cause it said it has it's own... told you I'm new :P )

Also I have phpadmin... I changed the permissions and now It cannot be accessed from the internet .. but if I'm let's say at work and I want to do something.. could I make phpadmin to work but prompting for a password when I access the directory? thank you
 
Old 10-05-2003, 11:18 PM   #10
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
hi

take a look at the extensive set of docs available from tldp.org. you will have to spend some time reading it but its quite comprehensive and it covers everything you want to know. i could probably list everything here but i dont want to repeat things.

regards
rahul sundaram
 
  


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 06: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