Re: PHP setup question



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"



Relevant Pages

  • Why is mod_limitipconn-0.23 in Ubuntu 8.04 not working?
    ... The steps I took to install and use limitipconn. ... I build the source code as an Apache DSO: ... Everything is OK till make done, there are no error messages. ... had modified the default config file. ...
    (Ubuntu)
  • RE: PHP5 and MySQL
    ... I did make config. ... runs config first and then does the install. ... Subject: PHP5 and MySQL ...
    (freebsd-questions)
  • Apache Tomcat Slackware
    ... Slackware 10.0 with the default java install. ... as the connection between Tomcat and Apache is easiest ... All I want is the connector between Apache ... Make sure the workers2.properties is in your apache config directory. ...
    (comp.lang.java.programmer)
  • Apache Tomcat Slackware
    ... Slackware 10.0 with the default java install. ... as the connection between Tomcat and Apache is easiest ... All I want is the connector between Apache ... Make sure the workers2.properties is in your apache config directory. ...
    (comp.lang.java.help)
  • Apache Tomcat Slackware
    ... Slackware 10.0 with the default java install. ... as the connection between Tomcat and Apache is easiest ... All I want is the connector between Apache ... Make sure the workers2.properties is in your apache config directory. ...
    (comp.os.linux)