Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Uncle on February 06, 2008, 11:17:31 AM

Title: How to update php5 config?
Post by: Uncle on February 06, 2008, 11:17:31 AM
Howdy! I'm ultra new to linux and SME - I have never touched them in my life before! - so I'm really taking some strain. I recently installed sme 7 with the usual stuff like mysql and php and that. Afterwards I followed the faq at http://sme.firewall-services.com/spip.php?article46 (http://sme.firewall-services.com/spip.php?article46) to get php5 up and running. I need to make some changes to the ini file but I haven't got a clue how to do this.

I know you're supposed to fiddle with stuff to do with custom templates and you've gotta expand them afterwards but which templates must I add customs for and what do I expand!?! What exactly are templates and how do they work? *shakes head* I'm really out of my depth here so if anybody could help me out I'd really appreciate it, even if it's just a description of what's actually going on!
Title: Re: How to update php5 config?
Post by: Daniel B. on February 06, 2008, 11:23:22 AM
The config for php5-cgi is in /etc/php5/php.ini.
There's no templates for this file so you have the choice:
- you can edit this file directly like any other config file on a "standard" linux
- or you can create templates for this file and edit it "the SME way"
Title: Re: How to update php5 config?
Post by: Uncle on February 06, 2008, 11:39:38 AM
Okay, so I can edit the php5 ini file directly and then restart the server for the changes to take effect. I suppose that's easy enough but how would I do it the SME way?

Title: Re: How to update php5 config?
Post by: cactus on February 06, 2008, 05:44:11 PM
Okay, so I can edit the php5 ini file directly and then restart the server for the changes to take effect. I suppose that's easy enough but how would I do it the SME way?
You need to restart your webserver, this can be doen with the last command from the howto:
Code: [Select]
svc -t /service/httpd-e-smithIf you already need to as it is running as CGI (AFAIK this reloads the configuration fie every time a php script is to be ran.