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

learn more… | top users | synonyms

0
votes
2answers
1k views

Installed PHP on CentOS, some features not working

I followed this guide to install PHP 5.3 on my CentOS 5 server: http://www.webtatic.com/packages/php53/ I have phpMyAdmin extracted in a directory but it says it can't find the mysql extension. ...
0
votes
1answer
737 views

(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 ...
2
votes
1answer
203 views

Updated php.ini but php.info shows different values

I've updated php.ini using root with some value changes in max time out and upload file size and such, but when I checked mywebsite.com/info.php I don't see the changes on what I've edited. What ...
0
votes
1answer
92 views

php error reporting

I have a problem i have a simple lamp server and i want it to display php errors. (apache2) so i go into my php.ini file and error_reporting = E_ALL | E_STRICT The web says this should do the trick ...
2
votes
1answer
356 views

Suhosin per-URL exceptions?

I am using SimpleID as my OpenID provider and it turns out that if I log on via pages like those on StackExchange, one of the parameters of the GET request gets dropped by Suhosin. The name of the ...
1
vote
0answers
160 views

Zend autoloader not working from PHP config

Is the PHP config file (php.ini) supposed to have something in it that will enable Zend Autoloader support? Cause I am using it in my application and on one server and it's not working (it says it ...
1
vote
4answers
2k views

Unable to upload files larger than 128KB error because of ​MaxRequestLen update

server : Plesk panel 10.3.1, PHP 5, Apache2 When I updated the plesk panel, I noticed a strange error while uploading files. My server does not allow any file to be uploaded above the 128kb, even ...
0
votes
1answer
311 views

why “php -i|grep php.ini” is not finding the correct path to php.ini?

I know that my php.ini is located at /etc/php.ini but when i run php -i|grep php.ini I get this output Configuration File (php.ini) Path => /usr/local/lib there's nothing in that directory and i ...
0
votes
3answers
2k views

PHP enable sqlite phpinfo states --without-sqlite

I've seen similar questions but none that address my situation adequately. I'm running Apache and PHP 5.3.6 on a amazon cloud server. phpinfo keeps stating that sqlite is disabled. At least that ...
7
votes
3answers
9k views

Allow using php_value and php_flag in .htaccess

I am running an Apache web server with PHP5 as a module (notice: as an Apache module, not CGI!). In some of my .htaccess files (the one that comes with the gallery3 software, ...
2
votes
3answers
634 views

Configuring php.ini to prevent attacks

I have been attacked on a shared host server (heartinternet) and they said I should configure my own php.ini file properly. Well I have a little php/MySQL program with a registering function, a ...
4
votes
3answers
174 views

Can't get PHP to stop showing errors

Contrary to most people's problem I cannot get PHP to stop showing errors, I have in my php.ini display_errors set to off but it still shows them, I have also tried .htaccess, and inline ini_set and ...
0
votes
0answers
402 views

Allowed memory size of 262144 bytes exhausted

Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 4864 bytes) I Increased my memory limit to 300mb, and it's still showing this error. I've restarted Apache too. Still ...
0
votes
1answer
733 views

WAMP Installation - Multiple PHP Version Issues

I have installed WAMP because I am attempting to modify an an application which uses Zend Optimizer (I cannot use Z.O. with PHP5.3+, which is why I decided to install WAMP). I downloaded the latest ...
-1
votes
2answers
449 views

PDO not showing in phpinfo() with custom php.ini file [closed]

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 ...
1
vote
3answers
584 views

How to get path of php.ini?

I have currently 3 php.iniS files in my /etc/php5 path. tree: ./php5_ ./php5_/cli ./php5_/cli/conf.d ./php5_/cli/php.ini ./php5_/apache2 ./php5_/apache2/conf.d ./php5_/apache2/php.ini ./php5_/conf.d ...
1
vote
2answers
248 views

max_execution_time (PHP) <- when does it start to count?

I have few very-long-executing scripts, and my max_execution_time is 5 However, when I was taking some information from plus.google.com, it took about five minutes. It all worked well but it was just ...
3
votes
1answer
381 views

PHP DL Function

Is allowing dynamic extension loading dangerous for some reason? I ask because I need it to include the pecl oauth.so extension to make the Google Adwords PHP SDK work using dl(). I've tried all ...
0
votes
1answer
616 views

SMTP implementation on EC2 using Pear Mail package (PHP)

I am working on sending out SMTP relay email's using Gmail as my server using Pear Mail package in PHP. I have installed Pear package using YUM. Also I have located the path for pear_dir and included ...
0
votes
2answers
419 views

PHP as FastCGI: Custom php.ini not working

I'm running PHP as FastCGI (I needed multiple versions of PHP). .htaccess AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php-5.2.17.fcgi cgi-bin/php-5.2.17.fcgi #!/bin/sh ...
0
votes
1answer
83 views

PHP error logging to file, with display_errors OFF

In my PHP.ini, I have it set to log errors to a file, and display_errors is OFF. However, my errors are NEVER being logged... anyone know what common issues are, or what could be preventing them from ...
0
votes
1answer
141 views

How do you share php.ini for a webfarm?

we have a IIS 7.5 webfarm (3 servers ATM) running php. Using web deploy we keep the servers in sync, but this only applies to the files used by the sites and the configuration of the IIS. Is there a ...
0
votes
1answer
900 views

PHP doesn't load php.ini

I have this strange and stupid problem I'm trying to resolve for a couple of hours now. I have installed apache 2.2.10 (it was compiled from source a long time ago), and PHP-5.3.6. Both are working ...
0
votes
1answer
402 views

How to make apache display “only” PHP errors?

Trying without succes to make apache display on screen errors on our development server. Basically I understand that my: error_reporting = E_ERROR & E_RECOVERABLE_ERROR & E_STRICT Has no ...
2
votes
2answers
9k views

Disabling PHP Deprecation Warnings and Notices

I've been using and configuring PHP, but now I'm stuck in a weird problem, so I am going to ask you guys for help. I don't want to see Deprecation Warnings and Notices in a production server, ...
0
votes
1answer
213 views

php GD2 lib uncommented, but still doesn't work!

i have installed Apache/2.2.17 (Win64) PHP/5.2.8-x64 . i need GD2 lib... so i went to php.ini, uncomment php_gd2.dll and restarded server. nothing! gd lib doesn't work! help!
1
vote
2answers
635 views

Able to configure/compile PHP --with-ldap, but LDAP is not listed in phpinfo()

I am trying to compile PHP with LDAP support using these lines: ./configure --prefix=/app/php --with-ldap=/usr sudo make sudo make install Everything appears to install fine without ...
0
votes
2answers
414 views

local php.ini file does not load in IIS 7

I have PHP 5.3.5 installed on IIS 7 which I installed through WebPI (Web Platform Installer). I would like to have some global settings controlled on a site by site basis but I am unable to have the ...
0
votes
0answers
295 views

PDO - WHat is it? How do I enable it on shared hosting

I have a shared hosting account and PHP5 is installed and running. When I view phpinfo, I can see that mysql pdo is running. I think I need to "link" to it from the php.ini file. But I dont know for ...
1
vote
0answers
732 views

Expert opinions on optimal Wordpress PHP settings

I recently decided to include a great system stats plugins with every wordpress install. LINK: http://wordpress.org/extend/plugins/tpc-memory-usage/screenshots/ One of the features of this plugin ...
2
votes
2answers
5k views

How do I configure multiple PHP.INI files on shared host running Apache?

I would like to use a different PHP.INI file for each site hosted on a shared server. I have modified the Apache vhosts file for each of the sites, adding the line… PHPINIDir /srv/www/my-domain.com/ ...
0
votes
1answer
423 views

Install APC on Solaris

I Apache and PHP 5.3 installed from Blastware. I run pecl install apc and everything went ok. apc.so is in the extension library. I declared the extension in php.ini and enabled it with ...
1
vote
2answers
2k views

Changes made to cli's php.ini not taking effect

I have two php.ini files - /etc/php.ini which loads in case of cli /opt/lampp/etc/php.ini which loads in case of browser. I am able to use PHP's Mailparse extension after adding the line ...
0
votes
2answers
3k views

Failed to write session data

I have a VPS running on CentOS 5 with Plesk 9. My website us running on FastCGI. I'm having problems reading / writing sessions. On my servers error_log I get the following errors: (...) Failed to ...
1
vote
1answer
410 views

Issues after upgrading the servers PHP version

I have created my project in Symfony 1.4.8 with Propel ORM. previously server had PHP version 5.2.* and i have upgraded it to 5.3.4, then the problem started giving some error in Propel. the errors ...
5
votes
2answers
7k views

Php.ini disable “Scan this dir for additional .ini files”?

I want to lock my php configuration and disable loading other php configurations rather than the default (which in my case is located at /usr/local/php/lib/php.ini) I want to disable the "Scan this ...
0
votes
1answer
115 views

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 ...
0
votes
2answers
932 views

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 ...
1
vote
1answer
529 views

PHP's SMTP configuration on ubuntu?

http://ca3.php.net/manual/en/mail.configuration.php#ini.smtp Looking at the manual, it specifies that the php.ini option for selecting an SMTP server is a windows-only thing. What do I do to ...
0
votes
1answer
378 views

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 ...
1
vote
1answer
286 views

What do I change in php.ini file so that the sessions are handled in memcache?

I have installed the memcache extension and also memcached. Now what do I need to chance in the php.ini file so that all sessions are handled in memcache?
0
votes
3answers
634 views

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
6
votes
3answers
14k views

php writing deprecated errors to apache error log

I just upgraded from Debian Lenny to Squeeze and noticed that my /var/log/apache2/errors.log is getting bombarded with the following errors: <b>Warning</b>: Directive 'magic_quotes_gpc' ...
0
votes
3answers
3k views

How do I activate SQLite3 on PHP 5.3.3 Centos 5?

I have reviewed the previous questions on this and they don't seem to cover what exactly I'm looking for, before I start, I'm no server admin. I'm trying to help get this server up and active and I ...
0
votes
1answer
1k views

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 ...
0
votes
2answers
514 views

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 ...
2
votes
0answers
2k views

Unable to install ffmpeg-php [closed]

I followed the instructions on http://www.mysql-apache-php.com/ffmpeg-install.htm but ffmpeg-php does not show up in my phpinfo() The commands I ran (in order) #yum install ffmpeg ffmpeg-devel ... ...
1
vote
2answers
1k views

PHP in snow leopard

Snow leopard comes with PHP already installed and configured I am running a web application on a development server which has MAMP and the system runs fine however when I put the application on a ...
2
votes
1answer
402 views

Store session files in different directories in PHP

I have several sites hosted on the same server, in different directories (e.g: server.com/site_one, server.com/site_two) and I want to store the session files for each site in a different directory. ...
1
vote
1answer
119 views

Limit sending emails via php

Is there any way to limit amount of emails user can send per day ? I run different php.ini for every user so ideal would be to limit this in .ini file ty.