macsat.com OpenWrt and ASUS WL Forum
November 20, 2008, 16:20:39 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Oleg's Firmware / Tutorials / Re: How to execute php scripts ? on: March 07, 2008, 06:42:13 AM
i found ont he download.openwrt.org page the library. it's in a ipkg package. but unfortunately i can't install it.

this is the content of the package:
Code:
drwxr-xr-x root/root         0 2006-03-18 14:29:56 ./
drwxr-xr-x root/root         0 2006-03-18 14:29:56 ./usr/
drwxr-xr-x root/root         0 2006-03-18 14:29:56 ./usr/lib/
-rwxr-xr-x root/root    170271 2006-03-18 14:29:56 ./usr/lib/libuClibc++-0.1.11.so
lrwxrwxrwx root/root         0 2006-03-18 14:29:56 ./usr/lib/libuClibc++.so -> libuClibc++.so.0
lrwxrwxrwx root/root         0 2006-03-18 14:29:56 ./usr/lib/libuClibc++.so.0 -> libuClibc++-0.1.11.so

Code:
[admin@(none) root]$ ipkg -force-depends install http://downloads.openwrt.org/backports/rc4/uclibc++_0.1.11-1_mipsel.ipk
Downloading http://downloads.openwrt.org/backports/rc4/uclibc++_0.1.11-1_mipsel.ipk
Installing uclibc++ (0.1.11-1) to /opt/...
ipkg: /usr/lib/libuClibc++-0.1.11.so: Read-only file system
ipkg: Cannot create symlink from ./usr/lib/libuClibc++.so to 'libuClibc++.so.0':
Read-only file system
ipkg: Cannot create symlink from ./usr/lib/libuClibc++.so.0 to 'libuClibc++-0.1.11.so':
Read-only file system
Configuring uclibc++
Successfully terminated.

How can i make it install to /opt/lib and not /usr/lib ?

Any idea ?
2  Oleg's Firmware / Tutorials / How to execute php scripts ? on: March 06, 2008, 20:12:42 PM
Hello,

I have installed Oleg's firmware, with php-thttpd.

I have created a simple php script:
Code:
<?php
echo "Hello, World!\n";
?>

I can see the phptest.php in browser okey , by running http://192.168.1.1:81/phptest.php but if i run from the console :


Code:
[admin@(none) www]$ php phptest.php
php: can't load library 'libuClibc++.so.0'

it say's something about a missing library.

Can somebody help me please ? How can i make executables from php scripts ?

Thank you in advance
3  ASUS WL 500-g WL-500gx WL-300g and WL-HDD help / Misc. Talk / PHP on ASUSWL500-G Premium on: February 19, 2008, 09:36:31 AM
Hello guys,

I have an ASUS WL 500g Premium running for the moment, DD-WRT.

What i would like to install, is PHP with shell_exec possibilities.

I wanted to install Apache from Optware packages, but there is a slight note at the beggining :

Quote
Plead: Could someone please make it so we can use system() and exec() commands in PHP

(The answer seems to be "no"; as is noted below, running Apache in Prefork mode, which is necessary to support this, "uses too much memory to be useful on a slug, even when configured conservatively." If you want to experiment, note that Debian has Apache packages for each of the different MPM modes including Prefork, so you could try that.)

I'd like to ask you if there is another posibility of installing PHP with shell_exec function ? Maybe another firmware ? Another distribution of Apache ?

The note says something Apache including Prefork. I would try that but i have no idea how !

Can u please help me, or give me some hints ?

Thank you in advance !
Pages: [1]
English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.221 seconds with 24 queries.