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 07-31-2003, 01:47 AM   #1
scius
Member
 
Registered: Jul 2003
Location: Berkeley
Distribution: gentoo (kernel 2.6.7)
Posts: 39

Rep: Reputation: 15
Mandrake 9.1 Apache2 setup


This is my first experience with Apache2, using the version that comes with Mandrake, and all i would like is to host from my computer. I believe i have my server successfully running http://4.60.65.36/ however i cannot find the folder where i put things to be displayed on the site.

Also, I installed apache 1.3.xx earlier today, and it said they install in parallel, and having both should not present any problems.
I have read a number of Apache tutorials, however the mandrake install seemed to not use the default folders (I have no /usr/local/Apache/ or Apache2 folder).
After scanning the httpd.conf (which i found in /usr/local/conf [instead of /usr/local/Apache/conf/]... [and which seems like it may be from the Apache 1.3... as /usr/local does not seem like a default place that mandrake would install to]) i saw a reference to /usr/local/htdocs (i can check exactly what it says if important - ot made me believe that it might be the magic one) so i put a test.html into that folder, but that seemed to have no effect.
I did find a (new) Host Space/ folder in my /home/username/ directory, however placing things (test.html, test.jpg) here still gave me nothing when i tried http://4.60.65.36/test.html or even http://4.60.65.36/~graham/test.html (after the suggestion of my mac-oriented friend)

I do not know where i can look to find where the Apache 2 default folders are (or where i can find the httpd.conf used by Apache2, unless they are the same for both versions) Any suggestions are very much appreciated. I'm using the Apache 2.0.44 on MDK 9.1

Last edited by scius; 07-31-2003 at 01:59 AM.
 
Old 07-31-2003, 01:57 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well, I believe by default the httpd.conf file is stored in /etc/httpd/conf . Open up httpd.conf and see what the:

DocumentRoot "/var/www/html"

Again, I believe by default it is /var/www/html. Then pop a file called index.html into /var/www/html, open up your browser and type http://localhost and you should see that index.html file in your browser.

Of course httpd has to be running.
 
Old 07-31-2003, 02:14 AM   #3
scius
Member
 
Registered: Jul 2003
Location: Berkeley
Distribution: gentoo (kernel 2.6.7)
Posts: 39

Original Poster
Rep: Reputation: 15
Woot! Awesome. That /etc/httpd/conf was the key. Important note for anyone who might be looking at this as a guide... for something, the file is actually httpd2.conf for Apache2, and httpd.conf for Apache (for those that get thrown off easily.) The file was /var/www/html/ so check back to my site soon and expect some content!

Ah yes, and thanks a ton, i've been looking for this for hours.

Last edited by scius; 07-31-2003 at 02:16 AM.
 
Old 07-31-2003, 02:32 AM   #4
scius
Member
 
Registered: Jul 2003
Location: Berkeley
Distribution: gentoo (kernel 2.6.7)
Posts: 39

Original Poster
Rep: Reputation: 15
Oh, one last thing that maybe someone can help me with. I was able to get the httpd to start just fine... but getting it to stop has been another matter entirely. It gives no error message, but jsut doesn't stop running when i type httpd stop from the console. I tried to follow apache's instructions to use /usr/local/apache2/bin/apachectl... but i have no apache2 folder in local, and the /usr/local/bin folder is empty. Anyway, i thought i should jsut be able to type httpd stop into the console, but i think i'm, again, missing somethign.
 
  


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
Mandrake 10.1 Apache2 with PHp and pear problem Jediman Linux - Software 10 04-19-2005 03:35 PM
PHP4 not working with Apache2 in Mandrake 10.1 eikeland Linux - Software 2 01-17-2005 07:06 PM
help with mandrake and apache2 greenmeanie Mandriva 5 12-04-2004 09:03 PM
Setting up Apache2 in Mandrake 10 prodigal Mandriva 4 07-21-2004 04:58 AM
emumail setup in apache2 Finlay Linux - Software 0 05-30-2003 12:24 AM

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

All times are GMT -5. The time now is 10:40 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
Open Source Consulting | Domain Registration