Re: PHP setup question
- From: Steve Bertrand <steve@xxxxxxxxxx>
- Date: Wed, 07 Jan 2009 09:33:46 -0500
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@xxxxxxxxxxxxxxxxxxxxx:/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
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: PHP setup question
- From: stan
- Re: PHP setup question
- References:
- Re: PHP setup question
- From: stan
- Re: PHP setup question
- From: stan
- Re: PHP setup question
- From: stan
- Re: PHP setup question
- From: stan
- Re: PHP setup question
- From: stan
- Re: PHP setup question
- From: Steve Bertrand
- Re: PHP setup question
- From: stan
- Re: PHP setup question
- Prev by Date: Re: FreeBSD USB Install
- Next by Date: Re: PHP setup question
- Previous by thread: Re: PHP setup question
- Next by thread: Re: PHP setup question
- Index(es):
Relevant Pages
|