View Full Version : php.ini file
bobhonda
03-07-2008, 12:25 AM
can anyone tell me the path to php.ini file ? .... thanks
Bradley_Wint
03-07-2008, 12:39 AM
ok ... normally the php.ini file should be within your www or public_html folder (w/e yours is called)...
make a php file with this code in it.
<?php
echo getcwd();
?>
save the file as say ... path.php and place it in the dir with the php.ini , which as I said is usually within the HTML folders... go to the path.php file...(e.g. www.yoursite.com/path.php) and it will give you the path to that dir... say for example (bradleyw/home/public_html) and just add the php.ini to that listed path.
attached is the path.php file if you are too lazy to make it yourself
bobhonda
03-07-2008, 01:11 AM
thanks for the reply iam trying to bump up the PHP Maximum Upload Size but i dont see the php.ini file anywhere? was told that what i got to edit
SEOvB
03-07-2008, 01:15 AM
the php.ini file is not within www or public_html folders :roll:
Its usually located in a different location depending on how your server is configed. If you're on shared hosting you won't be able to edit the file directly. If you're on VPS or dedicated log into the SSH and do a find php.ini command to find it.
Or you can find it using a php file
<?php
phpinfo();
?>
in a php file on your server, and visit it with your browser
Bradley_Wint
03-07-2008, 01:22 AM
Hmmm weird, I checked my public_html and saw my fastphp.ini and php.ini files.
Maybe your server does not allow you access to configure those files? Is it your server or a sub server or what?
bobhonda
03-07-2008, 01:39 AM
yea its a shared so i guess i got to get them to do it...............i remember doing it a long time ago on another shared set up but i cant remember what i did lol. thanks for the help
Bradley_Wint
03-07-2008, 01:42 AM
Even shared setups should have php.ini files for each sublet. Talk to your network admin on configuring it if you have a problem.
Dismounted
03-07-2008, 05:24 AM
Usually, you don't have any control over PHP settings on a shared service. You'd be lucky to be able to control anything.
snakes1100
03-07-2008, 09:06 AM
Most hosts such as liquidweb, godaddy, hostgator and numerous others allow php.ini modification and allow vhost users to modify settings per vhost for many different aspects of php, memory_limit, max_execution.
You can simply add a php.ini file to your public_html/root, insert hte settings you want modified, save the file and refresh, recheck the info.php page and see if your settings took effect.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.