From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 14:33:42 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C067A106566C for ; Wed, 7 Jan 2009 14:33:42 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id 830548FC17 for ; Wed, 7 Jan 2009 14:33:42 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: (qmail 22339 invoked by uid 89); 7 Jan 2009 14:46:07 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by 2607:f118::b6 with ESMTPA; 7 Jan 2009 14:46:07 -0000 Message-ID: <4964BD4A.4060300@ibctech.ca> Date: Wed, 07 Jan 2009 09:33:46 -0500 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: stanb@panix.com, freebsd-questions@freebsd.org References: <20090104042402.GA29640@teddy.fas.com> <20090104044236.GC13260@the-grills.com> <20090104045115.GB29868@teddy.fas.com> <20090104190044.GA17603@the-grills.com> <20090104203319.GA15823@teddy.fas.com> <20090104224540.GA18390@the-grills.com> <20090105215108.GA17430@teddy.fas.com> <20090106034523.GA25207@the-grills.com> <20090107022251.GA31012@teddy.fas.com> <49641B26.3070905@ibctech.ca> <20090107052009.GA3995@teddy.fas.com> In-Reply-To: <20090107052009.GA3995@teddy.fas.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: PHP setup question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 14:33:43 -0000 stan wrote: I'll describe the test setup that I used within a VM to configure things inline. The software does not necessarily match the version number exactly to yours. > OK, here goes: > > black# uname -a > FreeBSD black.fas.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Dec 27 > 19:11:47 EST 2008 root@:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD testweb.eagle.ca 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > ports of interest: My ports tree is the one from the FBSD 7.1 install as noted above. I literally just downloaded the .iso yesterday. > ampache-3.4.3 > mysql-client-5.0.75 MySQL was installed with: # pkg_add -r mysql51 testweb# mysql -V mysql Ver 14.14 Distrib 5.1.28-rc, for portbld-freebsd7.1 (i386) using 5.2 > mysql-server-5.0.75 Server version: 5.1.28-rc FreeBSD port: mysql-server-5.1.28_1 > apache-2.2.11 Apache installed via: # pkg_add -r apache2 testweb# apachectl -v Server version: Apache/2.2.9 (FreeBSD) Server built: Sep 8 2008 13:27:11 PHP was installed from ports (lang/php5). The only changes I made were enabling the Apache module and enabling sessions (which BTW is required for Ampache, as is mysql pcre iconv). php-extensions was also installed via ports. Other than GD, the only other option that I enabled was MySQL. > Once you have these installed add the folloowing lines to > /usr/local/etc/apache22httpd.conf > > > Order allow,deny > Allow from all > > > Alias /ampache "/usr/local/www/ampache" Normally I set up websites in a different fashion than above, but to keep things consistent, I followed the documentation as above. > Edit /usr/local/www/ampache/config/ampache.cfg.php.dist and put doubel > quotes around the names of the rss* bairables (to work around a known bug" > Complete step 1 of the install process > Go to step 2, when you press "write config file" you will be prompted to > download this fle instead (not cerrtain wh the directory it goes in is > writbale by the www user). Donwload this file and install it as: > > /usr/local/www/ampache/config/ampache.cfg Done. I scp'd the file from my Windows workstation to the box, and put it into the ampache/config directory. I then chown'ed the file to my web servers UID. > Try to proced to step 3. You should get an error message saying that > Ampache is already configured (but it's not0. At this point, (Step 3), I am presented with a 'Create Admin Account' screen...I receive no errors or warnings. Clicking on 'Check config' claims everything is ok... ...and now I am presented with: http://208.70.104.27/ampache/login.php ...in which I use the admin account I just created, and it directs me into the application. > I beleive this is a repeatvle bug. I'm willing to bet that you have a permissions error within the filesystem, but that is just a guess. Provide the output to: # ls -l /usr/local/www # ls -l /usr/local/www/ampache/config Steve