php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
Questions tagged [php.ini]
272 questions
0
votes
1 answer
Need ability to set configuration options using single method which will work across multiple server configurations
I'm trying to set post_max_size and upload_max_filesize in a specific directory for a web application I'm building. I've tried the following in a .htaccess file in the script directory. (upload.php is the script that needs the special…

JakeParis
- 123
- 6
0
votes
2 answers
Uncommenting lines in php.ini file on 000webhost
I recently asked a question about a php error
after playing with the php.ini file I found that after commenting
extension=php_soap.dll
I got the same error as I did on the internet
so I relized that line on 000webhost's php.ini file must be…
user64152
0
votes
1 answer
disable absolute path in php errors
Is there anyway to disable absolute path which appears with php errors.
i.e.
/domain.com/www/user/html/index.php on line 179
I don't want php to show "/domain.com/www/user/html". Only the file name should appear with line number.

User4283
- 781
- 3
- 10
- 27
0
votes
3 answers
What PHP memory_limit do you suggest for a VPS with 256M RAM?
What PHP memory_limit (php.ini) do you suggest for a VPS with 256M RAM ?
I'm using Ubuntu 10 + Apache2 + Php5
thanks

aneuryzm
- 1,714
- 5
- 26
- 41
0
votes
1 answer
How to customize PHP configuration per Virtual Host under Plesk
i have a dev server (debian) managed via Plesk (9.5.2).
Im wondering if is possible to change the php.ini settings for a single host while PHP is running as FastCgi/CGI application.
If i run PHP as apache module, i can do it via vhost.conf, for…

Strae
- 457
- 1
- 8
- 22
0
votes
3 answers
Trouble enabling display_error in php.ini
I'm trying to enable PHP error output to the browser. phpinfo() shows that the path to php.ini is /etc/httpd/php.ini. So as root I edited it by adding a line:
display_errors = On
I restarted apache and it still didn't work, phpinfo() was showing…

liewl
- 207
- 2
- 9
0
votes
2 answers
Error reporting in CLI PHP
I've setup php5-cli and everything's working great except I keep getting emails containing deprecated notices such as:
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line…

Ben
- 3,800
- 18
- 65
- 96
0
votes
3 answers
PHP cPanel: Is there a way to change my upload_max_filesize in cPanel (without access to php.ini)?
i would like to be able to upload files larger than 64M. locally, i could set my php.ini file, but it looks like cPanel does not allow that, and rightfully so. i read that ini_set does not work for upload_max_filesize, so i am here asking the…

Garrett
- 203
- 2
- 5
- 10
0
votes
3 answers
apache localhost serving index.html but not serving .php files
When i type
http://localhost/phpinfo.php
into the browser the php is not executed. Instead a file download box opens and asks, "Do you want to open or save this file?" This is happening on all .php files on the localhost.
I believe the php.ini…

trhoades
- 1
- 1
- 1
0
votes
3 answers
php include file
I have a common framework that resides in /var/www/fw/trunk path, and also have a virtual host that resides in /var/www/vhosts/aerosoftware.net/httpdocs/ on a http://aerosoftware.net/ domain.
I changed php.ini include path to…

dfilkovi
- 181
- 2
0
votes
1 answer
How to get PHP date time to use that of the server?
My PHP scripts are currently an hour out due to BST being in operation (GMT+1).
Is there a way of setting php.ini's date.timezone to keep the time correct for BST/DST, without having to manually modify it when the clocks go back?
Alternatively, if…
user34542
0
votes
2 answers
Enable json_decode() on my system
I am developing on a server that I don't really have all that control over... I just started working for a Kiosk company about 3 months ago. I am used to developing on my localhost (MAMP) and porting it to my hosting company.
I recently wrote a…

Derek Adair
- 136
- 1
- 10
0
votes
2 answers
Failure to Update Maximum Upload Limit Set By Hosting Provider and PHP Max Input Vars
Hi I deployed a VM with Wordpress only I can't update the Maximum Upload Limit Set By Hosting Provider value from 2M to 40M.
I also can't update the PHP Max Input Vars value , despite we have modified the (./etc/php/8.1/apache2/php.ini) php.ini and…
0
votes
0 answers
Can't enable the PHP DOM extension
I have a server that has PHP 7.4.3 installed, but it doesn't load PHP-DOM.
It's not listed in php -m or php -i, nor when I load PHP on a page.
Here's what I tried so far:
Ran sudo apt-get install php-xml several times, it installs without a problem…

lastnoob
- 101
0
votes
0 answers
WampServer and error 404
Having just installed Wampserver on my system in order to test a PHP form I have created via Dreamweaver, I'm continually getting the Error 404 message on my screen despite following the installation instructions to the letter.
My OS is Windows 10…

SimplyTheMighty
- 1
- 2