How do I install mbstring with PHP on CentOS 6.2 I’ve tried: But no packages were found? Answer do the following: under the section updates, comment out the mirrorlist line (put a # in front of the line), then on a new line write: now try: (afterwards you’ll probably want to uncomment the mirrorlist and comment out the baseurl)
Tag: php
CentOS: Enabling GD Support in PHP Installation
How do I go about enabling GD Support in a CentOS Installation? Answer The thing that did the trick for me eventually was: and then restart apache:
ISPConfig 3, a ninja sets my open_basedir
I have a PHP library that I’d like to share to several vhosts on my server, but the open_basedir directive is causing troubles. I use ISPConfig 3 to manage the sites. PHP Warning: include(): open_basedir restriction in effect. File(/var/toaster/latest/__server/core/cms.php) is not within the allowed path(s): ([cut:several paths]) in [cut] on line 5 phpinfo() says: Loaded Configuration File: /etc/php5/cgi/php.ini open_basedir: [cut:several
LAMP error: session_start() failed: No space left on device (28), but
Ubuntu server 10.04, Apache 2.2.14, PHP 5.3.2, MySQL. For the drive where session files are stored: df -h: df -ih: Any ideas? Answer Finally remembered to answer with the solution! Turns out there were too many files in one directory. Had to start hashing the session files into subdirectories.
Gearman , php extension problem : Class ‘GearmanWorker’ not found in .. using terminal but works on browser
I’ve installed gearman on ubuntu 10.04 recently and installed it’s pecl extension. Now , when I run a php file in the browser that contains : I get object(GearmanWorker)#1 (0) { } but when running the a real worker file in terminal (by root) , I get this: The worker code : Please help! Answer Type php –ini at your
Running PHP script from command line as background process
I’m trying to run a PHP script continually in the background via the command line in Linux. I have tried the command php filename.php & but it seems like the script execution terminates very quickly, while it should keep running until the process is terminated. Any suggestions? Answer Are you sure the script doesn’t contain any errors? This is what
How to efficiently monitor a directory for changes on linux?
I am working with Magento, and there is a function that merges CSS and Javascript into one big file. Regardless the pros and cons of that, there is the following problem: The final file gets cached at multiple levels that include but are not limited to: Amazon CloudFront Proxy servers Clients browser cache Magento uses an MD5 sum of the
Apache LOG: child pid xxxx exit signal Segmentation fault (11)
Apache + PHP + Mysql + Linux [notice] child pid 23145 exit signal Segmentation fault (11), possible coredump in /tmp But nothing found under /tmp How can i find the error? Answer Endless loop of the function in PHP code caused this error.
How to load balance a php application?
I am looking for guides, advice, or samples of how to load balance a php application. My setup is Ubuntu 10.04 and PHP 5.3. I have never load balanced servers before and I am looking for any help that is offered. Update: It’s a web application that is expected to have a few hundred users using it at the same
Memcached not showing up in phpinfo()
I’ve installed libmemcached and memcached pecl extension for php and for some reason it’s not installing correctly? i’ve got memcached.so in /usr/lib64/php/ with the right permissions and libmemcache.so in /usr/local/lib/ Everything seemed to build correctly without error, and I restarted apache? i also have the daemon installed. I somehow easily got the Memcache class easily installed for php before, but