Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 18th, 2002, 03:32 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
about prefix to /usr/local instead /usr/local/apache

hey freebsd,

Do you know what's good doc for prefix to /usr/local instead prefix to /usr/local/apache, which it's Unix's standard and less problems?

Reason why I am asking, because I told one person that it's best to prefix to /usr/local instead /usr/local/apache.. He pointed me the doc at apache's website http://httpd.apache.org/docs/install.html .. I explained it to him almost same with my post at http://forums.devshed.com/showthrea...6206#post126206 ... He seems to not believe me, because of Apache's doc shows to prefix it to /usr/local/apache ..

BTW: if you aren't freebsd, but knew the answer then feel free to reply..

Thanks,
Mezz

Reply With Quote
  #2  
Old February 18th, 2002, 06:21 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> which it's Unix's standard and less problems?

Only when that OS implements /usr/local, then all self-install or non system default stuffs should go into /usr/local (PREFIX).

>> He pointed me the doc at apache's website

Because majority of Apache is running on Linux, and those UNIX-illiterated people were told by their Linux distribution to mkdir apache dir under /usr/local and set the PREFIX to /usr/local/apache. Therefore, Apache's src has a config.layout file in its root directory for people to choose from. However, almost all the 3rd party modules, including mod_php, uses /usr/local as its default PREFIX.

>> He seems to not believe me

Then just let him choose whatever PREFIX. And when he faces a problem adding modules, do not help him.

Beside Apache, almost all software uses /usr/local. Within /usr/local, it's like a new root of your file system beside / directory. Imagine /usr/local is /, why should you mkdir a /apache in your root when /bin, /etc, /lib, /sbin and others already exist in the directory layout.
Say X software, its root usually is /usr/X11R6, and at least ./bin, ./include, ./lib and ./man are already in place. Say Apache relies on X, would you install Apache with a PREFIX of /usr/X11R6/apache or /usr/X11R6 and place your binary to /usr/X11R6/bin?
Finally, when whereis can't locate a binary automatically, that's non-standard. When you need to alter your default PATHs, that's also non-standard.

Reply With Quote
  #3  
Old February 19th, 2002, 11:39 AM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Hehe, somehow your post made him changed his mind.. Thanks for explain...

Thanks again,
Mezz

Reply With Quote
  #4  
Old February 19th, 2002, 12:37 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you remember, when installing Apache in FreeBSD, it sets your docroot to /usr/local/www/data, this also violates FreeBSD's own hierachy standard because /usr/local/www should not be mkdir'ed in the first place.
Unfortunately the Apache port maintainer had to choose a default docroot. To bad, whatever he chooses would violate hierachy standard anyway.

Reply With Quote
  #5  
Old February 19th, 2002, 01:26 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Yeah, I already told him to setup a unique partition /www for docroot when he installed FreeBSD.. I ever did it to mine too...

Also, change pgSQL point to /var/db/pgsql same with mySQL in the /var/db area.. I learn from your post at http://forums.devshed.com/showthrea...5110&forumid=31 .. Oh, I will have to tell him to read man 7 hier for hier(7)

Cheers,
Mezz

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > about prefix to /usr/local instead /usr/local/apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway