Topic on Project:Support desk

[RESOLVED] Problem moving images between wikis (segmentation fault on Centos)

3
212.162.111.210 (talkcontribs)

Dears,

I have a private enterprise wiki ver 1.23

  • on CENTOS 7
  • with MariaDB Distrib 5.5.37
  • with PHP 5.4.16

This is a new installation.

I'm trying to import images from another wiki. I'm trying the following command.

[root@wikitemp maintenance]# php importImages.php ../images_to_import/

The result is:

Import images

Importing foto.jpg...Segmentation fault (core dumped)

I have also tried to put

$wgMaxShellMemory = 10000000;
$wgUseImageMagick = false;

in LocalSettings.php

and put in php.ini

post_max_size=8000M
upload_max_filesize=2000M

Do you have any idea?

Is there another way to import images?

Thanks a lot.

Ennio Balocchi

Ciencia Al Poder (talkcontribs)

The "segmentation fault" error indicates a bug in PHP. You should try upgrading PHP to see if that fixes the issue

212.162.98.145 (talkcontribs)

Dear,

it's true! Thanks.

Actually, the only way for Centos 7 is compiling php 5.4.33.

I have done the following: yum remove php php-mysql yum install xml2-devel yum install httpd-devel ./configure --with-mysql

           --with-apxs=/usr/bin/apxs 
	     --disable-cgi 
           --with-zlib 

and in httpd.conf

<FilesMatch \.php$>

   SetHandler application/x-httpd-php

</FilesMatch>

Bye

Ennio

Reply to "[RESOLVED] Problem moving images between wikis (segmentation fault on Centos)"