Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 739501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:24:28+00:00 2026-05-14T08:24:28+00:00

I wish to make a self contained LAMP distro software package from source with

  • 0

I wish to make a self contained LAMP distro software package from source with at least the following:
* php must have mysqli, ldap and GD support
* all required .so’s must be included (like libpng needed by GD) (self contained)

I managed to make one but i keep patching quirks to it, SO i thought to start from a wide-used one like XAMPP but i can’t find the source that builds it (some shell script where it writes all the configure options, involved sources etc).

Where can i find such a script/informations ?

I need this so my users have an easy out of the box install for my software, they are not LAMP admins.

I need the configure options of XAMPP packages or similar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:24:29+00:00Added an answer on May 14, 2026 at 8:24 am

    Here are the configure options that I used to build my own lamp stack.
    They are extracted from CentOS rpm lamp packages.

    # APACHE
    cd httpd-2.2.14/
    ./configure \
    --prefix=/opt/clamp \
    --sysconfdir=/opt/clamp/etc \
    --enable-auth-dbm \
    --enable-cern-meta \
    --enable-auth-digest \
    --enable-charset-lite \
    --enable-deflate \
    --enable-expires \
    --enable-cache \
    --enable-disk-cache \
    --enable-file-cache \
    --enable-headers \
    --enable-info \
    --enable-mime-magic \
    --enable-proxy \
    --enable-proxy-ajp \
    --enable-proxy-balancer \
    --enable-proxy-connect \
    --enable-proxy-ftp \
    --enable-proxy-http \
    --enable-rewrite \
    --enable-so \
    --enable-ssl
    make
    make install
    cd ..
    
    # MYSQL
    cd mysql-5.1.44/
    ./configure \
    --prefix=/opt/clamp \
    --sysconfdir=/opt/clamp/etc \
    --libexecdir=/opt/clamp/sbin \
    --localstatedir=/opt/clamp/var \
    --with-unix-socket-path=/opt/clamp/tmp/mysql.sock
    make
    make install
    cd ..
    
    # LIBS_DEP
    yum install freetype
    yum install freetype-devel
    yum install libjpeg
    yum install libjpeg-devel
    yum install libpng
    yum install libpng-devel
    yum install libXpm
    yum install libXpm-devel
    
    # PHP
    cd php-5.2.13/
    ./configure \
    --prefix=/opt/clamp \
    --sysconfdir=/opt/clamp/etc \
    --with-apxs2=/opt/clamp/bin/apxs \
    --with-config-file-path=/opt/clamp/etc/php.conf \
    --disable-debug \
    --with-pic \
    --disable-rpath \
    --without-pear \
    --with-bz2 \
    --with-curl \
    --with-freetype-dir=/usr \
    --with-png-dir=/usr \
    --enable-gd-native-ttf \
    --without-gdbm \
    --with-gettext \
    --with-gmp \
    --with-iconv \
    --with-jpeg-dir=/usr \
    --with-openssl \
    --with-pspell \
    --with-zlib \
    --with-layout=GNU \
    --enable-exif \
    --enable-ftp \
    --enable-magic-quotes \
    --enable-sockets \
    --enable-sysvsem --enable-sysvshm --enable-sysvmsg \
    --enable-wddx \
    --with-kerberos \
    --enable-ucd-snmp-hack \
    --enable-shmop \
    --enable-calendar \
    --without-sqlite \
    --enable-force-cgi-redirect \
    --enable-pcntl \
    --with-imap --with-imap-ssl \
    --enable-mbstring \
    --enable-mbregex \
    --with-ncurses \
    --with-gd \
    --enable-bcmath \
    --with-xmlrpc \
    --with-ldap --with-ldap-sasl \
    --with-mysql=/opt/clamp \
    --with-mysqli=/opt/clamp/bin/mysql_config \
    --enable-dom \
    --with-pgsql \
    --enable-soap \
    --enable-xmlreader --enable-xmlwriter \
    --enable-fastcgi 
    make
    make install
    
    ln -s /opt/clamp/share/mysql/mysql.server /opt/clamp/bin/mysql.server
    mkdir /opt/clamp/tmp
    /bin/cp -f /root/clamp/use/etc/* /opt/clamp/etc
    /bin/cp -f /root/clamp/use/run /opt/clamp
    /bin/cp -f /root/clamp/use/install /opt/clamp
    
    ./bin/mysql_install_db --user=clamp \
    --basedir=/opt/clamp \
    --datadir=/opt/clamp/var
    
    groupadd clamp
    useradd -g clamp -s /bin/nologin -d /opt/clamp clamp
    chown -R clamp.clamp /opt/clamp
    
    
    # start first !!!!!!!!!
    
    /opt/clamp/bin/mysqladmin -u root -P 3307 password 123clamp456
    /opt/clamp/bin/mysqladmin -u root -p123clamp456 -P 3307 flush-privileges
    
    /opt/clamp/bin/mysql -u root -p123clamp456 -P 3307 -e "CREATE USER 'clamp'@'%' IDENTIFIED BY '123clamp456'";
    /opt/clamp/bin/mysql -u root -p123clamp456 -P 3307 -e "update mysql.user set password = PASSWORD('123clamp456') where user='clamp'";
    /opt/clamp/bin/mysql -u root -p123clamp456 -P 3307 -e "GRANT ALL PRIVILEGES ON *.* TO 'clamp'@'localhost' IDENTIFIED BY '123clamp456'";
    /opt/clamp/bin/mysql -u root -p123clamp456 -P 3307 -e "GRANT ALL PRIVILEGES ON *.* TO 'clamp'@'%' IDENTIFIED BY '123clamp456'";
    /opt/clamp/bin/mysql -u root -p123clamp456 -P 3307 -e "flush privileges";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.