LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-26-2014, 01:15 PM   #1
harry_ord
Member
 
Registered: Nov 2012
Posts: 61

Rep: Reputation: Disabled
Apache don't load anymore after attempting to install ioncube loader


Hello

I was following this tutorial:

http://www.ioncube.com/loader_installation.php

When i tried to restart Apache, it got stuck for like a minute and then it told me:

"The apache2 instance did not start within 20 seconds. Please read the log fil es to discover problems".

The log is telling me this:

"PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
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 i deleted the ioncube related lines and Apache still doesn't start.

What do i do?
 
Old 06-26-2014, 01:46 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
This is probably the file that the error was referring to.
Quote:
/etc/httpd/php.ini
I'm on a Slackware Current machine, so your path may vary. The easiest way to find it is to just "#find / -iname php.ini" from the command line as root or a root-like user.
Line 0 is pretty straight forward, it should just say
Quote:
[PHP]
Open the file up and take a look at what happened when you installed ionCube. If it's completely torn up, do an internet search for "php.ini" and just replace the file.
 
Old 06-26-2014, 02:05 PM   #3
harry_ord
Member
 
Registered: Nov 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
I looked for a php.ini file on google, downloaded it an replaced it.

Now Apache starts but...

"Your PHP installation appears to be missing the MySQL extension which is required by WordPress."
 
Old 06-26-2014, 03:32 PM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
Now Apache starts but...
PROGRESS~!!!!

You have a wordpress install on this thing?
There is a line in your php.ini that initiates the MySQL extension, look through the file and un-comment it. If you saved the old file (and I hope you did) you can find it by doing a search on "MySQL" in the php.ini.
 
Old 06-26-2014, 03:40 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
instead of modifying the php.ini directly, you might want to look to see if there is a directory /etc/php5/mods-available
if so

put the line
Code:
extension=/usr/local/ioncube/ioncube_loader_lin_5.5.so
in a file /etc/php5/mods-available/ioncube.ini

as for the error you are getting
Code:
wrong ELF class: ELFCLASS32
this means you are using a version of ioncube for the wrong architecture (i386) vs what your php is compiled for
to find this
post the output of 'uname -m'

Last edited by frieza; 06-26-2014 at 03:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install Ioncube Loader For All PHP Modes (CLI, CGI, FCGI And FPM) On Debian Wheezy LXer Syndicated Linux News 0 05-22-2014 08:02 AM
[SOLVED] Ioncube loader issue Mobile1 Slackware 2 09-02-2012 11:02 AM
Site error: the file /var/www/hotel/index.php requires the ionCube PHP Loader ioncube muba Linux - Software 1 06-03-2010 10:38 AM
Using Putty to find Ioncube Loader for Dreamhost account.. defx Linux - Newbie 1 04-05-2010 10:31 AM
Gnome 2.10 pannels don't load anymore cyborg_jt Linux - Software 2 09-17-2005 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration