LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-19-2003, 02:59 PM   #1
j03
LQ Newbie
 
Registered: Dec 2003
Location: LB CA
Distribution: Mandrake, Slackware, Knoppix, PHLAK
Posts: 19

Rep: Reputation: 0
Building and Running Apache


Hi people.

I've just installed Mandrake 9.1 and in the installation, the Apache2 package was installed, along with PHP 4 and mySQL. But considering I have very little experience with Linux and don't understand the file system, I have no idea where to go to build the files. I'm pretty sure I'll be able to do so once I'm pointed in the right direction, but assistance in that would be apprieciated as well.

Thanks - j03
 
Old 12-19-2003, 03:13 PM   #2
PDR60
Member
 
Registered: Aug 2003
Location: Oakland, TN
Distribution: Debian, Kubuntu
Posts: 257

Rep: Reputation: 30
If you are a windows user I would recommend loading Webmin. Its an rpm. This will enable you to configure apache easier. It will also enable you to get to the documentation easier. The other way is to edit the config file directly. Its not difficult just be sure to have a way to get to the documentation.
 
Old 12-19-2003, 04:54 PM   #3
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
When installing mandrake you should have chose to install Apache, mysql and PHP, I think they default install anyways. try "]#locate httpd"
and report back what you get.

if you have an /etc/httpd directory, read about in there as well.
 
Old 12-19-2003, 05:38 PM   #4
j03
LQ Newbie
 
Registered: Dec 2003
Location: LB CA
Distribution: Mandrake, Slackware, Knoppix, PHLAK
Posts: 19

Original Poster
Rep: Reputation: 0
Hey, Webmin seems to get the server running, but I can't access it from anywhere except that computer at 127.0.0.1. The computers on my network can't get to it. Any ideas?
 
Old 12-19-2003, 06:01 PM   #5
j03
LQ Newbie
 
Registered: Dec 2003
Location: LB CA
Distribution: Mandrake, Slackware, Knoppix, PHLAK
Posts: 19

Original Poster
Rep: Reputation: 0
Me again!

Whoops, my other computers can access it! My next problem is changing the port. I changed it in the config files through webmin, but I still can't seem to pick it up on the other port I set it up on. Advice?

Note: Before I saw the light, I had a windows server running that I hosted on port 150, and it worked great.
 
Old 12-19-2003, 07:10 PM   #6
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
try editing /etc/httpd/conf/httpd.conf read it slowly and thoroughly, I thought it was too much at first, but now it's like second nature. In there you can change everything, your port number, where you server your files up (default is /var/ww/html.. put an index.html file in there and it should come up when you navigate to your address)

]#pas aux |grep httpd

use that to check and see if it's running already.
 
Old 12-19-2003, 08:38 PM   #7
j03
LQ Newbie
 
Registered: Dec 2003
Location: LB CA
Distribution: Mandrake, Slackware, Knoppix, PHLAK
Posts: 19

Original Poster
Rep: Reputation: 0
Hey.

In the Apache config file, there's this little block of code:

<IfDefine APACHEPROXIED>
Port #
Listen #
</IfDefine>
<IfDefine !APACHEPROXIED>
Listen #
</IfDefine>

What should I replace the numbers with if I want the server to be connected to on port 150? I've tried setting all of them to 150, and it doesnt work.

Last edited by j03; 12-19-2003 at 09:26 PM.
 
Old 12-19-2003, 11:13 PM   #8
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
proxied ; are you behind a proxy server? Doubt it, leave it alone. Make small changes and see what fucks up.
 
Old 12-21-2003, 01:32 PM   #9
j03
LQ Newbie
 
Registered: Dec 2003
Location: LB CA
Distribution: Mandrake, Slackware, Knoppix, PHLAK
Posts: 19

Original Poster
Rep: Reputation: 0
Yay! I was editing the wrong config file. Theres one called httpd.conf and one called httpd2.conf. I needed the second one. Whoops. Thanks for your help guys, and my site is at http://j03.is-a-geek.com:150/ if you care to check it out.
 
  


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 Tomcat (Building the mod_jk connector) dashp Linux - Newbie 1 03-28-2005 08:49 AM
Apache Tomcat (Building the mod_jk connector) dashp Linux - Newbie 1 03-19-2005 01:38 PM
problem building apache 1.3.28 on redhat 8.0 kvcuong Linux - Networking 1 12-31-2003 10:37 AM
Apache (website building) question WorldBuilder Linux - Software 2 09-15-2003 09:38 PM
Apache Compile - 6.3. Building and installing PHP4 help llee Linux - Software 6 05-10-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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