Page 1 of 1
Do I need all these .ini files?
Posted: Mon Aug 23, 2010 4:15 pm
by intellivision
/etc/php5/apache2/conf.d/imagick.ini,
/etc/php5/apache2/conf.d/mcrypt.ini,
/etc/php5/apache2/conf.d/mhash.ini,
/etc/php5/apache2/conf.d/mysql.ini,
/etc/php5/apache2/conf.d/mysqli.ini,
/etc/php5/apache2/conf.d/pdo.ini,
/etc/php5/apache2/conf.d/pdo_mysql.ini
Any of these strike you as unnecessary for a standard LAMP webserver? No ecommerce, no SSL, just a forum (MySQL) and WordPress (MySQL).
I'm trying to cut down Apache2's voracious memory appetite.
Re: Do I need all these .ini files?
Posted: Mon Aug 23, 2010 5:08 pm
by Eran
This is the PHP inclusion directory. All those configuration files are used for the different extensions they are named after - if you don't need it, simply disable the extensions. This won't help you with Apache memory consumption much though
Re: Do I need all these .ini files?
Posted: Tue Aug 24, 2010 12:16 pm
by intellivision
At this point I'm taking everything I can get. Memory (lack of) is causing unresponsiveness from the server.
Those modules are loaded AFAIK because they're listed in my php_info() page under 'additional .ini files parsed'.
I've disabled all unneeded Apache modules.
My WordPress pages are eating -- minimum -- 27MB per. Yea.
Re: Do I need all these .ini files?
Posted: Tue Aug 24, 2010 3:52 pm
by Eran
wordpress is known to be a memory hog. and 27mb per apache process is not that bad, just make sure you aren't spawning to many processes (you can control that). And if you have a dedicated machine I would assume you also have enough memory to run wordpress...
Re: Do I need all these .ini files?
Posted: Sat Aug 28, 2010 11:48 am
by intellivision
PHP-Extensions: zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, imagick, imap, mcrypt, mhash, mysql, mysqli, PDO, pdo_mysql
Just found this list of extensions that are currently loaded. Anyone spot obvious unnecessary extensions before I type each one into Google to find out if my server needs it?
TIA