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
531 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
85 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
160 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
2k 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
688 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 ...
4
votes
2answers
19k 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
293 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
993 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
516 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 ...
1
vote
0answers
1k 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
7k 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
529 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 ...
2
votes
2answers
3k 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 ...
1
vote
2answers
8k 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
506 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
12k 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
118 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
2k 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
953 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
521 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
375 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
878 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
16k 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' ...
1
vote
3answers
8k 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
625 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 ...
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
747 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
138 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.
0
votes
2answers
3k views

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

PHP upgrading to 5.3.3 - what should I be aware of?

I have a VPS that's hosting half a dozen PHP-based sites. All is OK on php5.2.10 but I want to upgrade to 5.3.3. I have tested the functionality of the sites on my local dev machine running 5.3.1 and ...
-1
votes
3answers
9k views

PHP cPanel: Is there a way to change my upload_max_filesize in cPanel (without access to php.ini)? [closed]

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

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

How can I override global PHP.INI settings on shared hosting?

I have sharring hosting account on Linux Apache PHP with JustHost. In my account exists a global php.ini that only admin of hosting company can access. My problem is that when I run php script the ...
0
votes
3answers
197 views

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 ...
0
votes
1answer
1k views

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

Using separate php.ini files per vhost in Xampp

My web host provides separate php.ini files per web root, which is quite useful as I host some websites which require different PHP settings. But on my dev system where I use Xampp, I can only find a ...
0
votes
4answers
6k views

error in php not logging or displaying

I can not get any errors to display on screen on write to a log file. When check phpinfo() print out I have same value of master a local for display_errors On display_startup_errors On error_log ...
5
votes
1answer
5k views

How To Change What Version of PHP Apache2 Uses?

Ubuntu 10.04, MySQL 5.1, Apache 2.2, and PHP 5.2/5.3: I just discovered that I am using the wrong version of PHP for a CRM application. Once I figured out how to make a simple phpinfo() script to ...
10
votes
2answers
8k views

Separate php.ini file for each Apache virtual host?

Is it possible to have a separate php.ini file that overrides the default php.ini file for each virtual host? I'm running Apache/2.2.14, PHP 5.3.2-1. For example, I have several vhosts pointing to ...
4
votes
4answers
3k views

Do I have to recompile php to enable GD Library?

I have a GD library on my server installed and 'enabled' but under the Configure Command in php.info it says "--without-gd" Is there a way to enable it through root or do I have to recompile? ...
2
votes
2answers
132 views

Is there a way to allow `<?php` and `<?=` open tag but not `<?`?

In PHP I would like to be able to use the <?= open tag (which is similar in effect to <?php echo) but I would also like to disallow the use of the short open tag for any other use than quickly ...
1
vote
1answer
4k views

What should I change in php.ini to enable usage of sqlite from PHP?

At the moment I cannot use sqlite from PHP. Probably I need to change something in my php.ini file. In my php.ini file I found 2 lines containing "sqlite": [sqlite] ;sqlite.assoc_case = 0 Does ...
1
vote
1answer
388 views

PHP throwing XDebug errors ONLY in command line mode

I've been having a few problems running PHP-based utilities within the command line ever since I enabled the XDebug. It runs just fine when executing script through a browser, but once I try an ...
3
votes
3answers
1k views

How do I upload large (30MB) files via a web interface?

Because I'm stumped... The client needs to be able to upload large images to a library but the upload fails after 5-6MB (over my poor connection). It seems to be timing out as the filesize at fail ...
0
votes
2answers
4k views

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

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

How do I get the latest FastCGI and PHP versions to peacefully coexist on IIS 6?

I have been going round and round trying to get any sort of PHP running on IIS 6. I somehow managed to successfully get version 5.1.4 running using the php5isapi.dll file. However, I want to upgrade ...
2
votes
3answers
3k views

php.ini not loading on Windows7 x64

I have manually configured PHP in the past without any problems. Now I'm trying to set up a dev environment with PHP 5.3.1 on Windows 7 x64, and it won't load the php.ini file! I'm new to both ...
1
vote
2answers
2k views

Cannot get PHP PAM authentication to work

This question is split between the realm of SO and SF. It's for a coding project but I believe the error I'm encountering has more to do with system administration than code, so I'll put it here. ...