5 users online. Create an account or sign in to join them.Users

Search

Installing Litespeed Web Server, MySQL, and PHP on your Mac OS X machine (also works with Lion)

  • Install Xcode
  • Turn off the default Mac OS X Apache (go to System Preferences > Sharing > “uncheck” Web Sharing
  • Download and install MySQL (http://www.mysql.com/downloads/mysql/)
  • Run sudo installnametool -id /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.dylib
  • Download and install Litespeed Web Server Standard (FREE)

    curl -O http://www.litespeedtech.com/packages/4.0/lsws-4.1.7-std-i386-osx.tar.gz

    tar -xzvf lsws-4.1.7-std-i386-osx.tar.gz

    cd lsws-4.1.7

    sudo ./install.sh

  • Download and compile (sudo ./configure, sudo make, sudo make install) the following libraries...

    • libjpeg - http://www.ijg.org/files/jpegsrc.v8c.tar.gz
    • libpng - http://prdownloads.sourceforge.net/libpng/libpng-1.5.5.tar.gz?download
    • freetype - http://sourceforge.net/projects/freetype/files/freetype2/2.4.7/freetype-2.4.7.tar.gz/download
    • libmcrypt - http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download
    • gettext - ftp://ftp.gnu.org/gnu/gettext/gettext-0.18.tar.gz
    • icu - http://sourceforge.net/projects/icu/files/ICU4C/4.8.1/icu4c-481-src.tgz/download
    • iconv - http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
  • Log into Litespeed Webserver and Compile PHP through Litespeed...

    '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-curl=/usr' '--enable-soap' '--enable-exif' '--with-jpeg-dir=..' '--with-png-dir=..' '--with-freetype-dir=..' '--with-libxml-dir=/usr' '--with-xsl=/usr' '--enable-gd-native-ttf' '--with-ttf' '--enable-libxml' '--enable-xml' '--enable-simplexml' '--enable-wddx' '--enable-sockets' '--enable-bcmath' '--enable-dbase' '--enable-zend-multibyte' '--enable-session' '--with-pcre-regex' '--enable-sigchild' '--enable-magic-quotes' '--enable-zip' '--with-mcrypt=/usr/local/bin/mcrypt' '--with-openssl' '--with-litespeed' '--with-bz2=/usr' '--enable-calendar' '--enable-mbregex' '--enable-sysvmsg' '--with-xmlrpc' '--with-mysqli=/usr/local/mysql/bin/mysqlconfig' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/tmp/mysql.sock' '--enable-pdo' '--with-pdo-mysql=/usr/local/mysql/bin/mysqlconfig' '--with-gettext'

NOTE: Added '--with-freetype-dir=..' to the configure command per wjnielsen's comment below.

bzerangue

Does one need --with-freetype-dir[=DIR] in the compilation for freetype to work or does it default to the correct dir if no customizations to the freetype installation were made?

Does one need --with-freetype-dir[=DIR] in the compilation for freetype to work or does it default to the correct dir if no customizations to the freetype installation were made?

@wjnielsen - Good catch!

Add '--with-freetype-dir=..' to your compile command.

I've updated my original post with this correction.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details