Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-12-2003, 06:00 PM   #1
LQ Newbie
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
Help with Apache <VirtualHost> please.

Hi Guys.

Sorry if I've posted this in the wrong forum.

I'm new here and new to Linux but I'm learning heaps. I've got Apache 2, PHP4.3.2, and MySQL running on redhat 7.1. I installed a program called MySource which gave me some text to put in the httpd.conf file. After inserting the text into the httpd.conf file, I get the message "Port was replaced with Listen in Apache 2.0" The line that is wrong is the "Port 80" bit, which if I comment it out I can start apache, but MySource doesn't work correctly.

Does anyone have any ideas?

Text is as follows:

Port 80
ServerAdmin root@redhat
DocumentRoot /usr/local/mysource-2.4.1/web
ServerName redhat
<Directory /usr/local/mysource-2.4.1/web>
AllowOverride All
Order allow,deny
Allow from all

<Directory /usr/local/mysource-2.4.1/squizlib>
AllowOverride All
Order allow,deny
Allow from all

<Directory /usr/local/mysource-2.4.1/data/unrestricted>
AllowOverride All
Order allow,deny
Allow from all

AliasMatch "^(/.*)?/__lib(.*)$" "/usr/local/mysource-2.4.1/web/__lib$2"
AliasMatch "^(/.*)?/__squizlib(.*)$" "/usr/local/mysource-2.4.1/squizlib$2"
AliasMatch "^(/.*)?/__data(.*)$" "/usr/local/mysource-2.4.1/data/unrestricted$2"

# Any HTTP request made at this domain followed by '/_edit'
# will open the editing interface for that site, page etc.
AliasMatch "^(/.*)?/_edit(.*)$" "/usr/local/mysource-2.4.1/web/edit$2"

# Any *other* HTTP request made at this domain gets handled
# by the MySource web frontend controller script.
AliasMatch "^(/.*)?$" "/usr/local/mysource-2.4.1/web/index.php"

# Example alternative at a particular subdirecory of this domain:
#AliasMatch "^/path/to/mysource/section(/.*)?/__lib(.*)$" "/usr/local/mysource-2.4.1/web/__lib$2"
#AliasMatch "^/path/to/mysource/section(/.*)?/__squizlib(.*)$" "/usr/local/mysource-2.4.1/squizlib$2"
#AliasMatch "^/path/to/mysource/section(/.*)?/__data(.*)$" "/usr/local/mysource-2.4.1/data/unrestricted$2"
#AliasMatch "^/path/to/mysource/section(/.*)?/_edit(.*)$" "/usr/local/mysource-2.4.1/web/edit$2"
#AliasMatch "^/path/to/mysource/section(/.*)?$" "/usr/local/mysource-2.4.1/web/index.php"

Thanks in advance,
Old 06-12-2003, 07:11 PM   #2
LQ Newbie
Registered: May 2003
Posts: 27

Rep: Reputation: 15
At a guess i'd say that your MySource program also requires port 80. MySource isn't its own webserver at all is it? maybe it has apache built in?
Old 06-12-2003, 07:15 PM   #3
LQ Newbie
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Hornet.

MySource requires Apache, MySQL and PHP > 4.2.0. So I guess it's not it's own webserver. I'm not even sure if fixing that "Port 80" line will resolve the problems that are occuring, but it's worth a try.



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 + add a VirtualHost linuxtesting2 Linux - Newbie 2 09-03-2005 03:21 AM
Apache -VirtualHost davidhk Debian 7 08-19-2005 12:33 PM
VirtualHost Apache 2 Problem Chris_K1 Linux - Networking 0 01-25-2005 10:00 AM
Apache & VirtualHost nIMBVS Slackware 2 10-27-2004 03:01 PM
apache virtualhost jonfa Linux - Networking 5 08-12-2002 06:07 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration