LinHES Forums
http://forums.linhes.org/

R8.02 PHP Warning from Messages Log SOLVED
http://forums.linhes.org/viewtopic.php?f=21&t=23854
Page 1 of 1

Author:  RacerX [ Sun Oct 13, 2013 1:00 pm ]
Post subject:  R8.02 PHP Warning from Messages Log SOLVED

Upgraded my box yesterday at bootup see this message in Messages.log

2013-10-13T11:34:47.600135-05:00 mythbox php-cgi: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
2013-10-13T11:34:47.602292-05:00 mythbox php-cgi: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mcrypt.so' - /usr/lib/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

Code:
pacman -Q | grep php

php 5.4.8-1
php-cgi 5.4.8-1


Are php5-gd and php5-mcrypt packages missing?

Author:  tscholl [ Sun Oct 13, 2013 3:06 pm ]
Post subject:  Re: R8.02 PHP Warning from Mythbackend Log

I'm running 8.02 and all is working fine. I checked for the file your giving you the error I have the file but not at the location that is giving you the error.

Quote:
/usr/lib/php/modules/gd.so


Mines located at:
/usr/lib/libgd.so

Maybe a path problem?

Author:  RacerX [ Sun Oct 13, 2013 4:07 pm ]
Post subject:  Re: R8.02 PHP Warning from Mythbackend Log

Thanks I checked the for the file and it's in the same location as yours.

Code:
find / -name libgd.so

/usr/lib/libgd.so


it's looking for

/usr/lib/php/modules/gd.so

Right now it's just an error in the log over and over so does this need a symbolic link?

Author:  tscholl [ Sun Oct 13, 2013 5:07 pm ]
Post subject:  Re: R8.02 PHP Warning from Mythbackend Log

I say maybe just a path change in the ini file maybe, You could try a link and see it the error goes away

Author:  RacerX [ Sun Oct 13, 2013 7:24 pm ]
Post subject:  Re: R8.02 PHP Warning from Messages Log

Not sure why this error cropped up but I figured out a solution from this

tickethttp://linhes.org/issues/867

There are two optional packages for

gd.so and mcrypt.so

pacman -Sy php-gd.so
pacman -Sy php-mcrypt.so

After I installed these packages I no longer see the error in the Messages.log

Author:  brfransen [ Mon Oct 14, 2013 12:44 pm ]
Post subject:  Re: R8.02 PHP Warning from Messages Log SOLVED

Where are you getting that you are on R8.02? /etc/LinHES-release is the release.

Author:  RacerX [ Mon Oct 14, 2013 4:49 pm ]
Post subject:  Re: R8.02 PHP Warning from Messages Log SOLVED

Pulled my 100gb laptop drive from my setup. Used OCZ toolbox to secure erase the SSD. Then Installed R8 2-11-2013 from CD onto the SSD

Setup the system and install chromium, flashplugin, and xmbc

Code:
Pacman -SYU 
and it updated to R8.02

Then myth setup audio changed mixer device to software so volume control would work with Logitech Z5 Speakers like it does in XBMC

Code:
/home/mythtv/.mythtv/mysql.txt
/usr/MythVanatge/templates/mysql.txt


Setup on both files
DbHostName=127.0.0.1

Add 100gb drive removed all partitions the ran add_storyage.py and it created a storage group

Examined mythbackend.log
Quote:
This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').


http://forum.linhes.org/viewtopic.php?f=17&t=23735
post from Jams
Code:
edit /etc/locale.conf
add
LANG="en_US.UTF-8"


save
reboot

And that message disappeared

Install Mythwelcome, ran the config script. ran the 5 minute test.

so far so good - but it does not show shutdown timer

changed

Code:
Mythsetup/General/Shutdown/Wakeup Options/
Code:
Idle Shutdown Timer: 30 (seconds)
Server Halt Command: mythwelcome --shutdown

Code:
nano /etc/sudoers

add this line to end of the file and save
Code:
%mythtv localhost = NOPASSWD: /usr/bin/mythshutdown

now shutdown works correctly

Checked Messages.txt and I see over and over in the log

Quote:
2013-10-13T11:34:47.600135-05:00 mythbox php-cgi: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
2013-10-13T11:34:47.602292-05:00 mythbox php-cgi: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mcrypt.so' - /usr/lib/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0


tickethttp://linhes.org/issues/867
There are two optional packages for

gd.so and mcrypt.so

Code:
pacman -Sy php-gd.so
pacman -Sy php-mcrypt.so


After I installed these packages I no longer see the error in the Messages.log

Author:  brfransen [ Tue Oct 15, 2013 8:54 am ]
Post subject:  Re: R8.02 PHP Warning from Messages Log SOLVED

RacerX wrote:
Code:
Pacman -SYU 
and it updated to R8.02
Where are you seeing R8.02? There is no R8.02, only R8.

RacerX wrote:
Code:
/home/mythtv/.mythtv/mysql.txt
/usr/MythVanatge/templates/mysql.txt


Setup on both files
DbHostName=127.0.0.1
Why did you add /home/mythtv/.mythtv/mysql.txt to your system? Why did you need it? By default /usr/MythVanatge/templates/mysql.txt should have already had DbHostName set to 127.0.0.1. What was yours set to?

RacerX wrote:
Examined mythbackend.log
Quote:
This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').


http://forum.linhes.org/viewtopic.php?f=17&t=23735
post from Jams
Code:
edit /etc/locale.conf
add
LANG="en_US.UTF-8"


save
reboot

And that message disappeared
I just pushed a fix for this.

RacerX wrote:
Install Mythwelcome, ran the config script. ran the 5 minute test.

so far so good - but it does not show shutdown timer

changed

Code:
Mythsetup/General/Shutdown/Wakeup Options/
Code:
Idle Shutdown Timer: 30 (seconds)
Server Halt Command: mythwelcome --shutdown
What was this set to before for you? The mythwelcome-config.py should have set these values. The only difference is mythwelcome-config.py set the entire path to mythwelcome.

RacerX wrote:
Code:
nano /etc/sudoers

add this line to end of the file and save
Code:
%mythtv localhost = NOPASSWD: /usr/bin/mythshutdown

now shutdown works correctly
This should be done by default in R8 for the mythtv user in
Code:
sudo cat /etc/sudoers.d/system_sudo


RacerX wrote:
Checked Messages.txt and I see over and over in the log

Quote:
2013-10-13T11:34:47.600135-05:00 mythbox php-cgi: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
2013-10-13T11:34:47.602292-05:00 mythbox php-cgi: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mcrypt.so' - /usr/lib/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0


tickethttp://linhes.org/issues/867
There are two optional packages for

gd.so and mcrypt.so

Code:
pacman -Sy php-gd.so
pacman -Sy php-mcrypt.so


After I installed these packages I no longer see the error in the Messages.log
Still looking at this one to see if we really need gd and mcrypt in the php.ini.

Thanks for the feedback.
Britney

Author:  brfransen [ Tue Oct 15, 2013 2:16 pm ]
Post subject:  Re: R8.02 PHP Warning from Messages Log SOLVED

brfransen wrote:
Still looking at this one to see if we really need gd and mcrypt in the php.ini.

I made php-gd and php-mcrypt deps of php so they will get installed by default with php.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/