mountserver | 5 Jul 2011 18:39
Favicon

Debian 64bit Plesk 9.5 suphp set up - suphp never actually seems to run

I have suphp set up on a Deb 64bit plesk VPS machine. Is there any way
to test whether the /usr/lib/suphp/suphp binary even loads?
It shows no change in access time since install yet the logs did have a
complaint of uid being lower than the threshold.
Also I see php5-script, x-httpd-suphp, application/x-httpd-php and
random combinations in examples all over the web.

-- 

  mountserver@...

--

-- 
http://www.fastmail.fm - Same, same, but different...
Jason Gottschalk | 22 Jul 2011 16:38

Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Chuck Lyon | 22 Jul 2011 17:05
Favicon

Re: Can't find suphp.conf

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.orghttps://lists.marsching.com/mailman/listinfo/suphp
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Jason Gottschalk | 22 Jul 2011 17:13

Re: Can't find suphp.conf

Please note our new telephone and fax numbers:
Phone:586-580-2213        Fax:586-580-2215
Our prior number 286-2557 will continue to work for a while.

Hello Chuck,

Thanks for the -print command. As it turns out, the file simply does not exist.

After more reading, especially at this thread:
http://forums.cpanel.net/f185/methods-increase-security-suphp-restricting-who-can-use-php-ini-files-167186.html 


I used the the info in this section and it work fabulously!!!!:

If you have PHP 5.3+ and want to allow some accounts to have their own php.ini file

If you have restricted all accounts globally to the /usr/local/lib/php.ini file and want to have one or more accounts bypass the restriction, this is possible under PHP 5.3 using the global php.ini itself.

Method One: Allowing individual user_ini files

In /usr/local/lib/php.ini file, put the following line:

Code:
user_ini.filename = .my.ini
The .my.ini name can be anything. Save the file, then go to the account you want to allow their own settings and create .my.ini on the account (it can be anywhere on the account so /home/username/public_html/.my.ini)

In the .my.ini file, you would be able to put only the changes you want to have such as register_globals = On for that account. Of note, only the PHP_INI_PERDIR and PHP_INI_USER directives are allowed in this file. Any PHP_INI_SYSTEM directives will not be changeable there.




Now on to the next problem!!!!




Friday, July 22, 2011, 11:05:59 AM, you wrote:

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp <at> lists.marsching.com>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.orghttps://lists.marsching.com/mailman/listinfo/suphp



-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Jason Gottschalk | 22 Jul 2011 22:11

Re: Can't find suphp.conf

Hello,


Well, I spoke too soon.  Adding user_ini.filename = .my.ini to the php.ini file didn;t allow the users to have their own php ini file.

I still need to comment out the line under  [phprc_paths]  in the suphp.conf file, but I can't find the file.

Should I create it?


Friday, July 22, 2011, 11:25:44 AM, you wrote:

Glad you solved it!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 11:13:10 -0400
To: Chuck Lyon <chuck <at> fiu.edu>
Cc: "suphp <at> lists.marsching.com" <suphp <at> lists.marsching.com>
Subject: Re: [suPHP] Can't find suphp.conf

Please note our new telephone and fax numbers:
Phone:586-580-2213        Fax:586-580-2215
Our prior number 286-2557 will continue to work for a while.

Hello Chuck,

Thanks for the -print command. As it turns out, the file simply does not exist.

After more reading, especially at this thread:
http://forums.cpanel.net/f185/methods-increase-security-suphp-restricting-who-can-use-php-ini-files-167186.html 


I used the the info in this section and it work fabulously!!!!:

If you have PHP 5.3+ and want to allow some accounts to have their own php.ini file

If you have restricted all accounts globally to the /usr/local/lib/php.ini file and want to have one or more accounts bypass the restriction, this is possible under PHP 5.3 using the global php.ini itself.

Method One: Allowing individual user_ini files

In /usr/local/lib/php.ini file, put the following line:

Code:
user_ini.filename = .my.ini
The .my.ini name can be anything. Save the file, then go to the account you want to allow their own settings and create .my.ini on the account (it can be anywhere on the account so /home/username/public_html/.my.ini)

In the .my.ini file, you would be able to put only the changes you want to have such as register_globals = On for that account. Of note, only the PHP_INI_PERDIR and PHP_INI_USER directives are allowed in this file. Any PHP_INI_SYSTEM directives will not be changeable there.




Now on to the next problem!!!!




Friday, July 22, 2011, 11:05:59 AM, you wrote:

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp <at> lists.marsching.com>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v4jBFkejb+Ym@public.gmane.orgmhttps://lists.marsching.com/mailman/listinfo/suphp




-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 



-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Grant Peel | 22 Jul 2011 22:13

Re: Can't find suphp.conf

Yes add it.
 
But it you look you will likely find the example one in /usr/local/etc/.
 
-Grant
 
Sent: Friday, July 22, 2011 4:11 PM
Subject: Re: [suPHP] Can't find suphp.conf
 
Hello,


Well, I spoke too soon.  Adding user_ini.filename = .my.ini to the php.ini file didn;t allow the users to have their own php ini file.

I still need to comment out the line under [phprc_paths]  in the suphp.conf file, but I can't find the file.

Should I create it?


Friday, July 22, 2011, 11:25:44 AM, you wrote:

Glad you solved it!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 11:13:10 -0400
To: Chuck Lyon <chuck-yR1IYenT0F0@public.gmane.org>
Cc: "suphp-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org" <suphp-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org>
Subject: Re: [suPHP] Can't find suphp.conf

Please note our new telephone and fax numbers:
Phone:586-580-2213        Fax:586-580-2215
Our prior number 286-2557 will continue to work for a while.

Hello Chuck,

Thanks for the -print command. As it turns out, the file simply does not exist.

After more reading, especially at this thread:
http://forums.cpanel.net/f185/methods-increase-security-suphp-restricting-who-can-use-php-ini-files-167186.html 


I used the the info in this section and it work fabulously!!!!:

If you have PHP 5.3+ and want to allow some accounts to have their own php.ini file

If you have restricted all accounts globally to the /usr/local/lib/php.ini file and want to have one or more accounts bypass the restriction, this is possible under PHP 5.3 using the global php.ini itself.

Method One: Allowing individual user_ini files

In /usr/local/lib/php.ini file, put the following line:

Code:
user_ini.filename = .my.ini
The .my.ini name can be anything. Save the file, then go to the account you want to allow their own settings and create .my.ini on the account (it can be anywhere on the account so /home/username/public_html/.my.ini)

In the .my.ini file, you would be able to put only the changes you want to have such as register_globals = On for that account. Of note, only the PHP_INI_PERDIR and PHP_INI_USER directives are allowed in this file. Any PHP_INI_SYSTEM directives will not be changeable there.




Now on to the next problem!!!!




Friday, July 22, 2011, 11:05:59 AM, you wrote:

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there?

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths].

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





--
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk       
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.orghttps://lists.marsching.com/mailman/listinfo/suphp




--
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk       
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 



--
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk       
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 

_______________________________________________
suPHP mailing list
suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org
https://lists.marsching.com/mailman/listinfo/suphp
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Jason Gottschalk | 22 Jul 2011 22:16

Re: Can't find suphp.conf

Hello Grant,

Thanks,  under /usr/local/etc/  I have ONLY: 
clamd.conf
freshclam.conf
pear.conf
rkhunter.conf


If I add it, where should it go? in:
 /opt/suphp/etc/suphp.conf 



Friday, July 22, 2011, 4:13:49 PM, you wrote:

Yes add it. 
 
But it you look you will likely find the example one in /usr/local/etc/.
 
-Grant
 
From: Jason Gottschalk
Sent: Friday, July 22, 2011 4:11 PM
To: suphp-qhrM8SXbD5I@public.gmane.orgrsching.com
Subject: Re: [suPHP] Can't find suphp.conf
 
Hello,


Well, I spoke too soon.  Adding user_ini.filename = .my.ini to the php.ini file didn;t allow the users to have their own php ini file.

I still need to comment out the line under [phprc_paths]  in the suphp.conf file, but I can't find the file.

Should I create it?


Friday, July 22, 2011, 11:25:44 AM, you wrote:

Glad you solved it!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 11:13:10 -0400
To: Chuck Lyon <chuck <at> fiu.edu>
Cc: "suphp <at> lists.marsching.com" <suphp <at> lists.marsching.com>
Subject: Re: [suPHP] Can't find suphp.conf

Please note our new telephone and fax numbers:
Phone:586-580-2213        Fax:586-580-2215
Our prior number 286-2557 will continue to work for a while.

Hello Chuck,

Thanks for the -print command. As it turns out, the file simply does not exist.

After more reading, especially at this thread:
http://forums.cpanel.net/f185/methods-increase-security-suphp-restricting-who-can-use-php-ini-files-167186.html 


I used the the info in this section and it work fabulously!!!!:

If you have PHP 5.3+ and want to allow some accounts to have their own php.ini file

If you have restricted all accounts globally to the /usr/local/lib/php.ini file and want to have one or more accounts bypass the restriction, this is possible under PHP 5.3 using the global php.ini itself.

Method One: Allowing individual user_ini files

In /usr/local/lib/php.ini file, put the following line:

Code:
user_ini.filename = .my.ini
The .my.ini name can be anything. Save the file, then go to the account you want to allow their own settings and create .my.ini on the account (it can be anywhere on the account so /home/username/public_html/.my.ini)

In the .my.ini file, you would be able to put only the changes you want to have such as register_globals = On for that account. Of note, only the PHP_INI_PERDIR and PHP_INI_USER directives are allowed in this file. Any PHP_INI_SYSTEM directives will not be changeable there.




Now on to the next problem!!!!




Friday, July 22, 2011, 11:05:59 AM, you wrote:

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp <at> lists.marsching.com>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v4jBFkejb+Ym@public.gmane.orgmhttps://lists.marsching.com/mailman/listinfo/suphp





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 




-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support  
_______________________________________________
suPHP mailing list
suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org
https://lists.marsching.com/mailman/listinfo/suphp



-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Jason Gottschalk | 22 Jul 2011 22:22

Re: Can't find suphp.conf

Hello Grant,


This is interesting, I just ran /usr/local/cpanel/scripts/suphpup

and the response was:
Your last EasyApache build did not have suPHP selected


So, if I am not running suphp, how is it that users cannot have their own php.ini file in their personal directories?







Friday, July 22, 2011, 4:13:49 PM, you wrote:

Yes add it. 
 
But it you look you will likely find the example one in /usr/local/etc/.
 
-Grant
 
From: Jason Gottschalk
Sent: Friday, July 22, 2011 4:11 PM
To: suphp-qhrM8SXbD5I@public.gmane.orgrsching.com
Subject: Re: [suPHP] Can't find suphp.conf
 
Hello,


Well, I spoke too soon.  Adding user_ini.filename = .my.ini to the php.ini file didn;t allow the users to have their own php ini file.

I still need to comment out the line under [phprc_paths]  in the suphp.conf file, but I can't find the file.

Should I create it?


Friday, July 22, 2011, 11:25:44 AM, you wrote:

Glad you solved it!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 11:13:10 -0400
To: Chuck Lyon <chuck <at> fiu.edu>
Cc: "suphp <at> lists.marsching.com" <suphp <at> lists.marsching.com>
Subject: Re: [suPHP] Can't find suphp.conf

Please note our new telephone and fax numbers:
Phone:586-580-2213        Fax:586-580-2215
Our prior number 286-2557 will continue to work for a while.

Hello Chuck,

Thanks for the -print command. As it turns out, the file simply does not exist.

After more reading, especially at this thread:
http://forums.cpanel.net/f185/methods-increase-security-suphp-restricting-who-can-use-php-ini-files-167186.html 


I used the the info in this section and it work fabulously!!!!:

If you have PHP 5.3+ and want to allow some accounts to have their own php.ini file

If you have restricted all accounts globally to the /usr/local/lib/php.ini file and want to have one or more accounts bypass the restriction, this is possible under PHP 5.3 using the global php.ini itself.

Method One: Allowing individual user_ini files

In /usr/local/lib/php.ini file, put the following line:

Code:
user_ini.filename = .my.ini
The .my.ini name can be anything. Save the file, then go to the account you want to allow their own settings and create .my.ini on the account (it can be anywhere on the account so /home/username/public_html/.my.ini)

In the .my.ini file, you would be able to put only the changes you want to have such as register_globals = On for that account. Of note, only the PHP_INI_PERDIR and PHP_INI_USER directives are allowed in this file. Any PHP_INI_SYSTEM directives will not be changeable there.




Now on to the next problem!!!!




Friday, July 22, 2011, 11:05:59 AM, you wrote:

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp <at> lists.marsching.com>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v4jBFkejb+Ym@public.gmane.orgmhttps://lists.marsching.com/mailman/listinfo/suphp





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 




-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
wlmailhtml:Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support  
_______________________________________________
suPHP mailing list
suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org
https://lists.marsching.com/mailman/listinfo/suphp



-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Chuck Lyon | 22 Jul 2011 22:28
Favicon

Re: Can't find suphp.conf

What platform?  What distro ?
Try the "find" command I suggested.  If the file is not found, look for mod_suphp in the Apache config.  If you don't find it, I don't believe suphp is installed.
Good Luck!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 16:11:15 -0400
To: <suphp-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org>
Subject: Re: [suPHP] Can't find suphp.conf

Hello,


Well, I spoke too soon.  Adding user_ini.filename = .my.ini to the php.ini file didn;t allow the users to have their own php ini file.

I still need to comment out the line under  [phprc_paths]  in the suphp.conf file, but I can't find the file.

Should I create it?


Friday, July 22, 2011, 11:25:44 AM, you wrote:

Glad you solved it!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 11:13:10 -0400
To: Chuck Lyon <chuck <at> fiu.edu>
Cc: "suphp <at> lists.marsching.com" <suphp-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org>
Subject: Re: [suPHP] Can't find suphp.conf

Please note our new telephone and fax numbers:
Phone:586-580-2213        Fax:586-580-2215
Our prior number 286-2557 will continue to work for a while.

Hello Chuck,

Thanks for the -print command. As it turns out, the file simply does not exist.

After more reading, especially at this thread:
http://forums.cpanel.net/f185/methods-increase-security-suphp-restricting-who-can-use-php-ini-files-167186.html 


I used the the info in this section and it work fabulously!!!!:

If you have PHP 5.3+ and want to allow some accounts to have their own php.ini file

If you have restricted all accounts globally to the /usr/local/lib/php.ini file and want to have one or more accounts bypass the restriction, this is possible under PHP 5.3 using the global php.ini itself.

Method One: Allowing individual user_ini files

In /usr/local/lib/php.ini file, put the following line:

Code:
user_ini.filename = .my.ini
The .my.ini name can be anything. Save the file, then go to the account you want to allow their own settings and create .my.ini on the account (it can be anywhere on the account so /home/username/public_html/.my.ini)

In the .my.ini file, you would be able to put only the changes you want to have such as register_globals = On for that account. Of note, only the PHP_INI_PERDIR and PHP_INI_USER directives are allowed in this file. Any PHP_INI_SYSTEM directives will not be changeable there.




Now on to the next problem!!!!




Friday, July 22, 2011, 11:05:59 AM, you wrote:

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp <at> lists.marsching.com>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v4jBFkejb+Ym@public.gmane.orgmhttps://lists.marsching.com/mailman/listinfo/suphp




-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 



-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org https://lists.marsching.com/mailman/listinfo/suphp
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Jason Gottschalk | 22 Jul 2011 22:38

Re: Can't find suphp.conf

Hello Chuck,

Red Hat Enterprise Linux Server release 5.7 (Tikanga)


Friday, July 22, 2011, 4:28:27 PM, you wrote:

What platform?  What distro ?
Try the "find" command I suggested.  If the file is not found, look for mod_suphp in the Apache config.  If you don't find it, I don't believe suphp is installed.
Good Luck!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 16:11:15 -0400
To: <suphp <at> lists.marsching.com>
Subject: Re: [suPHP] Can't find suphp.conf

Hello,


Well, I spoke too soon.  Adding user_ini.filename = .my.ini to the php.ini file didn;t allow the users to have their own php ini file.

I still need to comment out the line under  [phprc_paths]  in the suphp.conf file, but I can't find the file.

Should I create it?


Friday, July 22, 2011, 11:25:44 AM, you wrote:

Glad you solved it!

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 11:13:10 -0400
To: Chuck Lyon <chuck <at> fiu.edu>
Cc: "suphp <at> lists.marsching.com" <suphp <at> lists.marsching.com>
Subject: Re: [suPHP] Can't find suphp.conf

Please note our new telephone and fax numbers:
Phone:586-580-2213        Fax:586-580-2215
Our prior number 286-2557 will continue to work for a while.

Hello Chuck,

Thanks for the -print command. As it turns out, the file simply does not exist.

After more reading, especially at this thread:
http://forums.cpanel.net/f185/methods-increase-security-suphp-restricting-who-can-use-php-ini-files-167186.html 


I used the the info in this section and it work fabulously!!!!:

If you have PHP 5.3+ and want to allow some accounts to have their own php.ini file

If you have restricted all accounts globally to the /usr/local/lib/php.ini file and want to have one or more accounts bypass the restriction, this is possible under PHP 5.3 using the global php.ini itself.

Method One: Allowing individual user_ini files

In /usr/local/lib/php.ini file, put the following line:

Code:
user_ini.filename = .my.ini
The .my.ini name can be anything. Save the file, then go to the account you want to allow their own settings and create .my.ini on the account (it can be anywhere on the account so /home/username/public_html/.my.ini)

In the .my.ini file, you would be able to put only the changes you want to have such as register_globals = On for that account. Of note, only the PHP_INI_PERDIR and PHP_INI_USER directives are allowed in this file. Any PHP_INI_SYSTEM directives will not be changeable there.




Now on to the next problem!!!!




Friday, July 22, 2011, 11:05:59 AM, you wrote:

Don't know about your platform.
In  RedHat  there are two files and it depends on how suphp was built/installed.  One of them is a global, and one in the apache configuration.
The best bet is to "find / -name suphp.conf –print"  You can restrict the search to say /usr, /opt, or /etc but the command given will eventually find them all. :-)
HTH

Chuck

From: Jason Gottschalk <Jason-9SbiX/Yzcp4@public.gmane.org>
Organization: SYO Computer Services and SYO Biometrics
Date: Fri, 22 Jul 2011 10:38:50 -0400
To: <suphp <at> lists.marsching.com>
Subject: [suPHP] Can't find suphp.conf

Hello Suphp,

I'm trying to let my users use php.ini to prepend php files to there html documents.

I understand I have to comment some lines in suphp.conf

I cannot find suphp.conf anywhere on my server. Could it really not be there? 

Any help would be most appreciated.

This is what I was instructed to do:

--------
If you are running suPHP you need to reverse the changes to /opt/suphp/etc/suphp.conf by re-commenting out the lines under [phprc_paths]. 

Then your users can use a local php.ini file. 
--------

The file does not exist in /opt/suphp/etc or anywhere else.


Thanks





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
Skype Me!
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v4jBFkejb+Ym@public.gmane.orgmhttps://lists.marsching.com/mailman/listinfo/suphp





-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 




-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
_______________________________________________ suPHP mailing list suPHP-qhrM8SXbD5JCREYaNQg7v0EOCMrvLtNR@public.gmane.org https://lists.marsching.com/mailman/listinfo/suphp



-- 
Be Well, Do Good Work, and Keep In Touch...

Jason Gottschalk        
Jason-9SbiX/Yzcp4@public.gmane.org
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support 
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp

Gmane