DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-05-08 01:21:09

mozkill
Member
Registered: 2008-04-26
Posts: 20

phpMyAdmin help

Hello.   I used optware instructions at:  http://dns323.kood.org/howto:optware    and now I am stuck.

I used 'ipkg'  to install  mysql, perl, php, and phpmyadmin .   I changed my lighthttpd.conf to point at /opt/share/www for the webserver root because that is where ipkg wanted it.   My lighthttpd daemon works fine and I can see the 'phpmyadmin' directory in there but when i try to go to /phpmyadmin/login.php I am denied access.  Also, the web server denies me from seeing any files or directories beneath the /opt/share/www/phpmyadmin directory but does not deny me from browsing directories that I make myself in the /opt/share/www directory.   The error I get is a 403 error.

Does anyone know the default ipkg install for this app well enough to tell me how I get access to the php scripts?

Thanks, Jon

Last edited by mozkill (2008-05-08 01:29:52)

Offline

 

#2 2008-05-08 02:02:41

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: phpMyAdmin help

I understand it that one use php-fcgi for php to work under lighttpd.
On optware platforms, see http://www.nslu2-linux.org/wiki/HowTo/D … ingFastCGI for configuration.
I'd suggest you to try the simplest phpinfo page first, only when it's working, add mysql and phpmyadmin to the mix.

Offline

 

#3 2008-05-08 02:19:25

mozkill
Member
Registered: 2008-04-26
Posts: 20

Re: phpMyAdmin help

Thanks for the response.   I got it working by following the instructions on that page.  :-)

phpmyadmin seems to work fine now.


I got it running with phpsysinfo but the phpsysinfo script only halfway works.  It throws these errors:

Processors 1
Model ARM926EJ-Sid(wb) rev 0 (v5l)
CPU Speed 331.77 Mhz
Kernel Version 2.6.12.6-arm1
Cache Size 64.00 KB
System Bogomips 331.77
1.14 MB FREE  /  59.36 MB   USED

-----------
File Line Command Message
common_functions.php 158 find_program(who) program not found on the machine
common_functions.php 213 /bin/df /bin/df: illegal option -- P
BusyBox v1.00-pre1 (2007.12.10-08:03+0000) multi-call binary

Usage: df [-hmk] [FILESYSTEM ...]
Return value: 1
common_functions.php 213 /bin/df /bin/df: illegal option -- i
BusyBox v1.00-pre1 (2007.12.10-08:03+0000) multi-call binary

Usage: df [-hmk] [FILESYSTEM ...]
Return value: 1

Last edited by mozkill (2008-05-08 02:31:25)

Offline

 

#4 2008-05-08 03:05:09

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: phpMyAdmin help

Apparently /bin/df is just a link to /bin/busybox, not the full version, which does not support the -i (--inodes) option.
Get a full version of df either from funplug or optware, and make sure it's in the PATH of the user PHP runs under.
In optware, the full version /opt/bin/df can be found in the coreutils package.

Offline

 

#5 2008-05-08 05:56:15

mozkill
Member
Registered: 2008-04-26
Posts: 20

Re: phpMyAdmin help

thanks.  that helps a lot.  i would have never figured out where the df command was.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB