Current time: 12-24-2024, 05:01 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[Solved] Local php.ini not read
Author Message
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #11
RE: problem with fcgi after update to RC4
Hummm in fact, the problem seem occur on one particular domain.
if I make modification on another domain, the php.ini file is read

So... the problem comes efficiently of the domain configuration.
In the first domain, the "Loaded Configuration File" variable is set to /etc/php5/cgi/php.ini
On the second domain (which works well), the "Loaded Configuration File" variable is set to "/var/www/fcgi/seconddomain.fr/php5/php.ini"

How can I change manualy the configuration of the first domain ?
04-01-2008 09:25 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #12
RE: problem with fcgi after update to RC4
I think you use mod-php for the "first domain"...

have a look in the /etc/apache2/sites-enabled/ispcp.conf and see the difference.

Maybe you'll get it corrected when setting the status of this doimain to "change" and rerun the request manager

/J
(This post was last modified: 04-01-2008 09:48 PM by joximu.)
04-01-2008 09:47 PM
Visit this user's website Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #13
RE: problem with fcgi after update to RC4
Code:
I think you use mod-php for the "first domain"...

have a look in the /etc/apache2/sites-enabled/ispcp.conf and see the difference.
I looked, but I didn't find anything strange...
What should I look for ?
Code:
Maybe you'll get it corrected when setting the status of this doimain to "change" and rerun the request manager
I'm not sure to understand what you meens...
I have suspend and unsuspend the domain, but nothing change.[/code]
04-02-2008 07:28 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #14
RE: problem with fcgi after update to RC4
Well, at least the domain which is taking /etc/php5/cgi/php.ini as php.ini does use mod-php....

No, maybe, the php-starter file is not ok, because there the location of the php.ini is defined.

PHPRC="/var/www/fcgi/domain.tld/php5/"
export PHPRC

you find theese files in /var/www/fcgi/domain.tld/...

/J
04-02-2008 07:32 AM
Visit this user's website Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #15
RE: problem with fcgi after update to RC4
Here the content of the file /var/www/fcgi/domain.com/php5-fcgi-starter :
Code:
#!/bin/sh                                                                                              
                                                                                                        
umask 022                                                                                              
                                                                                                        
PHPRC="/var/www/fcgi/domain.com/php5/"                                                      
                                                                                                        
export PHPRC                                                                                            
PHP_FCGI_CHILDREN=2                                                                                    
export PHP_FCGI_CHILDREN                                                                                
PHP_FCGI_MAX_REQUESTS=500                                                                              
export PHP_FCGI_MAX_REQUESTS                                                                            
                                                                                                        
exec /usr/bin/php5-cgi
04-02-2008 07:47 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #16
RE: problem with fcgi after update to RC4
Seems ok...

what does "apache2 -M" tell you?

/J
04-02-2008 07:54 AM
Visit this user's website Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #17
RE: problem with fcgi after update to RC4
Code:
# apache2 -M
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)
cgid_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
Syntax OK
04-02-2008 07:39 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #18
RE: problem with fcgi after update to RC4
Hi
Looks also ok.

You don't have anything in the apache-logs of the domain (or suexec.log) which could help finding the problem.

Your domain1.com does not use the right php.ini. It uses at least fast-cgi but I don't know if it uses the phpstarter-script or why it doe not use the right php.ini.

Maybe a permission (ownership) problem in the /var/www/fcgi/... structure?

/J
04-02-2008 08:33 PM
Visit this user's website Find all posts by this user
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #19
RE: problem with fcgi after update to RC4
yes ! the php.ini file has the wrong permission... probably when I copy it from the old server...

Thank you joximu for your help and your patience Smile
04-02-2008 08:56 PM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)