Re: PHP setup question

2009-01-14 Thread stan
On Tue, Jan 13, 2009 at 09:42:11AM -0500, Steve Bertrand wrote:
 stan wrote:
 
  If you want to see what I have, It's reachable at
  http://beachcave/net/ampache/
 
 I can't reach it :)
 
 Reply with the proper URL and I'll have a look.
 

Sorry, it's http://beachcave.net/ampache/

I just droped teh database, and removed the ampache.cfg.php  file, so the
error shold be reproducible.
-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-13 Thread Steve Bertrand
stan wrote:

 If you want to see what I have, It's reachable at
 http://beachcave/net/ampache/

I can't reach it :)

Reply with the proper URL and I'll have a look.

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-11 Thread stan
On Sat, Jan 10, 2009 at 09:22:36AM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 08:03:32PM -0500, stan wrote:
  
  I am trying to get the ampcache port working on a 7.1 machine.
 
 Just wondering if you've resolved the problems you had with this.
 

I installed amapche on an Ubuntu mahcine, and folowed the same procedure
(except for quoting the rss variables). Once again when I went to write the
config file, I had to download it to the machine that I was running the web
browser on. Once I did that, and located the appropriate place on the
Ubuntu machine, everything worked as expected. I am building a music
catalog as we speak on that machine. This leads me to suspect that there is
something wrong with the way I am seting it up on the FreeBSD machine.

Going through the _exact_ same procdure as on the Ubuntu machine results in
the following when I try to procedd to step 3 in the web installer.

Error: Config file detected, Ampache is already installed (displayed in the
browser).

Can we idntify exactly what causes this error message? If so, maybe I cna
check that on the FreeBSD machine.

I really need this to work on the FreeBSD machine, as it is where the music
is stored, and it's the web serer accessible from outside.

Thanks,


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-11 Thread stan
On Sat, Jan 10, 2009 at 09:22:36AM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 08:03:32PM -0500, stan wrote:
  
  I am trying to get the ampcache port working on a 7.1 machine.
 
 Just wondering if you've resolved the problems you had with this.

I played witht his a bit more this weekend, and had a friend of mine look
at it. he points out that after you put the config file in place, and you
get the File Not Found error from the web browser that teh URL that it is
pointing at is http://beachcave.net/update.php. This is wrong, if you
manually enter http://beachcave/net/ampache/update.php you get to a pahe
that shows some diagnostices. The first item on that page that _does not_
show OK is Ampache.cfg.php Configured?  [ ERROR ] I am wondiering if I
ahve somethinf set up incorectly here. What should I look for?

BTW, I did install amapche on an Ubuntu system, and get it configured and
working, so my problem must have something to do witht eh configuration on
the FreeBSD system, right?


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-10 Thread stan
On Wed, Jan 07, 2009 at 04:57:45PM -0500, Steve Bertrand wrote:
 stan wrote:
  On Wed, Jan 07, 2009 at 09:33:46AM -0500, Steve Bertrand wrote:
  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.
 
  Thanks for puting in all this effort!!
 
 No problem.
 
  $  ls -l /usr/local/www/ampache/config
  total 24
  -r--r--r--  1 www  www  19352 Jan  5 16:38 ampache.cfg.php.dist
  -r--r--r--  1 www  www141 Aug 31 02:20 motd.php.dist
  -r--r--r--  1 www  www 96 Aug 31 02:20 registration_agreement.php.dist
  $ 
  
  Does this look corect?
 
 No.
 
 You did not put the downloaded ampache.cfg.php file in the
 ampache/config directory.
 
 Your /usr/local/www/ampache/config should look like this:
 
 
 testweb# ll /usr/local/www/ampache/config/
 total 46
 -r--r--r--  2 www  www 14 Aug 31 02:20 .htaccess
 -rw-r--r--  1 www  www  19366 Jan  7 09:23 ampache.cfg.php
 -r--r--r--  2 www  www  19352 Jan  7 09:19 ampache.cfg.php.dist
 -r--r--r--  2 www  www141 Aug 31 02:20 motd.php.dist
 -r--r--r--  2 www  www 96 Aug 31 02:20 registration_agreement.php
 
 Note the ampache.cfg.php file. It is the one that I downloaded during
 install to my local workstation. I then uploaded it back to the server,
 and put it in the config directory per the documentation.
 
Right, I had not done that, this time yet. It's there now:

-rw-r--r--   1 root  www  19363 Jan  8 05:57 ampache.cfg.php

I had a busy week at work, and am just now getting back to this.

If you want to see what I have, It's reachable at
http://beachcave/net/ampache/
As it stnads, it is pretty much exactly the way the ports tree installed it
except that I have put the double quotes around the rss variables in the
/usr/local/www/ampacahe/config/ampache.conf.dst file.

I think I must be missing something importnat about the configuration steps
that are required using the web installer. I know that I am confused about
the 3 different user levels (system Mysql, and Ampache, right?)

If you have any helpful sugestions, they would be greatly appreciated.


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-10 Thread stan
On Sat, Jan 10, 2009 at 09:22:36AM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 08:03:32PM -0500, stan wrote:
  
  I am trying to get the ampcache port working on a 7.1 machine.
 
 Just wondering if you've resolved the problems you had with this.

No, I had a bust week at work, and am really just starting to look at it
again.


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-07 Thread Steve Bertrand
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
r...@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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-07 Thread Steve Bertrand
stan wrote:

 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

Oh, I missed this my first pass through...

If what you claim above is not a typo, then the system surely can not
find a configuration, as it should be named:

ampache.cfg.php

...not ampache.cfg

Small point, but could be a critical one.

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-07 Thread stan
On Wed, Jan 07, 2009 at 09:33:46AM -0500, Steve Bertrand wrote:
 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.
 
Thanks for puting in all this effort!!

 
 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

$ ls -l /usr/local/www
total 12
drwxr-xr-x  15 www   www1024 Jan  5 16:33 ampache
drwxr-xr-x   6 root  wheel   512 Dec 28 17:38 apache22
drwxr-xr-x  18 root  wheel   512 Jan  3 22:06 data
drwxr-xr-x  21 root  wheel  2560 Jan  1 14:34 gallery
drwxr-xr-x   9 root  wheel   512 Dec 29 12:24 nagios


$  ls -l /usr/local/www/ampache/config
total 24
-r--r--r--  1 www  www  19352 Jan  5 16:38 ampache.cfg.php.dist
-r--r--r--  1 www  www141 Aug 31 02:20 motd.php.dist
-r--r--r--  1 www  www 96 Aug 31 02:20 registration_agreement.php.dist
$ 

Does this look corect?
-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-07 Thread stan
On Wed, Jan 07, 2009 at 09:40:56AM -0500, Steve Bertrand wrote:
 stan wrote:
 
  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
 
 Oh, I missed this my first pass through...
 
 If what you claim above is not a typo, then the system surely can not
 find a configuration, as it should be named:
 
 ampache.cfg.php
 
 ...not ampache.cfg
 
 Small point, but could be a critical one.


Could be. I will have to wait till I am home to actually check this, as the
machine I downloaded it to is not remotely acesible, and at th moment I don't
have it on the web server machine.

Thanks.
-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-07 Thread Steve Bertrand
stan wrote:
 On Wed, Jan 07, 2009 at 09:33:46AM -0500, Steve Bertrand wrote:
 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.

 Thanks for puting in all this effort!!

No problem.

 $  ls -l /usr/local/www/ampache/config
 total 24
 -r--r--r--  1 www  www  19352 Jan  5 16:38 ampache.cfg.php.dist
 -r--r--r--  1 www  www141 Aug 31 02:20 motd.php.dist
 -r--r--r--  1 www  www 96 Aug 31 02:20 registration_agreement.php.dist
 $ 
 
 Does this look corect?

No.

You did not put the downloaded ampache.cfg.php file in the
ampache/config directory.

Your /usr/local/www/ampache/config should look like this:


testweb# ll /usr/local/www/ampache/config/
total 46
-r--r--r--  2 www  www 14 Aug 31 02:20 .htaccess
-rw-r--r--  1 www  www  19366 Jan  7 09:23 ampache.cfg.php
-r--r--r--  2 www  www  19352 Jan  7 09:19 ampache.cfg.php.dist
-r--r--r--  2 www  www141 Aug 31 02:20 motd.php.dist
-r--r--r--  2 www  www 96 Aug 31 02:20 registration_agreement.php

Note the ampache.cfg.php file. It is the one that I downloaded during
install to my local workstation. I then uploaded it back to the server,
and put it in the config directory per the documentation.

Cheers,

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-06 Thread stan
On Mon, Jan 05, 2009 at 09:45:23PM -0600, Kelly D. Grills wrote:
 On Mon, Jan 05, 2009 at 04:51:08PM -0500, stan wrote:
  
  Clearly I am still confused. :-(
  
  I just duid as you suggested, and all went well until I pushed the Write
  Config button at Step 2. At this point I was offered the option fo
  downlaoding to the machine that I was running the web browser on this config
  file. Since this is where I got hung up last. I stoped to ask what I am 
  doing
  wrong. If I download this file, and put it in the config directory, based
  upon previous behavior the setup process will refuse to run, because the
  config file exists.
  
  What basic misunderstanding do I ahve here?
 
 I'm out of advice. I'd strongly advise that you seek help from the Ampache
 developers / community (http://ampache.org/). You'll be on topic there, and
 surely get more advice.

OK,
Can you please explain how the step 2 to 3 transition is supposed to work in
the web based installer? Is the step 2 process supposed to write the
config.php file to ampache/config? If so, why, when I do that manually does
it refuse to go to step 3?


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-06 Thread stan
On Mon, Jan 05, 2009 at 09:45:23PM -0600, Kelly D. Grills wrote:
 On Mon, Jan 05, 2009 at 04:51:08PM -0500, stan wrote:
  
  Clearly I am still confused. :-(
  
  I just duid as you sugested, and all went well untill I pushed the Write
  Config button at Step 2. At this point I was offered teh option fo
  downlaoding to the machine that I was running the web browser on this config
  file. Since this is where I got hung up last. I stoped to ask what I am 
  doing
  wrong. If I download this file, and put it in the config directory, based
  upon previous behavior the setup process will refuse to run, because the
  config file exists.
  
  What basic misunderstanding do I ahve here?
 
 I'm out of advice. I'd strongly advise that you seek help from the Ampache
 developers / community (http://ampache.org/). You'll be on topic there, and
 surely get more advice.

I have posted the following to the Install forum over there. Perhaps
someone can explain how the step 2 to step 3 transition in the web based
installer is supposed to work. I must admit, I have no clue how it's
supposed to work


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-06 Thread stan
On Mon, Jan 05, 2009 at 09:45:23PM -0600, Kelly D. Grills wrote:
 On Mon, Jan 05, 2009 at 04:51:08PM -0500, stan wrote:
  
  Clearly I am still confused. :-(
  
  I just duid as you sugested, and all went well untill I pushed the Write
  Config button at Step 2. At this point I was offered teh option fo
  downlaoding to the machine that I was running the web browser on this config
  file. Since this is where I got hung up last. I stoped to ask what I am 
  doing
  wrong. If I download this file, and put it in the config directory, based
  upon previous behavior the setup process will refuse to run, because the
  config file exists.
  
  What basic misunderstanding do I ahve here?
 
This thread represents an exmaple of exactly the problem I am facing. It
appears as though this behavior can be triggered by running the wrong
version of ampache.

Can anyone confirm that the version in ports actually works?



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-06 Thread Steve Bertrand
stan wrote:
 On Mon, Jan 05, 2009 at 09:45:23PM -0600, Kelly D. Grills wrote:
 On Mon, Jan 05, 2009 at 04:51:08PM -0500, stan wrote:
 Clearly I am still confused. :-(

 I just duid as you sugested, and all went well untill I pushed the Write
 Config button at Step 2. At this point I was offered teh option fo
 downlaoding to the machine that I was running the web browser on this config
 file. Since this is where I got hung up last. I stoped to ask what I am 
 doing
 wrong. If I download this file, and put it in the config directory, based
 upon previous behavior the setup process will refuse to run, because the
 config file exists.

 What basic misunderstanding do I ahve here?
 This thread represents an exmaple of exactly the problem I am facing. It
 appears as though this behavior can be triggered by running the wrong
 version of ampache.
 
 Can anyone confirm that the version in ports actually works?

Stan,

It appears as though you are bouncing off the walls to find a solution.

Did you contact the appropriate list as prescribed by Kelly?

Can you document a well-defined approach in regards to the installation
methods you need to follow to reach the goal you are after?

If so, email it to the list, starting with your base OS version. I'll
help you out with a test platform if you can get things organized.

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-06 Thread stan
On Tue, Jan 06, 2009 at 10:01:58PM -0500, Steve Bertrand wrote:
 stan wrote:
  On Mon, Jan 05, 2009 at 09:45:23PM -0600, Kelly D. Grills wrote:
  On Mon, Jan 05, 2009 at 04:51:08PM -0500, stan wrote:
  Clearly I am still confused. :-(
 
  I just duid as you sugested, and all went well untill I pushed the Write
  Config button at Step 2. At this point I was offered teh option fo
  downlaoding to the machine that I was running the web browser on this 
  config
  file. Since this is where I got hung up last. I stoped to ask what I am 
  doing
  wrong. If I download this file, and put it in the config directory, based
  upon previous behavior the setup process will refuse to run, because the
  config file exists.
 
  What basic misunderstanding do I ahve here?
  This thread represents an exmaple of exactly the problem I am facing. It
  appears as though this behavior can be triggered by running the wrong
  version of ampache.
  
  Can anyone confirm that the version in ports actually works?
 
 Stan,
 
 It appears as though you are bouncing off the walls to find a solution.

Well. lets's see, I have been trying to gte it working since Saturday :-(

 
 Did you contact the appropriate list as prescribed by Kelly?

It's unfortunately not a list, whcih I find intuitive, and useful, but one
of those web base wiki sort of things. As you can see from another messahe,
I posted teh problem there this mornimg. Zero replies since then.

 
 Can you document a well-defined approach in regards to the installation
 methods you need to follow to reach the goal you are after?

I am confused by this. Is this a request to be able to reproduce the
probkem? If so, absolutely.

 
 If so, email it to the list, starting with your base OS version. I'll
 help you out with a test platform if you can get things organized.

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

ports of interest:

ampache-3.4.3  
mysql-client-5.0.75 
mysql-server-5.0.75 
apache-2.2.11 

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

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

Point your browser to the ampacge/install.php file the webserver for this
machine.

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

Try to proced to step 3. You should get an error message saying that
Ampache is already configured (but it's not0.

I beleive this is a repeatvle bug.

Thanks for the help here.


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-05 Thread stan
On Sun, Jan 04, 2009 at 04:45:41PM -0600, Kelly D. Grills wrote:
 On Sun, Jan 04, 2009 at 03:33:19PM -0500, stan wrote:
  
  OK, I did make some progress here. I figured out that I needed to change
  the grant to:
  
   GRANT ALL ON ampache to 'ampache_user'@'localhost' IDENTIFIED BY 'x' ;
  
  Then I entered this passwrd in the step 2 install page, and tried to write
  the config file. I could not, but,as stated in the docs, it offered to ket
  me download it. I did so, and put it in /usr/local/www/ampache/config. I
  set the owner to www. Good so, far, but now when I try to proced to step 3,
  I get:
  
  Error: Config file detected, Ampache is already installed
  
  So, I am guessing I should have somehow continued to set up this file
  without putting it in place?
 
 Well, I don't know every step you've taken, but this seems to have become
 much more difficult than it needs to be. All I've ever done is to install
 the ampache port and run through the web setup, no manually futzing with
 the database, etc.
 
 At this point I would:
 
 1: deinstall the ampache port, manually rm /usr/local/www/ampache if required
 2: drop the ampache database you've manually created
 3: reinstall the ampache port
 4: edit the default config file to quote those rss string values
(/usr/local/www/ampache/config/ampache.cfg.php.dist)
 5: run through the web setup

Clearly I am still confused. :-(

I just duid as you sugested, and all went well untill I pushed the Write
Config button at Step 2. At this point I was offered teh option fo
downlaoding to the machine that I was running the web browser on this config
file. Since this is where I got hung up last. I stoped to ask what I am doing
wrong. If I download this file, and put it in the config directory, based
upon previous behavior the setup process will refuse to run, because the
config file exists.

What basic misunderstanding do I ahve here?


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-05 Thread Glen Barber

stan wrote:

I am trying to get the ampcache port working on a 7.1 machine. I have
installed the port, which puts it's files in /usr/local/www/a,pcache. I
  


Considering seeing a few of your questions on this list, and the 
excessive typos in this post alone, I'd double check your configs for 
typos and look at the error log. 

[[ snip ]]



--
Glen Barber

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-04 Thread stan
On Sun, Jan 04, 2009 at 01:00:44PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 11:51:15PM -0500, stan wrote:
  
  Looking at the doc, you referenced, it appears that I should be able to
  connect to beachcave.net/install.php
  
  Doing so resluts in:
  
  The requested URL /install.php was not found on this server.
 
 
 No, you should be able to access:
 http://beachcave.net/ampache/install.php
 
 I just did.
 
Thanks, I supose I had a typo somewhere. I apreciate all the help with
this.

Ubfortunately  I am still confused. It appears that there are 3 levels of
username/password involved here:

1. OS
2. MySQL
3. Ampache

Is this correct?

In any case, this is where I am. Loged in as the OS root user, I am able to
atach to Mysql and I have run the following commands:

create databse ampache ;
use ampache ;
GRANT ALL ON ampache to ampache_user ;

Is this correct? So I should have a Mysql user called ampache_user that can
access the ampache database, correct?

So. I am at step 3 in the web based setup, and trying to proced to step 3,
but I get an error about Database Selection Failure Check Existance of
ampache 

The /usr/local/www/ampache/config directory permisons look like this:

drwxr-xr-x   2 www   www   512 Jan  3 23:47 config

Apache should be running as www, if I am not mistaken.

after re-reading the MySQL docs, I changed the grant to:

GRANT ALL ON ampache to 'ampache_user'@'localhost' ;

and now when I try to go to step 3 I get:

Error: Config file not found or Unreadable

Can you please tell me what I am doing wrong now?

Sorry for my ignorance in the use of MySQL etc.



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-04 Thread stan
On Sun, Jan 04, 2009 at 01:00:44PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 11:51:15PM -0500, stan wrote:
  
  Looking at the doc, you referenced, it appears that I should be able to
  connect to beachcave.net/install.php
  
  Doing so resluts in:
  
  The requested URL /install.php was not found on this server.
 
 
 No, you should be able to access:
 http://beachcave.net/ampache/install.php
 
 I just did.
 
OK, I did make some progress here. I figured out that I needed to change
the grant to:

 GRANT ALL ON ampache to 'ampache_user'@'localhost' IDENTIFIED BY 'x' ;

Then I entered this passwrd in the step 2 install page, and tried to write
the config file. I could not, but,as stated in the docs, it offered to ket
me download it. I did so, and put it in /usr/local/www/ampache/config. I
set the owner to www. Good so, far, but now when I try to proced to step 3,
I get:

Error: Config file detected, Ampache is already installed

So, I am guessing I should have somehow continued to set up this file
without putting it in place?



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


PHP setup question

2009-01-03 Thread stan
I am trying to get the ampcache port working on a 7.1 machine. I have
installed the port, which puts it's files in /usr/local/www/a,pcache. I
have my Apache serer configured to use /usr/local/www/data as it's
documentroot:

DocumentRoot /usr/local/www/data

I made the php5 port, with a configuration to create the php5 apcehc
module, and I have added this to the http.conf file:

LoadModule php5_modulelibexec/apache22/libphp5.so

I have also added the folowing:

 Options Indexes FollowSymLinks ExecCGI

and

IfModule dir_module
DirectoryIndex index.html index.php
/IfModule

and

IfModule mime_module
.
.

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

/IfModule
and restarted Apache Yet when I point my browser to
http://my_machine/ampcache

I get a Not Found error.

What am I doing wrong?


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-03 Thread stan
On Sat, Jan 03, 2009 at 08:29:27PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 08:03:32PM -0500, stan wrote:
  
  I am trying to get the ampcache port working on a 7.1 machine. I have
  installed the port, which puts it's files in /usr/local/www/a,pcache. I
  have my Apache serer configured to use /usr/local/www/data as it's
  documentroot:
  
  DocumentRoot /usr/local/www/data
  
 
 snippage
 
  and restarted Apache Yet when I point my browser to
  http://my_machine/ampcache
  
  I get a Not Found error.
  
  What am I doing wrong?
 
 Your ampache installation is not in your DocumentRoot.
 
 Edit your httpd.conf ...
 
 To allow access to your ampache:
 
 Directory /usr/local/www/ampache/
 Order allow,deny
 Allow from all
 /Directory
 
 To map your ampache's web path to it's filesystem path:
 
 Alias /ampache /usr/local/www/ampache
 
Hmm, I thoght my Follow Symlinks directive would fix that. But I removed
that link, made teh changes you sugested, and now I get:

The requested URL /update.php was not found on this server.

What else might I have wrong?



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-03 Thread stan
On Sat, Jan 03, 2009 at 09:35:18PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 10:15:01PM -0500, stan wrote:
 
  Hmm, I thoght my Follow Symlinks directive would fix that. But I removed
  that link, made teh changes you sugested, and now I get:
  
  The requested URL /update.php was not found on this server.
  
  What else might I have wrong?
 
 It's an issue with ampache and php5. I believe it's been fixed in ampache 
 3.4.4,
 which is not in ports yet.i
 
 At any rate, in order to get your 3.4.3 working you need to edit your 
 ampache.cfg.php
 (/usr/local/www/ampache/config/ampache.cfg.php)
 
 Enclose the string values of rss_main_title, rss_main_description and 
 rss_main_copyright
 in double quotes.
 
 rss_main_title = Ampache for the love of Music
 rss_main_description = Rss feed for Ampache so you can monitor who is 
 listening to what
 rss_main_copyright = copyright (c) Speedy B for Ampache

Thanks, I would have never found that. We made progress, but now I get:

The requested URL /login.php was not found on this server.

Note that it's a different file it's complaining about now.

You should be able to see this, if you point your browswer at
beachcave.net/ampache BTW beachcave.net/test.php is working, I got that
from:

http://tinyurl.com/2khvsg

For what it is worth, and thnaks so much for the help on this!


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-03 Thread stan
On Sat, Jan 03, 2009 at 10:09:43PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 10:55:56PM -0500, stan wrote:
  
  You should be able to see this, if you point your browswer at
  beachcave.net/ampache BTW beachcave.net/test.php is working, I got that
  from:
 
 http://beachcave.net/ampache/test.php
 
 DB Connection [ ERROR ]
 DB Inserted   [ ERROR ]
 
 Looks as though you have a problem with your database.

Probably. It's a new machine, and I have not got anything that depends on
MySQL running yet. I figured when I got past the Not Found errors I'd see
what I needed to do to get the conection the the DB going. I have not found
anything in the docs about setting up the requisite tables yet, either.


But the Not Fond error has to be corected before I get to that, right?


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-03 Thread stan
On Sat, Jan 03, 2009 at 10:09:43PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 10:55:56PM -0500, stan wrote:
  
  You should be able to see this, if you point your browswer at
  beachcave.net/ampache BTW beachcave.net/test.php is working, I got that
  from:
 
 http://beachcave.net/ampache/test.php
 
 DB Connection [ ERROR ]
 DB Inserted   [ ERROR ]
 
 Looks as though you have a problem with your database.

BTW, I do have the php5-mysql-5.2.8  port installed, and MySQL seems to be
running:

black# ps -ax | grep my
67337  ??  I  4:11.11 /usr/local/libexec/mysqld --defaults-file=/var/db/squ
968 con- IW 0:00.00 /bin/sh /usr/local/bin/mysqld_safe --defaults-extra-f
1004 con- I  3:48.24 /usr/local/libexec/mysqld --defaults-extra-file=/var/



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-03 Thread stan
On Sat, Jan 03, 2009 at 10:09:43PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 10:55:56PM -0500, stan wrote:
  
  You should be able to see this, if you point your browswer at
  beachcave.net/ampache BTW beachcave.net/test.php is working, I got that
  from:
 
 http://beachcave.net/ampache/test.php
 
 DB Connection [ ERROR ]
 DB Inserted   [ ERROR ]
 
 Looks as though you have a problem with your database.

I conected to MySQL, and the following Databases exist FYI:

| information_schema | 
| mysql  | 
| test 


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-03 Thread stan
On Sat, Jan 03, 2009 at 10:42:37PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 11:24:02PM -0500, stan wrote:
   
   Looks as though you have a problem with your database.
  
  Probably. It's a new machine, and I have not got anything that depends on
  MySQL running yet. I figured when I got past the Not Found errors I'd see
  what I needed to do to get the conection the the DB going. I have not found
  anything in the docs about setting up the requisite tables yet, either.
  
  
  But the Not Fond error has to be corected before I get to that, right?
 
 Ampache requires MySQL 4.1 or higher, per the requirements at 
 http://ampache.org/

OK, we seem to be OK there:

Server version: 5.0.75 FreeBSD port

 I believe the errors you're currently seeing are a result of the lack of a 
 database.
 
 When you iniatially ran the web setup you should have been asked for database 
 info.

I ssume you mean setting up Ampache via a browserr connection to it,
correct? If so, I have been unable to do that, yet as I can't get past the
Not Found errors. A, I on the right track here?

 You can insert the tables manually, see section 2.2 of the INSTALL document.
 (/usr/local/www/ampache/docs/INSTALL)
 
Looking at the doc, you referenced, it appears that I should be able to
connect to beachcave.net/install.php

Doing so resluts in:

The requested URL /install.php was not found on this server.

So I don't think I am quite as far along as you think I am :-(



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP setup question

2009-01-03 Thread stan
On Sat, Jan 03, 2009 at 10:42:37PM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 11:24:02PM -0500, stan wrote:
   
   Looks as though you have a problem with your database.
  
  Probably. It's a new machine, and I have not got anything that depends on
  MySQL running yet. I figured when I got past the Not Found errors I'd see
  what I needed to do to get the conection the the DB going. I have not found
  anything in the docs about setting up the requisite tables yet, either.
  
  
  But the Not Fond error has to be corected before I get to that, right?
 
 Ampache requires MySQL 4.1 or higher, per the requirements at 
 http://ampache.org/
 I believe the errors you're currently seeing are a result of the lack of a 
 database.
 
 When you iniatially ran the web setup you should have been asked for database 
 info.
 You can insert the tables manually, see section 2.2 of the INSTALL document.
 (/usr/local/www/ampache/docs/INSTALL)
 
Looking at this doc, I did find that I had incorectly copied
ampache.cfg.php.dist to ampache.cfg.php So I removed thta. But I still get
the

The requested URL /install.php was not found on this server.

error.

It does look like if I gte past this, and can get the web installer
running, I should be able to figure it out from thre.

Thanks for the help.



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org