Where is php.ini ?

Status
Not open for further replies.

chipve

Active Member
398
2010
25
1,490
I have a problem when import 47MB xml to wordpress . I'm newbabie in linux , so can someone help me ?
File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.
 
11 comments
what u using?

In Kloxo:
/root/.etc/misc/php.ini
/usr/lib/kloxophp/zend/etc/php.ini
/usr/local/lxlabs/ext/php/etc/php.ini
/usr/local/lxlabs/kloxo/httpdocs/htmllib/filecore/php.ini
/usr/local/lxlabs/kloxo/httpdocs/htmllib/filecore/lxetc/misc /php.ini
/etc/php.ini
/home/httpd/mydomain.com/php.ini
/home/httpd/mydomain.com/php.ini
 
Hey create a file with this text without quotes "<?php phpinfo(); ?>"
save and then open that file in browser and look for "Configuration File (php.ini) Path " ;)
 
It would help if we knew the distro. But anyhow, here is a noob proof way of finding the location of the .ini you need to edit, much easier than locate or grep.

1) Create a new file in the document root of your site, name it whatever you want (e.g. test.php)
2) Place the following inside and save it:
Code:
<?php 
  phpinfo();
?>
3) Load that file in your browser.
4) Find 'Loaded Configuration File' and this will show the location of the .ini php is using.
5) Delete the file once done.
 
Actually, that depends on what distro your using...

For Debian/Ubuntu its in /etc/php5.

You can't say for sure its going to be there until you know what flavoured distro he is using and even then, you don't even know how he installed it!
 
Status
Not open for further replies.
Back
Top