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
-1
votes
1 answer
php.ini Error on "error_reporting"
I found the error by trying to change php.ini.
root:/etc/php5/fpm# php5-fpm -i | grep "post_max"
PHP: syntax error, unexpected '|' in /etc/php5/fpm/php.ini on line 110
post_max_size => 8M => 8M
Line 110 is
109: error_reporting
110: …
![](../../users/profiles/91548.webp)
Case
- 301
- 1
- 4
- 14
-1
votes
2 answers
How to restore php.ini in CentOS
I have a problem in restoring my php.ini in the server. I was changing some line but I accidentally cut off and save.
Any idea how to restore it back?
Environment:
CentOS release 6.3 (Final) x86_64
PHP 5.3.17
![](../../users/profiles/141769.webp)
ninjascorner
- 121
- 1
- 4
-1
votes
1 answer
Steps to add ssl certificate in Virtual private server and PHP configurations
I have a Virtual Private Server(VPS) in CtrlS. I need to add SSL certificate to my VPS server.
What are the steps to add SSL Certificate on VPS?
In my Web Application i have lot of PHP files to respond client Requests.Shall i need to configure my…
![](../../users/profiles/129793.webp)
Ram
- 101
- 3
-1
votes
1 answer
(PHP) Fatal error: Call to undefined function imagettftext()
I have recently updated my server to the latest version of PHP 5.1.27, except now - a few of the scripts
used by my websites come up with the following error:
Fatal error: Call to undefined function imagettftext()
I did build the latest version…
![](../../users/profiles/86484.webp)
James Anderson
- 2,947
- 2
- 16
- 12
-1
votes
2 answers
PDO not showing in phpinfo() with custom php.ini file
I have a custom php.ini file which sets my session.save_path=./
With this file in place, my phpinfo() does not show PDO or PDO mysql being enabled. If I rename the php.ini file, the phpinfo() does show these as being enabled. How can I ensure they…
![](../../users/profiles/218368.webp)
Ashley Bye
- 131
- 1
- 1
- 5
-1
votes
1 answer
PHP performance improvement for 32GB RAM
I have two EC2 instances. One with 1GB RAM and 1vCPU and the second with 32GB RAM and 12vCPU.
I am running a script on cron job but I still have the same performance in both.
I tried changing max_memory, max_connection in php.in and I am using PHP 8…
![](../../users/profiles/572451.webp)
Karthik Malla
- 101
- 3
-2
votes
1 answer
Multiple websites on same server
When running multiple websites on same server:
root/website1
root/website2
root/website3
What should be done to make these websites run intependently - I mean to completely restrict access of PHP (or any other scripting language) to the root folder…
![](../../users/profiles/503526.webp)
acoder
- 101
- 1
-2
votes
1 answer
Apache Extended Logs of php files
I am using apache and I want to log each php or any script file with its location which runs for more than 30 seconds or so. I tried to find solutions extensively, but no luck has come true. Is this possible in apache using any native or any…
![](../../users/profiles/268832.webp)
Hashmi
- 143
- 10
-3
votes
1 answer
Prevent php script from overriding php.ini
How can I prevent php scripts from overriding max_execution_time value ?
Someone found a way to inject malicious code on a server through wordpress... We are in the process of patching the vulnerability. That php code defines…
![](../../users/profiles/288402.webp)
Phlocon
- 1
- 2
-3
votes
2 answers
Server not recognizing that wget is installed on OS X Yosemite
I'm trying to install some software (called Prohits, used for mass spectrometry data management) on a localhost server I set up. One of the requirements for the install is that I have wget installed. So I installed Homebrew and got wget and verified…
![](../../users/profiles/328770.webp)
covfefe
- 113
- 1
- 4
-3
votes
1 answer
PHP Fatal error: Call to undefined function mysql_pconnect()
I'm Having same Problem.
PHP Fatal error: Call to undefined function mysql_pconnect() in
I gone through PHP Fatal error: Call to undefined function mysql_pconnect() in. i have same problem. but noothing works for me.
server details:
php version…
![](../../users/profiles/283692.webp)
Ningappa
- 111
- 4
-3
votes
1 answer
How to block ini_get('disable_functions')
I want to block ini_get('disable_functions') without blocking ini_get() in disable_functions section because when i block ini_get() in my server the roundcube dosen't load, how can i do that?
![](../../users/profiles/180940.webp)
alysa
- 11
- 1
-3
votes
2 answers
Can't install PHP PDO
I have now tried to install PHP PDO in 2 hours without any luck, and i have searched everywhere to get a solution - but without any luck.
yum install php-pdo
doesn't work and i cannot find extension = PDO in php.ini.
have tried updating
yum…
![](../../users/profiles/175794.webp)
kim larsen
- 101
- 3