Support

Site Restoration

#19914 Kickstart on PHP v5.5.3

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by extly on Monday, 28 April 2014 07:34 CDT

extly
Hi,

I've had to recently install my desktop with Linux Mint 16. It comes with PHP 5.5.3 and Apache 2.4.6.

Until now, Kickstart has always worked flawless in PHP 5.3/5.4 and Apache 2.

Now, when I try to extract a JPS file, I'm getting:

AN ERROR OCCURED
Invalid header in archive file, part 0, offset 8

(The file is fine. I've already extracted the file with the eXtract Wizard)

Is Kickstart compatible with PHP 5.5?


Thanks,
Anibal

nicholas
Akeeba Staff
Manager
Hello Anibal,

Not only Kickstart is compatible with PHP 5.5, it is actually developed on PHP 5.5. After it's developed on the PHP 5.5 dev server I am testing it on a series of servers with PHP 5.3 and 5.4 to make sure I have not inadvertently broken compatibility with earlier PHP versions.

Knowing the JPS format layout I can tell that Kickstart reports an error as soon as it finds encrypted data in the archive. This can only mean two things:
  • You have entered the wrong JPS password to extract the archive
  • You do not have the mcrypt PHP extension installed and activated


Knowing that Linux Mint is based on Ubuntu and uses the same DEB packages as my Ubuntu Server for its PHP installation I am inclined to believe that your problem is the lack of the mcrypt PHP extension. Normally you can fix that with:

sudo apt-get php5-mcrypt


Remember to restart your web server (and php-fpm if you're using the PHP FastCGI Process Manager) service afterwards.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

extly
Hi Nic,

* About wrong JPS password, it works on eXtract Wizard
* About mcrypt, it's already installed.

sudo apt-get install php5-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-mcrypt is already the newest version.

I tried to create a new Backup in the local site, and I get:

Sorry, your server does not support AES-128 encryption. Please use a different archive format.

mcrypt installation does not support AES-128?


Thanks,
Anibal

nicholas
Akeeba Staff
Manager
Yes, it's possible that mcrypt is installed by it lacks the necessary algorithms to encrypt (AND decrypt!) with AES-128. The algorithm in question is called rijndael. If it's not supported by your mcrypt library you cannot encrypt or decrypt JPS archives. It seems that you found the source of your problem.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

extly
Solved!

By default, mcrypt module was installed but not added into php.ini.

extension=mcrypt.so


Ref: http://www.php.net/manual/en/mcrypt.setup.php a month ago a user had the same issue with Linux Mint


Thanks,
Anibal

nicholas
Akeeba Staff
Manager
Ah, makes sense! Normally the packages for additional PHP modules create an .ini file in PHP's conf.d directory (I think it's /etc/php/mod_php/conf.d, but I'm at home now without an easily accessible server to check). If they don't you do need to edit your php.ini file, like you did.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

extly
Yes, the distribution should have created a file like /etc/php5/apache2/conf.d/20-mcrypt.ini or /etc/php5/mods-available/mcrypt.ini

It only creates /etc/php5/conf.d/mcrypt.ini

Thanks,
Anibal

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!