Build Matching PHP Binary On Standard Edition

Discussion in 'General' started by masood_y, Apr 8, 2009.

  1. masood_y

    masood_y New Member

    How can Build Matching PHP Binary in standard edition with shell access?
  2. Michael.Terence

    Michael.Terence New Member

    Why not use the web interface? It's handy because it will store the config from your previous build so you can just add or remove as needed down the road.

    For the most part, you can use the web interface to recompile php without causing downtime to any sites hosted. :)

    I'm sure the same is true by using the terminal, but reason #1 is enough for me to use the web interface. :)

    I don't know if it's useful to you but I'm sure down the road someone else may like it... here's the configure options I used during my last build:

    Code:
    --with-litespeed --enable-shmop --enable-track-vars --enable-sysvsem --enable-sysvshm --enable-bcmath --enable-calendar --with-openssl --enable-exif --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-mbstring --enable-pdo --enable-soap --enable-sockets --enable-zip --with-bz2 --with-curl --with-curlwrappers --with-freetype --with-gd --with-gettext --with-imap --with-imap-ssl --with-jpeg-dir=/usr --with-png-dir=/usr --with-libxml --with-mcrypt --with-mhash --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysql --with-mysqli --with-pdo-mysql --with-sqlite --with-pdo-sqlite --with-pic --with-ttf --with-zpm --with-xsl --with-zlib --with-snmp --with-imagick --with-iconv --with-zip --with-curl-ssl --with-xpm-dir=/usr --with-kerberos --enable-suhosin
  3. masood_y

    masood_y New Member

    Because, i cant find "Build Matching PHP Binary" on graphical interface, im using lxadmin and i need to know where is it.
    Do you know?
  4. Michael.Terence

    Michael.Terence New Member

    Hrm... I'm confused now. Just log into your lsws control panel http://<your.ip.address>:7080 (if you changed the port during install change 7080 to your port).

    At the top left you'll see the litespeed logo and a menu just below that. hover over actions, and click on compile php.

    I don't know what you mean by "matching php" - but you can compile both php4 & 5 there.
  5. anewday

    anewday Moderator

    Build Matching PHP only works with cpanel I think.
  6. masood_y

    masood_y New Member

    How can have it on other control panel? Such as directadmin or lxadmin?
  7. masood_y

    masood_y New Member

    Help me please.
  8. Michael.Terence

    Michael.Terence New Member

    I wish I could help but I don't know what you're after. If all you want to do is build a php environment in lsws that matches what you have via DA or lxadmin, then just disable lsws, start apache and open up a phpinfo page and copy the config & paste it into the compile php page in the LS admin console. That'll build a php environment in lsws that "matches" your php environment in DA or whatever.

    /shrug
  9. masood_y

    masood_y New Member

    Thank you very much.
    How can switch from lsws to apache in other control panel?
    Because we just have http://xxx.xxxxxxx.xxx:7080 and i cant see switch button.
    Help me please.
  10. Bono

    Bono New Member

    You should have under using apache configuration file port offset and second way is plugin in cpanel.
  11. Michael.Terence

    Michael.Terence New Member

    if both lsws & apache are configured to use port 80, you can stop litespeed and start apache by doing one of the following, depending on your OS.
    Redhat, centos, etc
    Code:
    service lsws stop
    service httpd start
    if it's not httpd try apache or apache2

    for debian/ubuntu
    Code:
    /etc/init.d/lsws stop
    /etc/init.d/apache2 start

Share This Page