Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2009 09:33:46 -0500
From:      Steve Bertrand <steve@ibctech.ca>
To:        stanb@panix.com, freebsd-questions@freebsd.org
Subject:   Re: PHP setup question
Message-ID:  <4964BD4A.4060300@ibctech.ca>
In-Reply-To: <20090107052009.GA3995@teddy.fas.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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  
> 
> <Directory "/usr/local/www/ampache/">
>     Order allow,deny
> 	Allow from all
> 	</Directory>
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4964BD4A.4060300>