[SOLVED] PHP.ini changes do not stick - ShinZan - 01-25-2012 06:23 AM
Code:
System Linux ispcp 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Build Date Dec 13 2011 18:29:47
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /etc/php5/cgi/php.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d
Additional .ini files parsed /etc/php5/cgi/conf.d/adodb.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS
PHP Extension Build API20090626,NTS
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*
so basically i need to bump up max_execution_time for a client who hosts civicrm and imports a buttload of contacts via csv. it takes about 15 minutes for the script to process them all. So i go into
Code:
nano /var/www/fcgi/domain.tld/php5/php.ini
and make the change from max_exectution_time = 30 to max_execution_time = 900
That should stick, now i restart apache and view the phpinfo and its still on 30. So then i copy a php.ini into the htdocs of domain.tld and restart apache no go.... Then i manually edit the ispconfig master
so finally i say to heck with it and do this:
Code:
nano /etc/php5/cgi/php.ini
now unfortunately thats modifying everyone. What am i missing here to allow per domain.tld php.ini files to process?
David
RE: PHP.ini changes do not stick - ShinZan - 02-09-2012 06:52 AM
This is a pretty big problem is there really no idea why the php.ini files located in /var/www/fcgi/
are not looked at? having one php.ini file is really hindering me because all domains look at
/etc/php5/cgi/php.ini
that's bad and i know on my 1.0 box this was not the case i could chang each php.ini file in the fcgi directory but now i can't.
Can anyone lend some assistance?
David
RE: PHP.ini changes do not stick - joximu - 02-10-2012 09:11 AM
If you rally run php with fastcgi or fcgid then some setting is not correct in your installation.
Is the beginning of the first post what phpinfo is saying?
(because the ispcp php.ini do not allow the command phpinfo :-)
On my Debian 5 with ispcp 1.0.7 it looks like this:
Code:
System Linux name 2.6.26-2-amd64 #1 SMP Wed Sep 21 03:36:44 UTC 2011 x86_64
Build Date Jan 31 2012 10:20:50
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /var/www/fcgi/master/php5/php.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d
additional .ini files parsed /etc/php5/cgi/conf.d/adodb.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/idn.ini, /etc/php5/cgi/conf.d/imagick.ini, /etc/php5/cgi/conf.d/imap.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mhash.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini, /etc/php5/cgi/conf.d/pdo_sqlite.ini, /etc/php5/cgi/conf.d/sqlite.ini, /etc/php5/cgi/conf.d/suhosin.ini, /etc/php5/cgi/conf.d/tidy.ini, /etc/php5/cgi/conf.d/xmlrpc.ini
You may need to check your fastcgi/fcgid configuration.
/J
RE: PHP.ini changes do not stick - ShinZan - 02-14-2012 01:25 AM
(02-10-2012 09:11 AM)joximu Wrote: You may need to check your fastcgi/fcgid configuration.
/J
Agreed 100% i know its using the wrong config here is my ispcp.conf
and i know i selected fcgi when i did the perl setup
Code:
# ispCP ω (OMEGA) a Virtual Hosting Control Panel
# Copyright (C) 2006-2010 by isp Control Panel - http://ispcp.net
#
# Version: $Id: ispcp.conf 3668 2010-11-24 21:29:19Z benedikt $
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is "ispCP ω (OMEGA) a Virtual Hosting Control Panel".
#
# The Initial Developer of the Original Code is ispCP Team.
# Portions created by Initial Developer are Copyright (C) 2006-2010 by
# isp Control Panel. All Rights Reserved.
#
# The ispCP ω Home Page is:
#
# http://isp-control.net
#
#
# Misc config variables
#
BuildDate = 20101124
Version = 1.0.7 OMEGA
CodeName = Priamos
DistName = Debian
DEFAULT_ADMIN_ADDRESS = REDACTED
SERVER_HOSTNAME = REDACTED
BASE_SERVER_IP = REDACTED
BASE_SERVER_VHOST = REDACTED
BASE_SERVER_VHOST_PREFIX = http://
MR_LOCK_FILE = /var/run/ispcp.lock
#
# File system variables
#
CMD_AWK = /usr/bin/awk
CMD_BZCAT = /bin/bzcat
CMD_BZIP = /bin/bzip2
CMD_CAT = /bin/cat
CMD_CHMOD = /bin/chmod
CMD_CHOWN = /bin/chown
CMD_CMP = /usr/bin/cmp
CMD_CP = /bin/cp
CMD_DF = /bin/df
CMD_DIFF = /usr/bin/diff
CMD_DU = /usr/bin/du
CMD_ECHO = /bin/echo
CMD_EGREP = /bin/egrep
CMD_GREP = /bin/grep
CMD_GROUPADD = /usr/sbin/groupadd
CMD_GROUPDEL = /usr/sbin/groupdel
CMD_GZCAT = /bin/zcat
CMD_GZIP = /bin/gzip
CMD_HOSTNAME = /bin/hostname
CMD_IFCONFIG = /sbin/ifconfig
CMD_IPTABLES = /sbin/iptables
CMD_LN = /bin/ln
CMD_LZMA = /usr/bin/lzma
CMD_MV = /bin/mv
CMD_MYSQL = /usr/bin/mysql
CMD_PHP = /usr/bin/php5
CMD_PS = /bin/ps
CMD_RM = /bin/rm
CMD_SED = /bin/sed
CMD_SHELL = /bin/sh
CMD_TAR = /bin/tar
CMD_TOUCH = /usr/bin/touch
CMD_USERADD = /usr/sbin/useradd
CMD_USERDEL = /usr/sbin/userdel
CMD_WC = /usr/bin/wc
CMD_XZ = /usr/bin/xz
PEAR_DIR = /usr/share/php
#
# SQL backend variables
#
# Don't change this one
DATABASE_TYPE = mysql
DATABASE_HOST = localhost
DATABASE_NAME = ispcp
DATABASE_PASSWORD = REDACTED
DATABASE_USER = root
DATABASE_DIR = /var/lib/mysql
CMD_MYSQLDUMP = /usr/bin/mysqldump
DATABASE_UTF8 = yes
#
# Main variables
#
CONF_DIR = /etc/ispcp
LOG_DIR = /var/log/ispcp
PHP_STARTER_DIR = /var/www/fcgi
ROOT_DIR = /var/www/ispcp
ROOT_USER = root
ROOT_GROUP = root
GUI_ROOT_DIR = /var/www/ispcp/gui
APACHE_WWW_DIR = /var/www/virtual
SCOREBOARDS_DIR = /var/www/scoreboards
# Select Zipping Algorithm for Backups
# Make sure the selected Algorithm is installed
# and tar command supports "--$ZIP" -> will mostly work with bzip2 & gzip
# Supported: gzip, bzip2, lzma, xz
ZIP = bzip2
#
# PHP FastCGI data
#
# Posible values: fcgid, fastcgi
PHP_FASTCGI = fcgid
PHP5_FASTCGI_BIN = /usr/bin/php5-cgi
PHP_VERSION = 5
PHP_TIMEZONE = EST5EDT
#
# ProFTPd data
#
FTPD_CONF_FILE = /etc/proftpd/proftpd.conf
FTPD_CONF_DIR = /etc/proftpd/ispcp
#
# BIND data
#
BIND_CONF_FILE = /etc/bind/named.conf
BIND_DB_DIR = /var/cache/bind
SECONDARY_DNS = REDACTED
#
# Resolver
#
RESOLVER_CONF_FILE = /etc/resolv.conf
LOCAL_DNS_RESOLVER = yes
#
# AWSTATS data
#
AWSTATS_ACTIVE = no
# could be 'dynamic' = 0 or 'static' = 1
AWSTATS_MODE = 0
AWSTATS_CACHE_DIR = /var/cache/awstats
AWSTATS_CONFIG_DIR = /etc/awstats
AWSTATS_ENGINE_DIR = /usr/lib/cgi-bin
AWSTATS_WEB_DIR = /usr/share/awstats
AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats
AWSTATS_GROUP_AUTH = statistics
#
# APACHE data
#
APACHE_NAME = apache2
APACHE_RESTART_TRY = 3
APACHE_CONF_DIR = /etc/apache2
APACHE_LOG_DIR = /var/log/apache2
APACHE_BACKUP_LOG_DIR = /var/log/apache2/backup
APACHE_USERS_LOG_DIR = /var/log/apache2/users
APACHE_MODS_DIR = /etc/apache2/mods-available
APACHE_SITES_DIR = /etc/apache2/sites-available
APACHE_CUSTOM_SITES_CONFIG_DIR = /etc/apache2/ispcp
APACHE_SUEXEC_USER_PREF = vu
APACHE_SUEXEC_MIN_GID = 2000
APACHE_SUEXEC_MAX_GID = 29999
APACHE_SUEXEC_MIN_UID = 2000
APACHE_SUEXEC_MAX_UID = 29999
APACHE_USER = www-data
APACHE_GROUP = www-data
#
# Postfix MTA Data
#
POSTFIX_CONF_FILE = /etc/postfix/main.cf
POSTFIX_MASTER_CONF_FILE = /etc/postfix/master.cf
MTA_LOCAL_MAIL_DIR = /var/mail
MTA_VIRTUAL_MAIL_DIR = /var/mail/virtual
MTA_LOCAL_ALIAS_HASH = /etc/aliases
MTA_VIRTUAL_CONF_DIR = /etc/postfix/ispcp
MTA_VIRTUAL_ALIAS_HASH = /etc/postfix/ispcp/aliases
MTA_VIRTUAL_DMN_HASH = /etc/postfix/ispcp/domains
MTA_VIRTUAL_MAILBOX_HASH = /etc/postfix/ispcp/mailboxes
MTA_TRANSPORT_HASH = /etc/postfix/ispcp/transport
MTA_SENDER_ACCESS_HASH = /etc/postfix/ispcp/sender-access
MTA_MAILBOX_MIN_UID = 1001
MTA_MAILBOX_UID = 1001
MTA_MAILBOX_UID_NAME = vmail
MTA_MAILBOX_GID = 8
MTA_MAILBOX_GID_NAME = mail
MTA_SASLDB_FILE = /var/spool/postfix/etc/sasldb2
ETC_SASLDB_FILE = /etc/sasldb2
CMD_SASLDB_LISTUSERS2 = /usr/sbin/sasldblistusers2
CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
CMD_POSTMAP = /usr/sbin/postmap
CMD_NEWALIASES = /usr/bin/newaliases
#
# Postgrey data
#
PORT_POSTGREY = 10023
#
# Courier data
#
AUTHLIB_CONF_DIR = /etc/courier
CMD_MAKEUSERDB = /usr/sbin/makeuserdb
#
# Crontab delayed tasks
#
BACKUP_HOUR = 23
BACKUP_MINUTE = 40
# Tells whether the ispCP database and
# all /etc/ispcp/* files should be daily saved
BACKUP_ISPCP = yes
# Tells whether all the customers' data should be daily saved
# Saved data depend of the domain properties (dmn|sql|all)
BACKUP_DOMAINS = yes
BACKUP_ROOT_DIR = /var/www/ispcp/engine/backup
CMD_CRONTAB = /usr/bin/crontab
#
# Service manager
#
# Either no or path to the amavis-daemon (usually: /etc/init.d/amavis)
CMD_AMAVIS = no
CMD_AUTHD = /etc/init.d/courier-authdaemon
CMD_FTPD = /etc/init.d/proftpd
CMD_HTTPD_CTL = /usr/sbin/apache2ctl
CMD_HTTPD = /etc/init.d/apache2
CMD_IMAP = /etc/init.d/courier-imap
CMD_IMAP_SSL = no
CMD_POSTGREY = /etc/init.d/postrey
CMD_POLICYD_WEIGHT = /etc/init.d/policyd-weight
CMD_MTA = /etc/init.d/postfix
CMD_NAMED = /etc/init.d/bind9
CMD_POP = /etc/init.d/courier-pop
CMD_POP_SSL = no
CMD_ISPCPD = /etc/init.d/ispcp_daemon
CMD_ISPCPN = /etc/init.d/ispcp_network
#
# Virtual traffic manager
#
CMD_PFLOGSUM = /usr/sbin/maillogconvert.pl
TRAFF_LOG_DIR = /var/log
FTP_TRAFF_LOG = /proftpd/ftp_traff.log
MAIL_TRAFF_LOG = mail.log
TRAFF_ROOT_DIR = /var/www/ispcp/engine/traffic
TOOLS_ROOT_DIR = /var/www/ispcp/engine/tools
QUOTA_ROOT_DIR = /var/www/ispcp/engine/quota
#
# AMaViS data
#
MAIL_LOG_INC_AMAVIS = 0
#
# GUI config
#
USER_INITIAL_THEME = omega_original
FTP_USERNAME_SEPARATOR = @
FTP_HOMEDIR = /var/www/virtual
IPS_LOGO_PATH = ../themes/user_logos
ISPCP_SUPPORT_SYSTEM_PATH = ticket_system.php
ISPCP_SUPPORT_SYSTEM_TARGET =
MYSQL_PREFIX = yes
# '' for MYSQL_PREFIX = no,
# 'infront' or 'behind' for MYSQL_PREFIX = yes
MYSQL_PREFIX_TYPE = behind
WEBMAIL_PATH = ../tools/webmail/
WEBMAIL_TARGET = _blank
# Please, do not change it manually
# This entry is used for the update/recovery process
PMA_USER = pma
PMA_PATH = /pma/
PMA_TARGET = _blank
FILEMANAGER_PATH = ../tools/filemanager/
FILEMANAGER_TARGET = _blank
DATE_FORMAT = d.m.Y
RKHUNTER_LOG = /var/log/rkhunter.log
CHKROOTKIT_LOG = /var/log/chkrootkit.log
# Here you can set an additional anti-rootkit tool log file
OTHER_ROOTKIT_LOG =
#
# htaccess management
#
HTACCESS_USERS_FILE_NAME = .htpasswd
HTACCESS_GROUPS_FILE_NAME = .htgroup
HTPASSWD_CMD = /usr/bin/htpasswd2
#
# backup management
#
BACKUP_FILE_DIR = /var/www/ispcp/backups
#
# Exception Writers Observers
#
# Availables Writers are:
# - Mail
#
# Note: Other writers will be added later
#
GUI_EXCEPTION_WRITERS = mail
#
# Debug Mode (e.g. for developers)
# options: 0 = off, 1 = on
#
DEBUG = 0
PHPINFO DEFINATELY REPORTS THE PROBLEM
Code:
ystem Linux ispcp 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Build Date Dec 13 2011 18:29:47
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /etc/php5/cgi/php.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d
Additional .ini files parsed /etc/php5/cgi/conf.d/adodb.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini
What else can i do ?
David
RE: PHP.ini changes do not stick - joximu - 02-14-2012 03:13 AM
Is fcgid_ispcp.conf loaded/enabled in apache mods?
run apache2ctl -M
/J
RE: PHP.ini changes do not stick - ShinZan - 02-14-2012 03:31 AM
(02-14-2012 03:13 AM)joximu Wrote: Is fcgid_ispcp.conf loaded/enabled in apache mods?
run apache2ctl -M
/J
Yes here is the output of the module loaded
Code:
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
cgid_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
gnutls_module (shared)
mime_module (shared)
negotiation_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
ssl_module (shared)
status_module (shared)
suexec_module (shared)
Syntax OK
RE: PHP.ini changes do not stick - joximu - 02-14-2012 03:36 AM
hm. looks good.
should be enough because there is always a block for every domain which tells apache to take th right php.ini.
for the master process it's this one:
Code:
<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
Just to be sure: is fcgi_ispcp.conf also enabled in the mod-folder of apache (is a configuration fpr fcgid - not an own module).
Do you have the problem also with the master process?
(put a phpinfo file in the ispcp-gui folder and test...)
RE: PHP.ini changes do not stick - rethus - 02-14-2012 08:33 PM
Nearly Same Problem here:
Have installed this (php_info):
Code:
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /var/www/fcgi/suther.de/php5/php.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d
additional .ini files parsed /etc/php5/cgi/conf.d/adodb.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/gmp.ini, /etc/php5/cgi/conf.d/imap.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mhash.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini, /etc/php5/cgi/conf.d/xdebug.ini, /etc/php5/cgi/conf.d/xsl.ini[/code
]
But didn't got the .htaccess parameter "max_execution-time 300" to take effect.
Even if i change /var/www/fcgi/domainname/php5/php.ini, it takes no effect.
RE: PHP.ini changes do not stick - joximu - 02-15-2012 12:45 AM
Here it's correct:
Loaded Configuration File /var/www/fcgi/suther.de/php5/php.ini
the variable is named
max_execution_time
and you need to set it in the correct php.ini (see above) - kill all php5 processes of this vhost and then you're done.
RE: PHP.ini changes do not stick - ShinZan - 02-16-2012 12:37 AM
(02-15-2012 12:45 AM)joximu Wrote: Here it's correct:
Loaded Configuration File /var/www/fcgi/suther.de/php5/php.ini
the variable is named
max_execution_time
and you need to set it in the correct php.ini (see above) - kill all php5 processes of this vhost and then you're done.
well my main problem is its loading this config file for ALL Domains
/etc/php5/cgi/php.ini
Why is it not loading
/var/www/fcgi/master/php5/php.ini
and then allowing all the other tld php.ini files to process?
David
|