LxCenter HyperVM & Kloxo Support

Forum is closed. Use http://community.lxcenter.org/



Members   Search      Help    Register    Login    Home
Home » Kloxo Community Support » Technical Help » php.ini edit
php.ini edit [message #73013] Mon, 22 February 2010 11:30 Go to next message
emil is currently offline emil  Germany
Messages: 3
Registered: February 2010
Location: Germany
Member
Which php.ini must i edit to disable functions globaly ?
I want to disable some functions

/root/.etc/misc/php.ini
/usr/lib/kloxophp/zend/etc/php.ini
/usr/local/lxlabs/ext/php/etc/php.ini
/usr/local/lxlabs/kloxo/httpdocs/htmllib/filecore/php.ini
/usr/local/lxlabs/kloxo/httpdocs/htmllib/filecore/lxetc/misc /php.ini
/etc/php.ini
/home/httpd/mydomain.com/php.ini
/home/httpd/mydomain.com/php.ini


edit: i use lighttpd

[Updated on: Mon, 22 February 2010 11:31]

Report message to a moderator

Re: php.ini edit [message #73033 is a reply to message #73013] Fri, 26 February 2010 03:28 Go to previous messageGo to next message
deepak is currently offline deepak  Germany
Messages: 413
Registered: March 2008
Master
The following will apply to global
emil wrote on Mon, 22 February 2010 17:30

/etc/php.ini


others will effect local to domains or user accounts.
Re: php.ini edit [message #73438 is a reply to message #73033] Tue, 23 March 2010 21:29 Go to previous messageGo to next message
ilbru k is currently offline ilbru k  
Messages: 11
Registered: March 2010
Member
Hi,
every time I add a new domain, Kloxo copies a php.ini in the /home/httpd/domain.tld.
I would like to have only one valid php.ini for all the VPS.
How can I do that?

Thanks,
Marco
Re: php.ini edit [message #73450 is a reply to message #73438] Wed, 24 March 2010 03:15 Go to previous messageGo to next message
deepak is currently offline deepak  Germany
Messages: 413
Registered: March 2008
Master
Without changes in the core programming of Kloxo you cannot stop generation of those local php.ini"s.

However you could do have influence over the content of those generated local php.ini"s to your choice. This could be done in the Kloxo so that some additional entries will be generated accordingly.

You can choose the options under Advanced php configuration of the Server localhost and the local php.ini will be generated accordingly, which you may already know.

[Updated on: Wed, 24 March 2010 03:34]

Report message to a moderator

Re: php.ini edit [message #73452 is a reply to message #73013] Wed, 24 March 2010 04:13 Go to previous messageGo to next message
Rai tlin is currently offline Rai tlin  Russian Federation
Messages: 33
Registered: March 2010
Location: Russia
Member

You must edit the template, from which kloxo is generating locally php.ini. This is Bad idea, kloxo just need some modifying of code. I think, in next release it will be done and we will use the /etc/php.ini. Now normally changes in /etc/php.ini does not affected in any way.
Re: php.ini edit [message #73457 is a reply to message #73452] Wed, 24 March 2010 10:48 Go to previous messageGo to next message
ilbru k is currently offline ilbru k  
Messages: 11
Registered: March 2010
Member
I changed the settings in Server/localhost/Web & Mail & DB/Php Config but when I add a new domain (or a new subdomain) I have to manually modify again the configuration in Kloxo.
As I can see, Kloxo create a new php.ini file in /home/httpd/domain.tld and create a .htaccess in /home/admin/domain.tld with the same configuration params.

Do you think that removing those files will allow the /etc/php.ini to be the only configuration file?

Thanks,
Marco
Re: php.ini edit [message #73458 is a reply to message #73013] Wed, 24 March 2010 11:18 Go to previous messageGo to next message
Rai tlin is currently offline Rai tlin  Russian Federation
Messages: 33
Registered: March 2010
Location: Russia
Member

No. You must do not do this. If the apache restarts, your sites will be down. Sorry.
Re: php.ini edit [message #73488 is a reply to message #73458] Thu, 25 March 2010 03:24 Go to previous messageGo to next message
deepak is currently offline deepak  Germany
Messages: 413
Registered: March 2008
Master
Rai tlin wrote on Wed, 24 March 2010 16:18
No. You must do not do this. If the apache restarts, your sites will be down. Sorry.


Correct.

I did not dare to suggest some more options other than above, because I had a feeling that there is more to it.

I am really not sure, and someone could bring more light to this, that Kloxo has some built in code generation in regards to php.ini that forces some default values and pours into the default template. Correct?

I played with this a long time ago and so I do not accurately remember.

Hence it is better to stick with those default values generated in the default form, have it generated and then change it.

I never had a big problem to accept the values generated by Kloxo. One could configure by web form, as mentioned abbove, some sensitive values. Thereafter, one could add more custom values like URL Rewrite, etc. into the already generated values.

Then Kloxo will simply add then and will not destroy the existing ones.
Re: php.ini edit [message #73500 is a reply to message #73488] Thu, 25 March 2010 12:59 Go to previous messageGo to next message
Te h tar is currently offline Te h tar  India
Messages: 117
Registered: March 2010
Location: /home/room/
Valuable Member

1. Use the following command:

php -i | grep php.ini

It will show the default php.ini path.

2. Another way to find out which php.ini is used by default on the account is by uploading a 'phpinfo' file under server document directory. Load the phpinfo page on the browser with
http://<IPaddress>/phpinfo.php , where phpinfo.php contains the following PHP code:

<? php phpinfo(); ?>

This is show the current php settings on the server which will be used by default by any domains created on the IP mentioned. In this page it will show the path to the php.ini file that is used.
Smile

- Techstar.


For your 24/7 support requirements.
http://www.sequires.com
Re: php.ini edit [message #73504 is a reply to message #73013] Thu, 25 March 2010 21:49 Go to previous messageGo to next message
Rai tlin is currently offline Rai tlin  Russian Federation
Messages: 33
Registered: March 2010
Location: Russia
Member

no. Kloxo generating php.ini from php.initemplate (un /usr/local/lxlabs/kloxo) I do not remember right name of template.
Re: php.ini edit [message #73506 is a reply to message #73504] Thu, 25 March 2010 22:11 Go to previous messageGo to next message
ilbru k is currently offline ilbru k  Ecuador
Messages: 11
Registered: March 2010
Member
I was going to answer this post after a few days testing.
I successfully deleted:
/home/httpd/domain.tld/php.ini
/home/admin/domain.tld/.htaccess
without any consequence. The system is now using only /etc/php.ini as config file.

As Rai tlin wrote before, all the template files used by kloxo are located in /usr/local/lxlabs/kloxo/files (including awstats and other useful files).

About php, the php.ini templates are in /usr/local/lxlabs/kloxo/files/phpini and have different names based on php version.

Thanks for your help,
Marco
Re: php.ini edit [message #73509 is a reply to message #73013] Thu, 25 March 2010 22:50 Go to previous messageGo to next message
Rai tlin is currently offline Rai tlin  Russian Federation
Messages: 33
Registered: March 2010
Location: Russia
Member

Deleted
/home/httpd/domain.tld/php.ini
/home/admin/domain.tld/.htaccess


Thanks for information. Now I fixed the bug in my version of kloxo.
Re: php.ini edit [message #73513 is a reply to message #73013] Fri, 26 March 2010 00:04 Go to previous message
ilbru k is currently offline ilbru k  Ecuador
Messages: 11
Registered: March 2010
Member
You're welcome.
Previous Topic:Why my nameservers point to this page? VPS + Kloxo
Next Topic:DomainKeys & DKIM
Goto Forum:
  


Current Time: Tue Oct 21 09:49:25 EDT 2014

Total time taken to generate the page: 0.01870 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software