LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-21-2004, 04:28 PM   #1
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
How to do a simple Apache2 server in SuSe 9.0?


Okay all i want to do is have a very simple Apache2 (or 1 if this is easer but i already installed 2) server that will just be accessable from the internet at http://myip/myfile.html and let the viewers see the html file. I don't want it to always be up i only want it up when i want it up can I do this? I have installed Apache2 in YaST2 and all i can find regarding apache2 are config files...when i use YaST to set up an HTTP server it says it can mess with Apache2...maybe i have to be root or something...but i don't always want to be on root when i do this so how do i do this??? is there like a folder i just drag that html file into or s/t? I am very computer literate...but not on linux so well yet so go slow please.
 
Old 03-21-2004, 07:16 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
usually indexes go into /var/www/html and all other web files .

you need of course to have httpd started.
 
Old 03-23-2004, 09:48 PM   #3
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Original Poster
Rep: Reputation: 31
alright thanks...just for anyone else trying to do this in SuSE the html files go in /srv/htdocs/

thanks

PS do you know an easy way to turn the server on and off?
 
Old 03-23-2004, 10:44 PM   #4
jsokko
Member
 
Registered: Mar 2004
Location: Phila, PA
Distribution: SuSE 9.0 / RH 9 / Slackware 9.1
Posts: 110

Rep: Reputation: 15
run /etc/init.d (or rc.d)/httpd [command -- start, stop, restart] to start, stop, restart apache.


or is it apache instead of httpd for SuSE default Apache2 package? I forget. try both.



J
 
Old 03-24-2004, 09:01 PM   #5
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Original Poster
Rep: Reputation: 31
alright thanks...how would i make that into a file that is similar to a .bat file in windows so i can just make it an icon and click on it?
 
  


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
PHP, APACHE2 server error NoviceW Linux - General 2 05-22-2005 08:46 AM
apache2 server seems busy stoffell Linux - Software 6 02-05-2005 09:26 AM
apache2 server karan101 Linux - Software 1 11-13-2004 07:19 PM
Apache2 with PHP woes (SUSE Server 8) jfranks214 Linux - Software 1 04-30-2004 05:40 PM
how do i remove server banners in apache2? groovin Linux - Networking 7 12-12-2002 02:32 PM


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