Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi boys and girls!
I wanted to install PHP and MySQL on my DNS-313, so I installed the latest version of lighthttpd from Fonz website:
I configured lighthttpd to listen on port 8088 (and configured my router according to that)
After that, I followed instructions from http://188.8.131.52/dns-323/mysql_and_php/ to install PHP and MySQL. I installed following version:
I copied sample config file for MySQL: cp /ffp/etc/examples/my.cnf /ffp/etc/.
I copied sample config file for PHP: cp /ffp/etc/examples/php.ini-recommended /ffp/etc/php.ini
Then I added following lines to end of pnp.ini file (using vim):
extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/mysql.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/pdo.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/zlib.so
Then I run mysql_install_db and set root password for MySQL.
Then I created index.php in cd mnt/HD_a2/www/pages/ with following code in it:
<html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html>
I started lighthttpd:
sh ffp/start/lighttpd.sh start
I started MySQL:
sh ffp/start/mysqld.sh start
Then I opened my browser on http://192.168.1.3:8088/
but all I'm getting is 403 - Forbidden error.
Checking mnt/HD_a2/www/logs doesn't give me any clues (error.log is empty)...
Please, help me how to figure out this!
Last edited by ArcanuS_ME (2010-03-13 12:43:22)
Instead of using sample lighthttpd config file from examples: /mnt/HD_a4/ffp/etc/examples/lighttpd.conf I used this example file:
lighttpd.conf-with-php and copied it to /etc/lighttpd.conf
I also used this php.ini: wget http://184.108.40.206/dns-323/mysql_and_php/php.ini and placed it into /etc folder.
Now, I'm getting ''Hello world!'' response
Now, placing following code into index.php I'm getting what I want (for now):
<html> <head> <title>PHP Info</title> </head> <body> <?php phpinfo() ; ?> </body> </html>
Last edited by ArcanuS_ME (2010-03-13 13:33:29)
I'm having a little trouble with a program called musicserver, but followed the same steps to get mysql, php and lighttpd up on my dns-323.
I'm getting the following errors:
Warning: Your PHP installation lacks the Multibyte String Functions extension
Warning: Your PHP installation lacks the Internationalization Functions extension
...which leads me to believe I don't have the php.ini file correct. This is what the end of my php.ini file looks like:
; Local Variables: ; tab-width: 4 ; End: extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/gd.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/mysql.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/pdo.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/mbstring.so extension=ffp/lib/php/extensions/no-debug-non-zts-20060613/zlib.so
These are my extensions in ffp/lib/php/extensions/no-debug-non-zts-20060613
It looks like I'm enabling the mbstring.so extension in the php.ini, but I don't have an extension for the Internationalization error. Do I have to do anything other than place the extension code in the php.ini file?
Any help is much appreciated, I'm new to linux and only know it because I'm trying to hack all this fun stuff on the nas.
Thanks in advance!
I was unable to find these examples, maybe you can point me in the right direction. I couldn't find what I was looking for, hence, my post on this forum. Any specific answers to my question and errors above?
Again, I'm not a Linux pro, so this is quite new to me.