php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
0
votes
3answers
365 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
...
0
votes
2answers
356 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
...
1
vote
2answers
186 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
344 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
158 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!
0
votes
1answer
506 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
1answer
80 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
119 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
668 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
290 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 ...
1
vote
2answers
5k 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
341 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
446 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 ...
1
vote
0answers
585 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 ...
1
vote
1answer
302 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 ...
0
votes
1answer
112 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 ...
1
vote
1answer
355 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 ...
0
votes
2answers
331 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 ...
9
votes
2answers
5k 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 ...
0
votes
0answers
210 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
1answer
4k views
How do you change the “scan this dir for additional ini files” path?
I managed to get the custom INI to load, but its still loading other .ini files from the default location.
I created an fcgi wrapper that passed the ini value as a parameter. That worked. Now just ...
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 ...
1
vote
1answer
454 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
306 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 ...
0
votes
0answers
457 views
WAMP: failed to open stream: No such file or directory
I'm trying to upload a file using PHP. My HTML page with the form is stored at C:\wamp\www\myproject\upload.html, the PHP page is C:\wamp\www\myproject\upload.php, and the file I'm trying to upload is ...
0
votes
1answer
250 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
538 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
12k 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
2answers
2k 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
1k views
How to modify allow_url_fopen Local Value
This is a question about PHP configuration on a LAMP server.
I want to turn off allow_url_fopen on one virtual host but not the other (i.e. can't turn it off globally in php.ini). The other day I had ...
0
votes
1answer
859 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
412 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
1answer
106 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.
1
vote
1answer
6k views
Php.ini: Local Value vs Master Value (safe_mode, specifically)
I can change php.ini values on my Apache and restart to see them in effect via a script showing php_info(). However, one setting is causing problems: safe_mode. I set it to "off" in php.ini but ...
2
votes
1answer
338 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.
...
0
votes
2answers
1k 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
122 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 ...
0
votes
3answers
577 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 ...
0
votes
3answers
169 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
609 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
584 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
2answers
541 views
CPU spikes on small site- possibly apache or php config related
I hope you can help me. I have a site that I'm moving to a new datacenter. The server is pretty much vanilla, no control panel, and also no optimizations. When I hit a page, the site takes an ...
2
votes
3answers
2k 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 ...
5
votes
1answer
1k 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 ...
4
votes
4answers
2k 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?
...
3
votes
3answers
869 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
501 views
PHP 5.2.11: Unable to load dynamic library complaints
I installed PHP 5.2.11 and upon enabling the php_mssql.dll module (and the obligatory restart of the services) started receiving warnings about not being able to load the dynamic library. The ...
0
votes
1answer
3k 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
2answers
344 views
is there any way to find out how I was hacked? What was the weak point?
one of my site hacked few times :( first I lost all databases, some tables were cleared and some of table's data had changed! than at the second hack, all tables were cleared and some php files' codes ...
0
votes
1answer
205 views
Where are the settings of xcache?
I'm on Dreamhost PS, using their preset xcache. I need to increase the size of the var memory but can't find the definitions for xcache. Its not in the php.ini file. I searched for xcache files and ...