LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2004, 10:38 PM   #1
shoombool_tala
Member
 
Registered: Apr 2004
Posts: 35

Rep: Reputation: 15
Apache and Suse 9 help


Hi,
I didnt use Yast to install the Apache or apache 2 packages. I just downloaded the latest source code, and compiled it. then i ran /usr/local/apache2/bin/apachectl start .. So now when I go to my browser and surf 127.0.0.1 i see the introduction page for Apache. So now my question is that how can i setup my HTTP server. Give it the directory to look for files, port to listen to and etc... Also is there a GUi i can use for this?? cause even tho I installed Apache when i go to the Control Center, Network Services and click on HTTP Server, it says i need to install the Apache2 package. How can i let linux know that i compiled the source instead of installing the package? Cause in Yast i want to choose the ASP patch that they have there but then it wont install cause it says i dont have the Apche2 packge installed.. i just want it to know that i have apache 2 installed LOL..

thanks a lot
 
Old 04-12-2004, 04:22 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
u cant use yast for applications u didnt install with yast. u have to download and install the asp patch yourself.
to configure apache use httpd.conf (probably) located in /usr/local/apache2/conf/
 
Old 04-12-2004, 04:43 AM   #3
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
Unfortunately I've no idea how to tell YaST that you installed something from source (oh how I hate RPM!!!). I don't think you should have installed from source personally, with an RPM based distro its good practice to stick to RPM (saves your machine getting in a mess!).

Anyhow on to the more important stuff (setting up apache), I gotta warn you now I'm no apache guru, I have only one website running on my apache but there's nothing to stop you adding more! First port of call is the apache documentation, this sounds tedious I know but you will actually learn something and make life much easier on yourself, if you go to localhost you should be able to get to the documentation from there. The docs are really rather good and should be the first place to look to do something. As far as getting hosts up and running on apache, I've never used a GUI but I imagine a search on google should throw up lots of results for this!

If you want to do it the good ol' fashioned way (I prefer this since I then have some vague idea what's going on) then you need to open up a terminal and become superuser (su) and then type:

Code:
gedit (or pico, whatever your preferred editor is, i like VI personally) /etc/apache2/httpd.conf
right near the bottom of the file is the VirtualHosts bit, there's an example in there that you should be able to work out how to adapt to what you want. for my simple website (I only use it for testing on my localmachine) I have the following:
Code:
NameVirtualHost *:80

<VirtualHost *:80>
  DocumentRoot /mnt/web_disc/dhracer
</VirtualHost>
this means any request on port 80 is going to this website, hope this helps a little bit!
 
  


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
Apache on Suse 9.2 scdark Linux - Software 1 05-25-2005 04:45 PM
SUSE 9.2/Apache help Gustin SUSE / openSUSE 6 04-14-2005 01:08 AM
Suse and Apache davidt03 Linux - Software 5 01-25-2005 01:49 AM
Apache Suse 9.1 apffal Linux - Software 6 10-31-2004 04:26 PM
Apache 2.0 on Suse 9 help!! kiono Linux - Newbie 0 02-24-2004 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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