Results 1 to 9 of 9

Thread: FreeBSD 6.2 - Installing BASE, WWW issue

Hybrid View

  1. #1

    FreeBSD 6.2 - Installing BASE, WWW issue

    Hi,

    I'm a huge BSD guy (been using FreeBSD since 2001, and have FreeBSD, OpenBSD and NetBSD all running on one network aloth with Slackware v11.0)

    I've an issue with FreeBSD 6.2. I'd been running 5.3 for about 2 years and decided to not upgrade, but back up important data, wipe out the v5.3 and install 6.2. It's up and running but I'm having an issue with Apache 2.2. FBSD 6.3 appears to be installing things kinda funky by default. Ports created /usr/local/www/apache22/data as the root directory, but then dumpts web applications in /usr/local/www. So, I've been moving things around the way I prefer.

    What happened was when I moved the directories, the ownership of the directories changed to the user I was using, which was root (and the effect was recursive). Now when I attempt to test the pages, all but the index page shows a 403 code.

    I've installed these tools numerous times in the past (BASE is new to me but it should be almost the same as ACID; phpMyAdmin; Snort Report; Snortsnarf...) without issues but apparently something changed with 6.3 that fscking with my brain.

    If anyone is running an install of FBSD 6.2 or something very close to that version, could you let me know what the default ownership is for the /usr/local/www and /usr/local/www/data directories?

    TIA!

    EDIT -

    No more 403 (had to allow internal traffic to the webserver...had to edit the httpd.conf file). Still have a PHP issue where the server won't serve up rendered PHP files.
    Last edited by NipponDSM; 01-28-2007 at 07:05 AM. Reason: Partial progress made in remediation of issue

  2. #2
    Ever since 4.7, I've completely omitted the data directory. This is why, if you deinstall, and reinstall (you know, if you EVER have a dep problem after cvsuping), it removes that folder. What I ended up doing is this:

    /usr/local/www/site1
    /usr/local/www/site2
    etc etc

    As long as you set it in the conf, you are good to go. Since the changes in 2.0, it should be much easier as well. I also set ownerwnergroup to www:www. Never seems to fail. Chmod your pages accordingly, and you should be good to go. The DocumentRoot should still be defaulted to /usr/local/www hence the reason of nixing ./data .

    As for base, try Barnyard. I've had a lot of luck with it, and liked it a lot more than ACID. On that note, also try out Squil.
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  3. #3
    Junior Member tuxette's Avatar
    Join Date
    Jan 2006
    Posts
    60
    Fedora has a php.conf file in /etc/httpd/conf.d with these commands. Do you have something similar in your httpd.conf for handling your PHP?

    Code:
    #
    # PHP is an HTML-embedded scripting language which attempts to make it
    # easy for developers to write dynamically generated webpages.
    #
    
    LoadModule php5_module modules/libphp5.so
    
    #
    # Cause the PHP interpreter to handle files with a .php extension.
    #
    AddHandler php5-script .php
    AddType text/html .php
    
    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    #
    DirectoryIndex index.php

  4. #4
    The files reflect the same in FBSD, except for the default document root, and the /etc folder for port installs (/usr/local/etc), so he should have it.
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  5. #5
    Funny....php5 is installed (so sayeth pkg_info) but there's no php5 module listed in the httpd.conf file or /usr/local/libexec/apache22/. So, I'm currently rebuilding php5 (building by source from ports).

    Quote Originally Posted by tuxette View Post
    Fedora has a php.conf file in /etc/httpd/conf.d with these commands. Do you have something similar in your httpd.conf for handling your PHP?

    Code:
    #
    # PHP is an HTML-embedded scripting language which attempts to make it
    # easy for developers to write dynamically generated webpages.
    #
    
    LoadModule php5_module modules/libphp5.so
    
    #
    # Cause the PHP interpreter to handle files with a .php extension.
    #
    AddHandler php5-script .php
    AddType text/html .php
    
    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    #
    DirectoryIndex index.php

  6. #6
    OK, I got things working. Thanks for the assistance, guys!

  7. #7
    The modules are not lised in httpd.conf when using 2.x. They are symlinked when enabled. You should see it in the modules-available directory. Glad that you got everything working.
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

Similar Threads

  1. Installing FreeBSD 6.2
    By peter in forum Tutorials
    Replies: 0
    Last Post: 11-24-2008, 01:34 AM
  2. FreeBSD Installing Stuff.
    By shebang in forum BSD
    Replies: 20
    Last Post: 12-26-2006, 09:11 PM
  3. Knowledge Base
    By trickster in forum Announcements and Suggestions
    Replies: 23
    Last Post: 04-15-2003, 02:39 AM
  4. Problem #2:perl-base >= 5.600-29mdk errors (RPM issue)
    By Gahwani in forum Linux - General Topics
    Replies: 2
    Last Post: 10-09-2002, 04:43 AM
  5. Replies: 18
    Last Post: 08-07-2002, 12:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •