NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
installation on shared hosting?


Joined: 05 Jul 2007
Posts: 5
Reply with quote
I have just downloaded NuCoder and would like to deploy my encoded web applications on a number of different shared servers. How can I install the Php Express on a shared hosting account?

Thanks
View user's profileFind all posts by DarrenSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
As with any other host-wide configuration things, you need your hosting company assistance.
Basicly, phpexpress is a php extension and all you need is to copy it to the server and add it to php.ini

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 12 Feb 2005
Posts: 48
Reply with quote
You could try using the dl() function to load the extention (http://www.php.net/dl).
View user's profileFind all posts by KelvinSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
dl will load module for just one Apache child process while it's absolutely necessary to load it for all, otherwise you may get only "loader" functionality, not accelerator.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Mi proveedor de Hosting, no quiere instalar el PHPExpress


Joined: 07 Mar 2008
Posts: 6
Reply with quote
El problema que mi proveedor de Hosting no quiere instalar el PHPExpress y que mejor use Zend, sin embargo mi código lo tengo encriptado con Nu-coder y mis fuentes los perdi, mi proveedor de hosting, tiene el servidor en Windows e IIS, que puedo hacer para cargar el PHPExpress en tiempo de ejecución.
View user's profileFind all posts by mark_ivSend private messageMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
in english, please

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Install phpexpress in hosting shared


Joined: 07 Mar 2008
Posts: 6
Reply with quote
The problem that my supplier of Hosting does not want to install the PHPExpress and that better Zend uses, however, my code I have it encoder with Nu-coder and my sources are missing, my supplier of hosting, has the windows server, that I can make to load the PHPExpress in run time .
View user's profileFind all posts by mark_ivSend private messageMSN Messenger


Joined: 07 Nov 2007
Posts: 43
Reply with quote
Hello marco_iv,
If I understood you correctly you encoded files using our nucoder and don't have source code, so you need to use phpexpress and you can't put phpexpress in php.ini as a PHP extension.
If this understanding is correct you can try one of the following 2 options:
option #1 - make first file not encoded, and inside this file call dl('path/to/phpexpress.so') (first line);
then use "include" or "require" for other encoded files
option#2 - in php.ini include auto_prepend_file (if you can change php.ini this way), and put dl('path/to/phpexpress.so') right there. all encoded files will work.
'path/to/phpexpress.so' should be done like this:
if your extension_dir = /usr/lib/php4/extensions/
and phpexpress.so is in /home/migel/phpexpress/
then 'path/to/phpexpress.so' should be:
'../../../../home/migel/phpexpress/phpexpress.so'
so the call is: dl('../../../../home/migel/phpexpress/phpexpress.so');
I hope it helps.
If you have additional questions please email to support@nusphere.com
Best regards,
Sergey - Nusphere customer support
View user's profileFind all posts by gitmansSend private message
you understood


Joined: 07 Mar 2008
Posts: 6
Reply with quote
thanks a lot, however, my hosting provider has Windows server and IIS, your solution works in linux server, but it don't works in Windows server
View user's profileFind all posts by mark_ivSend private messageMSN Messenger


Joined: 07 Nov 2007
Posts: 43
Reply with quote
Hello,
Actually it depends:
dl() is supported for NTS (non-thread-safe) php, this is usually for Linux. But dl() is supported also for TS (thread-safe), only if you use CLI (php.exe), CGI (php-cgi.exe) and EMBED modules. It will not work for php5apache and php5isapi. so if your IIS server is configured as CGI or FastCGI everything should work, but if it is configured as php5isapi.dll it will not work, please check with your hosting provider.
Regards,
Sergey - Nusphere customer support
View user's profileFind all posts by gitmansSend private message
yes, mi hosting provider Server API CGI/FastCGI


Joined: 07 Mar 2008
Posts: 6
Reply with quote
my code was:

if (!extension_loaded('NuSphere PhpExpress')) {
dl('phpexpress-php-5.2.dll');
}

but, it don't works, what am i?
View user's profileFind all posts by mark_ivSend private messageMSN Messenger


Joined: 07 Mar 2008
Posts: 6
Reply with quote
My code is:

if (!extension_loaded('NuSphere PhpExpress')) {
dl('phpexpress-php-5.2.dll');
}

it don't works and it send me this error message

\directorios de extensiones => C:\Program Files\SWsoft\Plesk\Additional\PleskPHP5\ext
Warning: dl() [function.dl]: Unable to load dynamic library 'C:\Program Files\SWsoft\Plesk\Additional\PleskPHP5\ext\phpexpress-php-5.2.dll' - The specified module could not be found. in C:\Inetpub\vhosts\jalconsulting.com.mx\httpdocs\siase\index.php on line 7


add this line : ini_set('extension_dir','\httpdocs\siase\');

if (!extension_loaded('NuSphere PhpExpress')) {
dl('phpexpress-php-5.2.dll');
}

then, it send error message :

Parse error: syntax error, unexpected T_STRING in C:\Inetpub\vhosts\jalconsulting.com.mx\httpdocs\siase\index.php on line 6
View user's profileFind all posts by mark_ivSend private messageMSN Messenger
installation on shared hosting?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 2  

  
  
 Reply to topic