Page 1 of 1

Where is the PHP.ini file ?

Posted: Wed Aug 02, 2006 1:24 pm
by DA
Hi all ,

Probably a stupid question , but as the tite says , where is this elusive php.ini file to be found ?

I want to make some suggested changes in it . We are hosted with IX Webhosting on a Linux setup .

Many thanks

DA

Re: Where is the PHP.ini file ?

Posted: Wed Aug 02, 2006 2:19 pm
by cyberman
When you only have "normally" webhosting without server access, you can't found php.iniĀ  :). The place for php.ini on server is depending from the used linux distribution.

You can only try to overwrite some defaults with an entry in .htaccess ...

Re: Where is the PHP.ini file ?

Posted: Wed Aug 02, 2006 2:30 pm
by DA
Hi cyberman ,

Thanks for that . It is not available to me than .

Can I change these recomended settings in th htaccess file ? , and how do I do it / ( smile )

Checking PHP memory limit (min 8M, recommend 16M)......................You have "8M"
Could not retrieve a value.... passing anyways

Checking max execution time (min 30s, recommend 45s),,,,,,,,,,,,,,,,,,,,,You have "30"

Checking max upload file size (min 2M)........................You have "2M"

Many thanks for your help

DA

Re: Where is the PHP.ini file ?

Posted: Thu Aug 03, 2006 4:44 am
by cyberman
DA wrote: Can I change these recomended settings in th htaccess file ? , and how do I do it / ( smile )
Create a file named .htaccess and put it in the root of CMSms.
Checking PHP memory limit (min 8M, recommend 16M)......................You have "8M"
Write this inside .htaccess

Code: Select all

php_value memory_limit 16M 
Checking max execution time (min 30s, recommend 45s),,,,,,,,,,,,,,,,,,,,,You have "30"
The same here

Code: Select all

php_value max_execution_time 60
Checking max upload file size (min 2M)........................You have "2M"
And once again

Code: Select all

php_value upload_max_filesize 10M
But it will only work if your webhost has "AllowOverride On" in their httpd config.

Re: Where is the PHP.ini file ?

Posted: Thu Aug 03, 2006 10:23 am
by DA
Hi Cyberman ,

Thanks very much for that , greatly appreciated .

Have a good day

DA