Skip to main content

Changing the PHP ./configure commands

Comments

6 comments

  • cPanelMichael
    Hello :) You can use raw opts: EasyApache - Raw Opts Thank you.
    0
  • maggibs
    Thanks Michael, I went onto the Raw Opts page that you gave but it doesn't make any sense to me. Not sure where and what I'm supposed to do. Can you please provide a step by step example of where I need to go and what commands I need to run. Many Thanks.
    0
  • cPanelMichael
    The instructions are intended for administrators with root SSH access. Your access level is listed as "Website Owner". Do you have root access to this server? Thank you.
    0
  • maggibs
    Yes, I have root SSH Access. I am the website owner, administrator and part time developer. I tried locating the file to edit in: For Apache 2.4 " /var/cpanel/easy/apache/rawopts/Apache2_4 For all PHP 5 versions " /var/cpanel/easy/apache/rawopts/all_php5 As those are the versions I am using but I couldn't see any files to modify there, in fact the Apache and all_php5 folders weren't there, I'm not sure whether I would need to create folders with the above names, of create files with some extenstion with the above names. Thats what is confising me. Sorry for being a total dummy, but I don't have that much experience, which is why I would like a breakdown of the Raw Opts process for dummies. Your help is very much appreciated. Many Thanks.
    0
  • maggibs
    Ignore the above post, figured it out... Thanks... I created a blank file called all_php5 then added the following commands in:
    --with-mysql=usr/bin/mysql_config --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
    However it errors out and restores the last working Apache. I noticed a couple of things though: Firstly it still runs the old commands as well as the one I've configured:
    ./configure --with-mysql=/usr --with-mysql=usr/bin/mysql_config --with-mysqli=/usr/bin/mysql_config --with-mysqli=mysqlnd --with-pdo-mysql=shared --with-pdo-mysql=mysqlnd
    Not sure why it does, and whether this is whats causing the rebuild to fail. Don't know how to remove the old commands. Secondly before it restores the previous Apache it gives the following error: checking for specified location of the MySQL UNIX socket... /var/lib/mysql/mysql.sock .onfigure: error: Cannot find MySQL header files under usr/bin/mysql_config Note that the MySQL client library is not bundled anymore! !! './configure --disable-fileinfo --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-intl --enable-libxml --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-wddx --enable-zip --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-bz2 --with-curl=/opt/curlssl/ --with-enchant=/usr --with-freetype-dir=/usr --with-gd --with-gettext --with-icu-dir=/usr --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/ --with-pdo-sqlite=shared --with-pic --with-png-dir=/usr --with-pspell --with-snmp --with-tidy=/opt/tidy/ --with-xmlrpc --with-xpm-dir=/usr --with-xsl=/opt/xslt/ --with-zlib --with-zlib-dir=/usr' failed with exit code '256' !! !! Restoring original working apache !!
    Not sure whats missing. I'd appreciate your help with this again. Many Thanks.
    0
  • cPanelMichael
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.