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

2
votes
2answers
2k views

sed php.ini memory_limit

The following works great: phpmemory_limit=256M #or what ever you want it set to sed -i 's/memory_limit = 16M/memory_limit = '${phpmemory_limit}'/' /etc/php5/apache2/php.ini If the memory_limit is ...
0
votes
2answers
595 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 ...
1
vote
2answers
813 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 ...
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 ...
1
vote
2answers
5k views

php-gd installed but gd not showing up in phpinfo on CentOS 5.3 server running nginx

Logged in as root, I installed the php-gd libraries using $ yum install php-gd it said everything worked fine, so i did $ /etc/init.d/nginx restart But the code I had been working on still ...
0
votes
2answers
329 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 ...
0
votes
1answer
2k 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 ...
1
vote
1answer
5k 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 ...
2
votes
2answers
544 views

How do I get Apache to use a different local PHP.ini for different domains?

is there some sort of .htaccess directive. I dont have access to httpd.conf. I have php5 in a fastcgi/cgi module. Multiple domains. But for some reason all the domains are pointing to the first ...
0
votes
1answer
115 views

How do you setup your domains to use same php.cgi but different PHP.ini

I thought I had this figured out. I built a php.cgi, but rather than have a copy of php.cgi in the /cgi-bin/ dir for each domain I have. I create a sym link to a common directory so they could all ...
0
votes
3answers
715 views

How do I get linux server to use local PHP.ini in a shared environment?

I'm on shared server environment (Dreamhost.com uses Linux/Debian). I followed their instructions here on setting up a local PHP5 instance on my user account so that I could use APC (php5 ...
0
votes
1answer
2k views

How do you configure the mime_content_type() function to work correctly in php5?

I have a ubuntu 9.04 desktop that i'm using for my development machine with apache2 installed. What are the steps that I need to go through to ensure that the mime types for files are determined ...
8
votes
8answers
32k views

How to configure php.ini with remote SMTP?

How do I configure PHP to send mail using mail() via a remote SMTP server? I've tried to do this using php.ini but it seems that you can only do that under Windows32 and I want to do this on my Unix ...
1
vote
5answers
1k views

User Specific Php.ini When php is ran as a module?

I have a php setting that can only be changed in the ini file. I can't change this setting in the global php.ini due to conflicts, so I'll need to have this user specific. Can this be done if php is ...
9
votes
4answers
72k views

How do I enable SQLite on Linux/Apache/PHP?

To enable SQLite on my Windows/Apache/PHP setup, I uncomment the following lines in the php.ini file and restart Apache: extension=php_pdo.dll extension=php_pdo_sqlite.dll Now I have a VPS with ...
0
votes
2answers
2k views

How can I make the Apache/PHP setup on my VPS show PHP errors and warnings?

I've got a VPS using Suse Linux 10.3. Apache 2 / PHP 5.2.6 was set up automatically. When I look at this valid PHP file in a browser, it displays correctly: <?php echo 'this is test'; ?> ...