By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Config php.ini

P: 1
I am new to PHP Development , i want to know How to config the php.ini file(not locally), PLEASE URGENT
Jul 7 '06 #1
Share this Question
Share on Google+
5 Replies


P: 2
If you have a server, then you can do it.
But if you have a hosting. You can not config file php.ini.
Good luck
Jul 7 '06 #2

sashi
Expert 100+
P: 1,754
Hi there,

some hosting company do allow you to config the .ini file by placing the file in your document root.. if you are hosting your site with a third-party hosting company then you should check with them.. good luck my fren.. :)
Jul 7 '06 #3

P: 1
I'm having a very similar problem.

The program I'm installing says to do this:

PHP 4.3.10 or higher with the following set in php.ini file:
-The max_input_time directive set to a value of at least 30
-The post_max_size and upload_max_filesize directives set to the size of the largest attachments yu wish to be able to upload.
-The memory_limit directive set to at least 8M
-The max_execution_time directive set to at least 15
-The register_globals directive set to Off
-Safe mode disabled, or PHP suExec enabled
- - - -

When I asked my Hosting company where is the php.ini ? They said this:
I could creat a php.ini in my Parent directory. And specific php.ini options can be used by your PHP scripts by placing an .htaccess file in the directory that contains the php script with a path to a php.ini.

The .htaccess file will need to contain the line
" suPHP_ConfigPath /home/domains/example.tld/web/ "

This will load a file named php.ini (from the web directory), which should contain all the options you want.

Ok, I added the .htaccess to my Parent directory with the line they suggest.
Exactly like this, but with my domain name.

suPHP_ConfigPath /home/domains/example.tld/web/

Also, I have a php.ini file now in my Parent directory. But "exactly" what do I now put in the php.ini file to make it function??

Thanks for your advice.

-Rick
Jul 17 '06 #4

ronverdonk
Expert 2.5K+
P: 4,258
Have a look at the Apache/PHP/MySql mini-tutorials. Adapting your PHP.INI depends on the version you are using. So see link

http://minitutorials.com/apache/apacheindex.shtml

Ronald :cool:
Jul 20 '06 #5

ronverdonk
Expert 2.5K+
P: 4,258
Just to let you know that there is another site I just passed by and solely dedicated to PHP.INI
http://www.ilovejackdaniels.com/php-ini-guide/

Ronald :cool:
Jul 20 '06 #6

Post your reply

Sign in to post your reply or Sign up for a free account.