Install mysqli without EasyApache?
Good day.
I know that easy apache has the option to add mysqli and everything but, since we installed mssql driver to the server, everytime we try to make the new build there's an error and it reverts to the previous working apache.
This is the error we get:
configure: error: invalid variable name: `echo"--with-mssql'
!! './configure --disable-fileinfo --disable-opcache --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-pdo=shared --enable-sockets --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-curl=/opt/curlssl/ --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-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mysql --with-mysqli --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-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr echo"--with-mssql=/usr/local/freetds" >> /var/cpanel/easy/apache/rawopts/all_php5' failed with exit code '256' !!
!! Restoring original working apache !!
-
I know that easy apache has the option to add mysqli and everything but, since we installed mssql driver to the server, everytime we try to make the new build there's an error and it reverts to the previous working apache.
Hello, Could you let us know the specific steps you took to install the MSSQL driver? Thank you.0 -
Hello, Could you let us know the specific steps you took to install the MSSQL driver? Thank you.
I gave a try on this Definitive FreeTDS installation instructions, but somehow it didn't work. Then i found this one, and it worked for me: How to install mssql php extension on linux or cpanel server? - cPanel - Admin-Ahead Community0 -
mmm... the problem it's the "echo " in the all_php5 file, right? it should contain only "--with-mssql=/usr/local/freetds" (with the ", i suppose) 0 -
Damn, i feel ashamed of myself for not be able to see it before hahaha. Easy Apache built the new stuff correctly now and mysqli is enable. 0 -
mmm... the problem it's the "echo " in the all_php5 file, right? it should contain only "--with-mssql=/usr/local/freetds" (with the ", i suppose)
Easy Apache built the new stuff correctly now and mysqli is enable.
To confirm, yes, the command needs the quotes but the file contents won't include them. I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.0
Please sign in to leave a comment.
Comments
5 comments