Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: durangod on December 22, 2023, 02:25:22 AM

Title: Any concerns with running a custom version of php ini file in the SMF root
Post by: durangod on December 22, 2023, 02:25:22 AM
Hi,

I was just curious if there were any concerns i should be aware of specifically to SMF when running a custom php ini file.  I usually have a custom ini file on each of my sites and i want to do the same in the SMF root..   

Thanks :)
Title: Re: Any concerns with running a custom version of php ini file in the SMF root
Post by: Sesquipedalian on December 22, 2023, 03:53:55 AM
Not particularly, no.
Title: Re: Any concerns with running a custom version of php ini file in the SMF root
Post by: durangod on December 22, 2023, 04:00:43 AM
Ok thanks, i did not notice anything but just wanted to check to be sure. 
Title: Re: Any concerns with running a custom version of php ini file in the SMF root
Post by: Arantor on December 22, 2023, 08:14:30 AM
Just make sure your Apache/nginx/whatever is configured not to send php.ini files if you're putting them in what is otherwise a web-accessible folder. (.htaccess files already have a special rule in Apache's config to not let them be served.)
Title: Re: Any concerns with running a custom version of php ini file in the SMF root
Post by: durangod on December 22, 2023, 10:21:07 AM
Great thanks...  appreciat it..  :)

I have this in my htaccess

<Files .htaccess>
order allow,deny
deny from all
</Files>

<Files php.ini>
order allow,deny
deny from all
</Files>

#for better security
ServerSignature Off