1
jjkaotw
SElinux execute a program in a php program
  • 2012/10/14 2:48

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


ls -Z .
-rw-r--r--. ub book system_u:object_r:public_content_rw_t:s0 1.php
-rw-r--r--. ub book system_u:object_r:public_content_rw_t:s0 1.png

<?php
$raw_photo="1.png";
$web_photo="1n.png";
system("/bin/convert $raw_photo -resize 200 $web_photo");
?>

The php program listed above can be successfully executed on my
Fidora Linux workstation, but it fails while I execute it via. a web brower.

It should be a SElinux problem, but I have no idea how to resolve it.
It may be also the problem causing my Xoops2.5.5/news v.167 not
able to resize a png file after it is uploaded.

Please help, if you know how to resolve this problem.

jjkaotw



2
jjkaotw
Re: news v1.67: problem for uploading image files
  • 2012/10/14 2:13

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


I checked submit.php and the problem occurred while
calling the following function:
news_resizePicture($fullPictureName, $newName, $xoopsModuleConfig['maxwidth'], $xoopsModuleConfig['maxheight']);

Uploaded ok, but not sure why can not be resized?

Is it a SElinux problem?

jjkaotw



3
jjkaotw
Re: news v1.67: problem for uploading image files
  • 2012/10/11 4:38

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


Thanks a lot for your kindly help.

I increased the execution time to 200, but it did not resolve the problem.

The error mesage is the same: "The website cannot display the page HTTP 500."

jjkaotw



4
jjkaotw
news v1.67: problem for uploading image files
  • 2012/10/10 5:36

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


I installed the news module v1.67 on my XOOPS2.5.5.
When I upload an image file, e.g. a png file,
the file is successfully uploaded into $XOOPS_ROOT_PATH/uploads/news/image/,
but the web session is terminated.
I check the program, it seems the program is terminated
during converting the image file into a pre-specified max size.
But I donot know how to resolve the problem.

If anyone knows how to resolve this problem, please help.
Thank you.

-- jjkao



5
jjkaotw
Re: How to share posts to Facebook from News v1.67?
  • 2012/8/9 7:58

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


Oops. So easy. Sorry for asking this simple question.
Thanks a lot.

-- jjkao



6
jjkaotw
How to share posts to Facebook from News v1.67?
  • 2012/8/9 0:02

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


Many places in xoops.org have a "f" link to share information to Facebook.
I would like to add one with News v1.67 on my xoops 2.5.5, but I can figure
out from where I can download the program.

Please help.

-- jjkao



7
jjkaotw
from where to download facebook like plugin for news1.67?
  • 2012/8/5 1:39

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


I cannot find an appropriate FAQ for how to install the
facebook plugin like butten for xoops 2.5.5 and news v1.67.

Please help.

-- jjkao



8
jjkaotw
Re: How to convert/upgrade news 1.1 to 1.67?
  • 2012/8/5 1:03

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


Thanks. I will try to upgrade it on xoops 2.5.5.



9
jjkaotw
How to convert/upgrade news 1.1 to 1.67?
  • 2012/7/29 13:37

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


I installed the old version1.1 of the news module.
Will install the new version 1.67.
I hope I can keep old news records.
Is it possible to convert all news records from v1.1 to v1.67?
Please help.

-- jjkao



10
jjkaotw
Re: From where to download news module?
  • 2012/7/29 13:25

  • jjkaotw

  • Just popping in

  • Posts: 11

  • Since: 2012/7/29


Thanks a lot,. -- jjkao




TopTop
(1) 2 »



Login

Who's Online

216 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits