PDA

View Full Version : Default php.ini?


retrogad
07-20-2005, 05:07 PM
Is there any way I can see the default php.ini settings file? I'm trying to do some customizations, but whenever I load in a php.ini file (even if it's completely commented out), some of my pages start screwing up and won't pass variables correctly. I'm thinking that if I can take a look at the default settings, I can use that and tweak it as necessary to get what I want.

miguel
07-21-2005, 12:33 AM
Unfortunately, we cannot provide you with access to the main php.ini file. Nevertheless, you can see almost any php setting that might be of interest to you using the phpinfo() function.

Just create a php file with the following content in a web-accessible location:

<?php phpinfo();?>

and access it with the browser.

retrogad
07-21-2005, 08:25 PM
Okay, here's something kinda weird. I compared the phpinfo() output between having no php.ini file (your default settings) and using a blank php.ini file (every line was commented out). Turns out a few settings changed:

* error_log (changed from "error_log" to "no value")
* error_reporting (changed from "81" to "no value")
* extension_dir (changed from "./" to "/usr/lib/php/extensions/no-debug-non-zts-20020429")
* include_path (changed from ".:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php" to ".:/usr/lib/php")
* log_errors (changed from "On" to "Off")
* mysql.allow_persistent (changed from "Off" to "On")
* mysql.default_socket (changed from "/var/lib/mysql/mysql.sock" to "no value")
* output_buffering (changed from "no value" to "0")
* pgsql.allow_persistent (changed from "Off" to "On")
* post_max_size (changed from "55M" to "8M")
* register_globals (changed from "On" to "Off")
* safe_mode_exec_dir (changed from "no value" to "/usr/local/php/bin")
* session.use_trans_sid (changed from "On" to "Off")
* upload_max_filesize (changed from "20M" to "2M")
* variables_order (changed from "EGPCS" to "no value")
* y2k_compliance (changed from "Off" to "On")

If anyone plans on using their own php.ini, and any of these settings are important to you, I'd advise checking these settings to make sure they are set the way you want. (Although I did manage to fix my problem; it was one of those settings :D )

jazzhamb
08-05-2005, 01:30 PM
this function is not accepted, it is locked at your server

See here: my php with that function (http://www.hafenfotografen.de/photo/cgi-bin/sagsmir.php)

tell me what to do, I also posted a ticket

I need this function!

thanks in advance!

retrogad
08-05-2005, 09:21 PM
this function is not accepted, it is locked at your server

See here: my php with that function (http://www.hafenfotografen.de/photo/cgi-bin/sagsmir.php)

tell me what to do, I also posted a ticket

I need this function!

thanks in advance!

That page worked just fine for me. It should show a long page with a bunch of PHP config settings.

miguel
08-08-2005, 12:17 AM
That page worked just fine for me. It should show a long page with a bunch of PHP config settings.

Same with me - the page is visible.

kamilche
06-03-2006, 12:10 PM
I see the full info at your page, yes... but on my page, all I see is:



Does anyone else see anything different?

http://www.siteground128.com/~kamilche/phpinfo.php

sonolumi
11-10-2006, 12:20 PM
The URL generated the following ERROR:


The requested URL /~kamilche/phpinfo.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

sonolumi
11-10-2006, 12:34 PM
Where does one place an extension module for the script to access it?
phpinfo()
....
include_path = .:/usr/lib/php:/usr/local/lib/php
....

does it mean the dl("myscript.so") will work if myscript.so exists in the same folder?

Bill
11-22-2006, 01:28 AM
Can you please let us know what kind of script are you trying to run?

.so files are Shared Object files and are mostly used as modules for the php itself.

k4vd
11-24-2006, 05:22 PM
The code should be...

&lt;?php phpinfo() ?&gt;

It needs to be placed in a .php file such as phpinfo.php and placed on your site. Then open that file in your browser and you should see the results.

Hope this helps.

Kev

Katmassive
11-30-2006, 07:52 AM
how about if i need the php.ini file to be edit to install a ixed loader?