Questions tagged [php.ini]

php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.

272 questions
-1
votes
1 answer

Accidently removed all PHP dynamic libraries

I was trying to remove a startup module folder(ioncube) and accidently removed the PHP startup modules/extensions folder (debian) Now I'm getting this PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/pdo.so' -…
Osa
  • 131
  • 1
  • 5
-1
votes
1 answer

Windows Server 2008 R2 Datacenter 64Bit - Apache not starting with PHP module

I am running Windows Server 2008 R2 Datacenter 64Bit. On it I installed Apache 2.2.25-win32-x86-openssl, the Apache server runs fine without a PHP-module. But when I try to load the php-5.2.17-Win32-VC6-x86 module the Apache server does not start…
-1
votes
1 answer

Plesk can't/won't/doesn't-know-how-to reload php.ini

So Plesk is pretty much my daily nightmare but I'm stuck with it. Today's practical joke on me is that it won't seem to load changes I make to the php.ini. I'm trying to get a file's contents (via the appropriately named file_get_contents()) and…
SLD
  • 300
  • 1
  • 9
-1
votes
3 answers

Changing php.ini location for localhost

I'm using localhost to run a website locally; my problem is that I can't get the correct php.ini to load. I have set the Directory and DocumentRoot fields in /etc/apache2/sites-available/default, and restarted the apache2 server. But running…
john-jones
  • 85
  • 14
-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: …
Case
  • 311
  • 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
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…
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…
James Anderson
  • 3,107
  • 2
  • 17
  • 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…
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…
-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…
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…
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…
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…
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…
1 2 3
18
19