Page 4 of 5

Re: php.ini

Posted: Sun Dec 07, 2014 3:19 am
by joem
webass wrote:This was a good way to find out more.
I added it to

Code: Select all

/etc/php5/cli/php.ini 
and it came to an error whil performing php -m
which was:

Code: Select all

Failed loading /usr/local/ioncube/ioncube_loader_lin_5.5.so:  /usr/local/ioncube/ioncube_loader_lin_5.5.so: wrong ELF class: ELFCLASS32
Now a little research on "wrong ELF class: ELFCLASS32" implements, that I installed a 32 bit version of the library and try to get it to run on a 64 bit seystem. But I definetely downloaded the 64bit version...

On all other php.ini files it has no effect at all.
So, I suppose that the /etc/php5/cli/php.ini is the right one to add it, while I have no clue why this should be...

Anyway. the 64bit files of iconcube I downloaded and installed cannot be really the problem can they?
Place this in a php file and upload it to one of your websites on your server with the problem and provides us with a link to it please.

Code: Select all

<?PHP phpinfo(); ?>

Re: php.ini

Posted: Tue Dec 09, 2014 9:35 am
by webass
Hi,
hope this helps:
link

Re: php.ini

Posted: Thu Dec 11, 2014 8:16 am
by joem
webass wrote:Hi,
hope this helps:
nano /etc/php5/apache2/conf.d/20ioncube.ini
add the following

Code: Select all

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.5.so
zend_extension_ts = /usr/local/ioncube/ioncube_loader_lin_5.5_ts.so 
Make sure you restart nginx and httpd. * I would remove the link to your phpinfo page from your post now.

Re: php.ini

Posted: Thu Dec 11, 2014 7:56 pm
by webass
Cool. Thx. I'll try this soon. I havent even thought about nginx

Soon.
Andre

Re: php.ini

Posted: Fri Dec 12, 2014 12:08 am
by joem
webass wrote:Cool. Thx. I'll try this soon. I havent even thought about nginx

Soon.
Andre

You should not need to place anything in nginx config or apache config just the file above.

Re: php.ini

Posted: Sun Dec 14, 2014 4:29 pm
by webass
Hi,
I did it but am not sure if it worked...
with php -m it still doesnt show.

Re: php.ini

Posted: Sun Dec 14, 2014 7:17 pm
by joem
webass wrote:Hi,
I did it but am not sure if it worked...
with php -m it still doesnt show.

did you restart httpd?

Re: php.ini

Posted: Mon Dec 15, 2014 2:19 pm
by webass
root@123:~# service apache2 restart
* Restarting web server apache2 AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/conf.d/1.2.3.4.conf:1
[ OK ]
root@123:~# service nginx restart
* Restarting nginx nginx
yes, like this I did already.
Now did again...


Here I can verify also if its working its the req check by Ioncube.
link

Re: php.ini

Posted: Wed Dec 17, 2014 6:21 am
by joem
webass wrote:
root@123:~# service apache2 restart
* Restarting web server apache2 AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/conf.d/1.2.3.4.conf:1
[ OK ]
root@123:~# service nginx restart
* Restarting nginx nginx
yes, like this I did already.
Now did again...


Here I can verify also if its working its the req check by Ioncube.
http://trax.weilfair.com/check-server-requirements.php
Download a fresh copy of ioncube and upload the wizard to weilfair.com also reupload the phpinfo page please

Re: php.ini

Posted: Wed Dec 17, 2014 2:32 pm
by webass
I have no idea why, but now it works. link

I just used the new ones and copied over.

I tried first to instlal here: extension_dir => /usr/lib/php5/20121212 => /usr/lib/php5/20121212
Didnt work...
BUT.... why isnst it stored in /usr/lib/php5/20121212 but in /usr/local/ioncube/ioncube_loader_lin_5.5.s