Author |
Message |
cube
Joined: 19 Dec 2004 Posts: 4
|
Posted: Mon Feb 14, 2005 3:10 pm Post subject: Safe Mode Ensim |
|
|
Hello,
I'm trying to installl the loader in a shared, name based,
Linux Fedora (safe mode on), ensim environnement.
I have edited the file :/etc/httpd/conf/site1/php adding this line:
zend_extension = /home/virtual/site1/fst/var/www/html/ioncube/ioncube_loader_lin_4.3.so
When I try to run an encoded script I get:
Parse error: parse error, unexpected '/' in /home/virtual/site1/fst/var/www/html/upl/index.php on line 2
Any clues?
Thanks. |
|
Back to top |
|
 |
liaison ionCube Support
Joined: 16 Dec 2004 Posts: 2788
|
Posted: Mon Feb 14, 2005 3:54 pm Post subject: |
|
|
Hi
This is most likely to be either from corrupting files during install, editing an encoded file or in some other way changing it, or from customising the encoded file incorrectly during encoding time so as to produce invalid preamble code at the start of the file.
If the Loader is already installed, which it looks like you have done with the php.ini file, then the PHP premable at the start of the encoded file would only be executed if the Loader didn't recognise the file as encoded. As the code has been run through PHP, and the Loader hasn't recognised the file as encoded, this suggests that the file probably was mangled during installation.
The most usual way for this to happen is with FTP or WinZIP performing CR/LF conversion on the files. This corruption actually isn't a problem if the files were encoded with our ASCII file format, but with the binary file format it can be.
Make sure that you disable TAR smart cr/lf conversion if using WinZIP, and in FTP, always select binary mode, and don't let the FTP client automatically choose a transfer mode because many FTP programs will make the wrong choice.
If producing encoded packages yourself, you might find our IPF product to be a great benefit here. With IPF, you can produce Windows installers from Windows or Linux that will handle the entire install process for the end user, including running of post install scripts, setting custom file permissions and installing Loaders, making installation much simpler for the end user.
If you need further help, please don't hesitate to post into our helpdesk so that we can best track the query.
http://www.ioncube.com/ic_helpdesk/index.php?department=3 _________________ Community Admin |
|
Back to top |
|
 |
|
|