US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting
Register FAQ Community Calendar Today's Posts Search


Reply
 
Thread Tools
Old 02-10-2010, 06:29 PM   #1
Junior Member
 
Join Date: Jan 2010
Posts: 15
Denie is on a distinguished road
Default Php Configuration files

Hello everyone.

I have been testing ISpmanager for awhile, and i might put it into a production. But i got a few php related questions.

which php.ini files does php use for an account?

i know they got their own php.ini in /var/www/username/data/php-bin/php.ini but it only contains two lines, where does php load the rest of the configurations?

I am running ubuntu, with php as cgi.

Denie.
Denie is offline   Reply With Quote
Old 02-11-2010, 04:57 AM   #2
ISPsystem team
 
Join Date: Jan 2009
Posts: 111
GakcaT is on a distinguished road
Default

If you use "PHP as CGI" php takes parameters from the main php.ini (In Ubuntu it's /etc/php5/apache2/php.ini) and takes parameters from php.ini of an user.
GakcaT is offline   Reply With Quote
Old 02-11-2010, 04:59 AM   #3
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

All other configuration options used from global php.ini
See /etc/php5/cgi/php.ini file

aslo in the debian-like system used 3 different php.ini files for different php modes:
/etc/php5/apache2/php.ini - php as apache module (mod_php / libphp5)
/etc/php5/cgi/php.ini - php as cgi (php-cgi binary file)
/etc/php5/cli/php.ini - php as CLI (php binary)
slava is offline   Reply With Quote
Old 02-11-2010, 10:01 AM   #4
Junior Member
 
Join Date: Jan 2010
Posts: 15
Denie is on a distinguished road
Default

Okay..

because if you edit the php5/cgi/php.ini file to reconfig some of the php options, those options are not being active at the user accounts, if you check the php-info, those options that i just disabled, are still enabled at the user account..

i have tried to edit all of the php.ini files, both apache2, cgi and cli.. none of the php.ini files influence the users php-info script.

so if i wanna adjust something in the php configuration that needs to be used global for all users on the server.. which php.ini file should be edited?
Denie is offline   Reply With Quote
Old 02-11-2010, 04:05 PM   #5
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

What options do you want to change?
Also try to restart apache

Last edited by tanya; 02-15-2010 at 04:08 AM.
slava is offline   Reply With Quote
Old 02-12-2010, 09:17 AM   #6
Junior Member
 
Join Date: Jan 2010
Posts: 15
Denie is on a distinguished road
Default

tried to restart apache.. notthing happened. Well i was just trying to test the system, and wanted to turn off allow_url_fopen in the global config. Notthing happens in the users php-info script..

I allso tried to edit the memory limit, manually via the php.ini file and from ispmanager, notthing happened either.. tried to restart apache, afterwards the server.. notthing changed.

Last edited by Denie; 02-12-2010 at 03:18 PM.
Denie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:16 PM.