PDA

View Full Version : php.ini


Lars T
10-08-2008, 05:41 PM
Where do I find the php.ini file?

aberg
10-08-2008, 06:48 PM
/etc/php.ini

noppid
10-08-2008, 06:50 PM
That's not always the case. Especially with cpanel. ;)

it could be /usr/local/Zend/etc/php.ini

Lars T
10-08-2008, 06:54 PM
I'll have to access my ftp, right?

noppid
10-08-2008, 06:56 PM
I'll have to access my ftp, right?

Not unless you login as root. Not a good idea usually.

Lars T
10-08-2008, 07:03 PM
hmmm - I have access to the root now, but can't find the php.ini file?!

Lynne
10-08-2008, 07:21 PM
Google is your friend - "locate php.ini" -
PHP-Scripts Blog ? How to find the location of php.ini on the server (http://www.php-scripts.com/20050909/8/)

iogames
10-08-2008, 11:24 PM
Google is your friend - "locate php.ini" -
PHP-Scripts Blog ? How to find the location of php.ini on the server (http://www.php-scripts.com/20050909/8/)

Isn't just your friend, is like ur brother!
what do I say? it's like ur father! :D

When u set the parameters on php.ini, I always created a file called: 'copyphpini.php'

<pre><?php system("find . -type d|xargs -i cp --verbose php.ini {}/."); ?></pre>COMPLETE!

Then run the file: http://www.yoursite.com/copyphpini.php

Once completed: delete or rename ;)

puertoblack2003
10-09-2008, 01:25 AM
or go to your vb admin panel under "View PHP Info" in maintenance section..:up: it'll tell you exactly where it is.

Dismounted
10-09-2008, 02:44 AM
or go to your vb admin panel under "View PHP Info" in maintenance section..:up: it'll tell you exactly where it is.
This is the easiest solution :).