Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

php.ini

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
49 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by joem » Sun Dec 07, 2014 3:19 am

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(); ?>
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Tue Dec 09, 2014 9:35 am

Hi,
hope this helps:
link
Last edited by webass on Mon Dec 29, 2014 8:30 pm, edited 1 time in total.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by joem » Thu Dec 11, 2014 8:16 am

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.
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Thu Dec 11, 2014 7:56 pm

Cool. Thx. I'll try this soon. I havent even thought about nginx

Soon.
Andre
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by joem » Fri Dec 12, 2014 12:08 am

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.
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Sun Dec 14, 2014 4:29 pm

Hi,
I did it but am not sure if it worked...
with php -m it still doesnt show.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by joem » Sun Dec 14, 2014 7:17 pm

webass wrote:Hi,
I did it but am not sure if it worked...
with php -m it still doesnt show.

did you restart httpd?
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Mon Dec 15, 2014 2:19 pm

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
Last edited by webass on Mon Dec 29, 2014 8:30 pm, edited 1 time in total.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by joem » Wed Dec 17, 2014 6:21 am

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
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Wed Dec 17, 2014 2:32 pm

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
Last edited by webass on Mon Dec 29, 2014 8:31 pm, edited 1 time in total.
Top


Post Reply
  • Print view

49 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password