Koozali.org: home of the SME Server

[SOLVED] CMS-MS problem on SME 7.5.1

Offline clm314159

  • 13
  • +0/-0
[SOLVED] CMS-MS problem on SME 7.5.1
« on: October 12, 2010, 03:32:15 AM »
I am running SME 7.5.1 with the PHP5 contrib.

I set up an i-bay using PHP5 and copied the CMS-MS (a content managment system) files into it. During the install process CMS-MS gives the following 'Required settings' failure message:

Testing error_reporting to ensure E_DEPRECATED is disabled
E_DEPRECATED is enabled

I went to their site and found the following forum entry:

http://forum.cmsmadesimple.org/index.php?topic=43035.0

It says to make some changes to the php.ini file. So I searched for and found the Hopefully PHP5 php.ini and found that it says that it is generated from a template. I looked up the template and tried to make the change there. After a reboot the php.ini was unchanged and the problem still persisted. I really hate to push my luck in these files as I am unsure how they work. So I put everything back as I found it and made this post.

Can anyone tell me what this error message means and how do I fix the problem?

Thanx,
Chris
« Last Edit: October 14, 2010, 08:57:13 PM by cactus »

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: CMS-MS problem on SME 7.5.1
« Reply #1 on: October 12, 2010, 10:13:28 AM »
It says to make some changes to the php.ini file. So I searched for and found the Hopefully PHP5 php.ini and found that it says that it is generated from a template. I looked up the template and tried to make the change there. After a reboot the php.ini was unchanged and the problem still persisted. I really hate to push my luck in these files as I am unsure how they work. So I put everything back as I found it and made this post.


what file did you edit?
did you expand the template?
did you restart httpd-e-smith service?
did you get any error? if so, what?

please take some time to read the documentation and to search here and in the wiki; SME's internals (how templating system works) has been discussed many times
please remember also that we aren't in fronto of your monitor, so we don't know what's going on on your server.. you should be more "verbose" if you want us to help you

thank you

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: CMS-MS problem on SME 7.5.1
« Reply #2 on: October 12, 2010, 11:30:20 AM »
clm314159

Changing a template  and rebooting is not sufficient, other steps are needed.
See
http://wiki.contribs.org/Template_Tutorial
for some guidance.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline clm314159

  • 13
  • +0/-0
Re: CMS-MS problem on SME 7.5.1
« Reply #3 on: October 12, 2010, 02:40:11 PM »

what file did you edit?
did you expand the template?
did you restart httpd-e-smith service?
did you get any error? if so, what?

This is the file that I edited:/etc/e-smith/templates/etc/php5/php.ini/30ErrorHandling. (I changed NOTICE to DEPRECATED.)
Not sure what expand means, so probably not.
I thought that rebooting would restart httpd-e-smith.
No error, just no change.

Sorry for not being more 'verbose' before but templates is a totally new area for me and I don't have any feel for what will be useful for you to know. I am going to go read the template tutorial that Mary suggested, now.

Thanks for your help,
Chris
« Last Edit: October 12, 2010, 03:19:12 PM by clm314159 »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: CMS-MS problem on SME 7.5.1
« Reply #4 on: October 12, 2010, 10:35:15 PM »
This is the file that I edited:/etc/e-smith/templates/etc/php5/php.ini/30ErrorHandling. (I changed NOTICE to DEPRECATED.)
You should not edit the template fragments, you should make a copy in the templates-custom tree and make changes to that copy. The altered copy will override the original fragment. Changes to the original template will be lost on updates/upgrades.

Not sure what expand means, so probably not.
Regenerating the configuration file.

I thought that rebooting would restart httpd-e-smith.
Yes, it does, but with the original configuration files. Changes to the configuration are not inserted in the configuration file.

Sorry for not being more 'verbose' before but templates is a totally new area for me and I don't have any feel for what will be useful for you to know. I am going to go read the template tutorial that Mary suggested, now.
Please do, it will enlighten you.

In short what you should do to make you change the proper way:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cp /etc/e-smith/templates/etc/php5/php.ini/30ErrorHandling /etc/e-smith/templates-custom/etc/php.ini/
Now edit the configuration file you just copied (the one in /etc/e-smith/templates-custom/etc/php.ini/).

After that regenerate the configuration file like this:
Code: [Select]
expand-template /etc/php.ini
And restart the webserver, to reload the changed configuration:
Code: [Select]
sv t httpd-e-smith
Now you should be fine.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline clm314159

  • 13
  • +0/-0
[SOLVED]Re: CMS-MS problem on SME 7.5.1
« Reply #5 on: October 14, 2010, 01:39:26 AM »
Yep that worked, except it had to be done for /etc/php5/php.ini because I am using the PHP5 contrib on the ibay.

This problem can be marked solved.

Offline johnp

  • ****
  • 312
  • +0/-0
Re: [SOLVED] CMS-MS problem on SME 7.5.1
« Reply #6 on: October 15, 2010, 07:33:07 AM »
I was going to comment that I thought the php.ini for that contrib was located elsewhere, but figured a general lesson in expanding a templated file would get you on the right path.

It's good to see that you got things working and hopefully you've learned some of the power that a templated system can provide.  8-)