Re: [suPHP] Can't find suphp.confYes 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: [email protected] 
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 <[email protected]>
      Organization: SYO Computer Services and SYO Biometrics
      Date: Fri, 22 Jul 2011 11:13:10 -0400
      To: Chuck Lyon <[email protected]>
      Cc: "[email protected]" <[email protected]>
      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 <[email protected]>
            Organization: SYO Computer Services and SYO Biometrics
            Date: Fri, 22 Jul 2011 10:38:50 -0400
            To: <[email protected]>
            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:[email protected]
            SYO Computer Services and SYO Biometrics
            ph:586-580-2213        fx:586-580-2215
            Remote Support 
            Skype Me!
            _______________________________________________ suPHP mailing list 
[email protected]https://lists.marsching.com/mailman/listinfo/suphp 




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

      Jason Gottschalk        
      wlmailhtml:[email protected]
      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:[email protected]
SYO Computer Services and SYO Biometrics
ph:586-580-2213        fx:586-580-2215
Remote Support  


--------------------------------------------------------------------------------
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to