php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
Questions tagged [php.ini]
268 questions
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.
![](../../users/profiles/43118.webp)
User4283
- 781
- 3
- 10
- 25
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
![](../../users/profiles/43312.webp)
aneuryzm
- 1,614
- 5
- 25
- 40
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…
![](../../users/profiles/8331.webp)
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…
![](../../users/profiles/21359.webp)
liewl
- 207
- 1
- 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…
![](../../users/profiles/37222.webp)
Ben
- 3,630
- 17
- 62
- 93
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…
![](../../users/profiles/47365.webp)
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…
![](../../users/profiles/49894.webp)
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…
![](../../users/profiles/30928.webp)
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…
![](../../users/profiles/29991.webp)
Derek Adair
- 137
- 1
- 8
0
votes
0 answers
I've set sendmail_path in PHP.ini, and it works fine on the command line, but not when the same script is called from an Apache server?
So I'm trying to do a simple test of some email functions in a PHP (Magento) application, but I'm running into an issue. All I want to do is to store the output from calls to the built-in mail() function into a local file instead of sending it…
0
votes
1 answer
FCGIWrapper not picking up php.ini file path
I'm using Fast CGI with PHP, and it runs great except I just noticed it's not picking up the php ini path. It seems not to pick up the -c argument at all and says no configuration file is loaded when I do phpinfo()
I'm using:
AddHandler fcgid-script…
![](../../users/profiles/27422.webp)
user27422
- 135
- 1
- 7
0
votes
1 answer
php_admin_value on php-fpm pools aren't working
My php-fpm pools look like this (as per https://www.php.net/manual/en/install.fpm.configuration.php#example-24 this is a very valid synthax:)
[vmtest]
prefix = /srv/users/vmtest
user = vmtest
group = vmtest
listen =…
![](../../users/profiles/558080.webp)
CrazyRabbit
- 119
- 1
- 7
0
votes
1 answer
PHP mail() returning FALSE but whole rainloop works - Postfix, Dovecot, PHP 7.3
I had this problem earlier but somehow managed to repair it.
One month after I had to reinstall Dovecot and Postfix and the same error appeared.
In my php.ini which is located at /etc/php/7.3/apache2/ is sendmail_path set to
sendmail_path =…
![](../../users/profiles/795004.webp)
Junek
- 3
- 3