Koozali.org: home of the SME Server

How to update php5 config?

Offline Uncle

  • *
  • 20
  • +0/-0
How to update php5 config?
« 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 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!

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: How to update php5 config?
« Reply #1 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"
C'est la fin du monde !!! :lol:

Offline Uncle

  • *
  • 20
  • +0/-0
Re: How to update php5 config?
« Reply #2 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?


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to update php5 config?
« Reply #3 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.
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)