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-12-2006, 11:47 PM   #1
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Rep: Reputation: 15
Question Basic Apache Configuration


I just installed Apache 2.2.2, and I would like to know how to configure it to run at boot, run on port 85 (or some other non-standard port), execute PHP (which I havn't installed yet... do I need to do anything special to make it work with apache?), serve files from /www/, and support https (over a non-standard port).

This is my first time working with apache and I feel sorta overwhelmed. I tried the docs on apache.org, but they don't give many examples.

Thanks for any help!

-Jim
(Linux )
 
Old 07-13-2006, 01:45 AM   #2
infestator
LQ Newbie
 
Registered: Jul 2006
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
all examples placed in apache.conf (httpd.conf) file:
- to listen ti 85 port and all ips: Listen 0.0.0.0:85
- to make /www/ your document root: DocumentRoot /www/

i haven't use https, so i don't know how to configure it.

for php:
Code:
<IfDefine PHP5>

        # Load the module first
        <IfModule !mod_php5.c>
                LoadModule php5_module    modules/libphp5.so
        </IfModule>

        # Set it to handle the files
        <IfModule mod_mime.c>
                AddType application/x-httpd-php .php
                AddType application/x-httpd-php .phtml
                AddType application/x-httpd-php .php3
                AddType application/x-httpd-php .php4
                AddType application/x-httpd-php .php5
                AddType application/x-httpd-php-source .phps
        </IfModule>

        AddDirectoryIndex index.php index.phtml
</IfDefine>
this is gentoo's default config file for php. you can place it into apache.conf, or in any other file and include it from apache.conf. but you'll need to run httpd with '-D PHP5' parameter to make this code work (or just remove directives '<IfDefine PHP5>...</IfDefine>').

autostart:
i hadn't ever used debian, so i don't know how it's runscripts done. the easiest way to autostart if to place 'apache start -D PHP5' command in one of that scripts, which runs after network interface configuration script.
 
Old 07-13-2006, 01:13 PM   #3
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
It didnt work, so I tinkered with it to try to make it work. I failed miserably. I'll wipe the drive and re-install the OS. Could someone point me to an idiots guide to Installing and configuring Apache & PHP?
 
Old 07-13-2006, 03:09 PM   #4
NomadX
Member
 
Registered: Jul 2005
Location: Portland, OR
Distribution: Debian Testing
Posts: 78

Rep: Reputation: 15
http://www.justlinux.com/nhf/Webserv...che_Intro.html

or

http://www.apachefreaks.com/apache_tutorials.php

for something more particular....

Why reinstall if its only a busted apache config? This isnt windows.... btw... https is SSL (secure socket layer) and it's fairly straight forward to use... just instal mod_ssl and OpenSSL and find a quicky howto... google is your friend...
 
Old 07-14-2006, 01:41 AM   #5
usernamenone
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Ubuntu Server

You may want to install Linux Ubuntu server, it has apache with all the sql and php etc in the install.

Last edited by usernamenone; 07-14-2006 at 01:42 AM.
 
Old 07-14-2006, 01:12 PM   #6
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
Well, This is part of a larger project... a basic home theatre system. It's just for Xvid Files, etc. I tried the Server install of Ubuntu and couldn't get mplayer to work right.
 
Old 07-14-2006, 05:14 PM   #7
NomadX
Member
 
Registered: Jul 2005
Location: Portland, OR
Distribution: Debian Testing
Posts: 78

Rep: Reputation: 15
With mplayer or xine in ubuntu you need to go to their respective websites and get the win32 codecs... Ubuntu is very picky about US license issues... with good reason...
 
Old 07-14-2006, 08:21 PM   #8
ghettopunkkid
LQ Newbie
 
Registered: Sep 2005
Location: New Mexico
Distribution: Ubuntu, Xandros 3, RH9
Posts: 17

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by usernamenone
You may want to install Linux Ubuntu server, it has apache with all the sql and php etc in the install.
 
Old 07-14-2006, 10:16 PM   #9
Simdude90015
Member
 
Registered: Jun 2004
Location: Pittsburgh, PA area
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by DrStoney
With mplayer or xine in ubuntu you need to go to their respective websites and get the win32 codecs... Ubuntu is very picky about US license issues... with good reason...

Actually, I just compiled it myself. The problems I was having was with getting the video from mplayer to my display... none of the -vo options would work.
 
  


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
Basic Apache Configuration outshined Fedora 1 05-30-2006 05:08 AM
Basic configuration check knoxlinuxuser Linux - Newbie 3 02-25-2005 07:07 AM
Basic mysql configuration noahzenzen Linux - Newbie 6 07-08-2004 11:05 AM
proftpd configuration ...not so basic... zavajon Linux - Software 3 09-14-2003 05:48 AM
The basic configuration of fetchmail whepin Linux - Networking 5 01-05-2002 04:19 PM


All times are GMT -5. The time now is 05:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration