On Tue, Apr 10, 2012 at 8:06 PM, Shawn McKenzie <nospam@xxxxxxxxxxxxx> wrote: > On 04/10/2012 12:25 PM, George R Smith wrote: >> Matijin and Shawn, >> >> I added to /etc/php5/apache2/php.ini the line >> extension_dir = "/usr/lib/php5/20090626+lfs" >> >> but when I run qm_ext_build I still get >> You need to create the php extensions directory: >> /usr/lib/php5/20090626+lfs no >> >> could the error be in the qm_ext_build script. Here is the >> section of code producing the error. >> >> echo --- >> echo get the directory where PHP extension are stored >> echo --- >> EXTDIR=`php -i 2> /dev/null | grep -i "extension_dir" | cut -d" " -f3` >> if [ ! -d "$EXTDIR" ]; then >> echo -n -e "\n" >> echo ============================================================ >> echo You need to create the php extensions directory: >> echo $EXTDIR >> echo ============================================================ >> echo -n -e "\n" >> exit >> fi >> >> When I run manually I get: >> root@dell350:/usr/qmsys/qmphp# php -i 2> /dev/null | grep -i >> "extension_dir" | >> cut -d" " -f3 >> /usr/lib/php5/20090626+lfs >> no >> root@dell350:/usr/qmsys/qmphp# >> >> I am doing this so I can connect the database I use and have only been >> studying PHP >> for 5 days. >> >> I have attached a file with the results of php -I and the build script. >> >> Thanks again >> George >> >> >> >> -----Original Message----- From: Matijn Woudt >> Sent: Tuesday, April 10, 2012 11:05 AM >> To: Shawn McKenzie >> Cc: George R Smith ; php-general@xxxxxxxxxxxxx >> Subject: Re: Re: Script failing on extension_dir >> >> On Tue, Apr 10, 2012 at 5:18 PM, Shawn McKenzie <nospam@xxxxxxxxxxxxx> >> wrote: >>> On 04/09/2012 03:16 PM, George R Smith wrote: >>>> EXTDIR=`php -i 2> /dev/null | grep -i "extension_dir" | cut -d" " -f3` >>>> >>>> Error message follows, what does the no mean ? >>>> get the directory where PHP extension are stored >>>> ============================================================ >>>> You need to create the php extensions directory: >>>> /usr/lib/php5/20090626+lfs no >>>> ============================================================ >>> >>> There is something wrong with the cut where it is getting a 'no' from >>> the next line. No time to test fixing that now but the simple fix on >>> your machine is this: >>> >>> EXTDIR="/usr/lib/php5/20090626+lfs" >>> >> >> While I agree that it will fix the problem, it does sound suspicious. >> You can check what php -i returns, to check if there is any problem >> with your PHP configuration. > There's a bug in the qm_ext_build script. It tries to find extension_dir in php ini config, but it also finds sqlite3.extension_dir, which is set to No value, where it gets the 'no' from. You can continue with the suggestion made by Shawn, your PHP config seems fine. - Matijn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php