Apache restart does not load new php.ini
Never had this problem till updated CPanel today? Maybe that is part the problem? I only have the one php.ini file # /usr/local/bin/php –info | grep php.ini Configure Command => ‘./configure’ ‘–disable-cgi’ ‘–disable-fileinfo’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-gd-native-ttf’ ‘–enable-libxml’ ‘–enable-magic-quotes’ ‘–enable-mbstring’ ‘–enable-pdo=shared’ ‘–enable-soap’ ‘–enable-sockets’ ‘–enable-zip’ ‘–prefix=/usr/local’ ‘–with-bz2′ ‘–with-config-file-path=/usr/local/lib’ ‘–with-config-file-scan-dir=/usr/local/lib/php.ini.d’ ‘–with-curl=/opt/curlssl/’ ‘–with-curlwrappers’ ‘–with-freetype-dir=/usr’ ‘–with-gd’ ‘–with-imap=/opt/php_with_imap_client/’ ‘–with-imap-ssl=/usr’ ‘–with-jpeg-dir=/usr’ ‘–with-kerberos’ ‘–with-libdir=lib64′ ‘–with-libexpat-dir=/usr’ ‘–with-libxml-dir=/opt/xml2′ ‘–with-libxml-dir=/opt/xml2/’ ‘–with-mcrypt=/opt/libmcrypt/’ ‘–with-mysql=/usr’ ‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-mysqli=/usr/bin/mysql_config’ ‘–with-openssl=/usr’ ‘–with-openssl-dir=/usr’ ‘–with-pcre-regex=/opt/pcre’ ‘–with-pdo-mysql=shared’ ‘–with-pdo-sqlite=shared’ ‘–with-pic’ ‘–with-png-dir=/usr’ ‘–with-pspell’ ‘–with-sqlite=shared’ ‘–with-tidy=/opt/tidy/’ [...]
Continue Reading »Configuring PHP on Solaris 10 64-bit
We are currently running PHP 5.2.13 on a Solaris 10 server. I need to enable some additional features so I went to run the configure script but I’m getting some errors. I did an ‘export CFLAGS=”-m64″‘ to make sure GCC compiled in 64-bit mode, but it looks like I don’t have a 64-bit version of libiconv.so. I’ve tried running the script with ‘–without-iconv’ but no dice. Here’s the end of my config.log: configure:20017: checking for [...]
Continue Reading »php.ini overwrite from project.ini file
Is it possible to separate my changes to the php.ini into a different file, which overwrite the default settings. E.g in my project.ini I wanted to overwrite the maxlifetime? ; Overwrite PHP settings required for Project[Session] ; After this number of seconds, stored data will be seen as ‘garbage’ and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 86400 I have seen some open source websites are packages with the php.ini [...]
Continue Reading »PHP / SSH2 Multi-threading
I’m basically done using SSH2 with PHP. Some may already that while using it, the PHP code actually waits for all the listed commands to be executed in SSH and when everything is done, it then gives back the results. Where that is fine for the work I am doing, but I need some commands to be multi-threaded. $cmd= MyCommand; echo $ssh->exec($cmd); So I just want this to run in parallel 2 times. I googled [...]
Continue Reading »How to determine if PHP-to-Solr connection is slow?
Hi have a LAMP stack connecting to a Solr 3.6.1 server running on CentOS 6.3. While benchmarking my app, I noticed sudden spikes in the time taken for PHP to send a search query to Solr and getting the results back. This time is usually about 20-40 msec and Solr’s QTime is typically 0-30 msec. My benchmark results: Start function msec Creating the query 2.50196456909 msec Executing query and getting results (PHP & Solr) 37.4531745911 [...]
Continue Reading »Install ffmpeg in linux server
Please help me to guide me in how to install ffmpeg and ffmpeg-php extension in linux based server. I surfed a lot in the net. I got lots of answers, all of that says to give some command line script in the linux command promt. I am using the cpanel server and is confused how to do this, also I cant find where to gave these commands. Or is there another way to install it. [...]
Continue Reading »disable viewgit download option
I installed the web browsing interface viewgit on my server, in order to manage my git repositories. Everything works pretty well, but I bothered by the download option of every file. Is there a possibility to disable the download option for some files or projects? Asked by Sven Jung Use the possibility of a .htaccess file in the viewgit directory. You can use this to save every directory. If you call your viewgit site then, [...]
Continue Reading »how to use Linode to host multiple web apps – RoR and PHP
I have a Ruby on Rails application and a couple of PHP projects nearly complete (all using MySQL) that I’d like to host on a Linode server and need some help with what I’d need to install and configure to do this. They would each have their own separate domain (probably with GoDaddy). I’m not looking for a step-by-step instructions – more of a guide of what I should look into and research to be [...]
Continue Reading »ISPconfig found Apache instead of NGINX
I installed ISPConfig and it detected Apache because I didn’t uninstall it when I switched to Nginx. I figured I could just remove apache (httpd) and re-run the update script for ISPconfig, however it still seems to find apache. Is there a way of getting ISPconfig to detect Nginx not Apache. I am surprised it didn’t give me the choice like the documentation suggested it would. Asked by Adripants I had to use the uninstall.php [...]
Continue Reading »CLI SAPI based daemon, PHP app with cronjobs support
I need to build an CLI SAPI based daemon, PHP app with cronjobs support for iOS platform. We have dedicated server. What kind of PHP environment to run this type of PHP applications? Asked by Smart Bird Check PHP CLI SAPI module whether installed <?php if (PHP_SAPI === ‘cli’) { // … } ?> If not installed, then install it Debian Based Server sudo apt-get install php5-cli Redhat/CentOS Based Servers yum install php5-cli and make [...]
Continue Reading »


