Read option modules from a file and use it to compile apache and php


Create a shell script that shall build and compile apache ([url removed, login to view]) and php ([url removed, login to view]), it should also read from a text file with a list of options. The OS will be CentOS. One or 2 text files may be used.

It should build apache and php from tar source (not an rpm, nor a source rpm, nor from yum), the tar file will already be on the server (file name/version shall be a variable at the top of the program that can be changed for future use).

Main features:

The script shall be able to build PHP using server API apache, as well as optionally CGI/FastCGI (when apache runs a php script it will run as nobody using the API apache, and as the username of the owner of the script when running with the server API CGI/FastCGI).

Apache should be able to be compiled with or without suexec, and with or without suphp.

The actual modules shall be specified in the configure command, and shortcuts such as the --most option shall not be used, and a bunch of extra modules should not be compiled in.

PHP shall be compiled with any or all of the following options:

'--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zip' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--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/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/[url removed, login to view]' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-tidy=/usr' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

The script to compile php will read from a text file, with the options listed similar to:






where yes means the module will be included in the compile statement and no means it won't be. If there are any common modules/options those do not have to be in the file and can't be part of the configure command by default.

The paths if neccessary for the option can be hardcoded and can vary from the configure command above.

Apache shall be compiled with any or all of the following options:
















These options will be read from a text file, with a yes/no similar to the php section. For common modules, such as modssl, those can be part of the configure command by default and does not have be in the text file.

If I am missing any needed modules for php or apache from the above list, they shall be added to the default command.

The script can rebuild and/or use multiple [url removed, login to view] files where necessary.

2 default users and domains shall be used in virtual hosts sections in the apache config file.

Coder shall create a howto describing how the employer can replicate the setup on another server and assist with the replication if needed.

Any scripts created will be well docuemented and written in bash, perl or python.

Source code and howto will be property of the employer.

Skills: Linux, Shell Script, System Admin

See more: read option specified file, read php file shell script, using regex in c, shared variable, run shell script from php, prefix top, php code for calendar, perl script to zip files, opt it, from quotes, employer quotes, curl python, create shell script, calendar code in php, a. t. and t, sqlite admin, shell bash, regex exif, linux shell scripts, in linux shell script, bash shell scripts, bash file, compile php code, xmlrpc, suexec

Project ID: #4811255

8 freelancers are bidding on average $439 for this job


Hi there, i am very interested to complete this project. please see my past reviews related to system administration lets complete this project

$2268 USD in 4 days
(204 Reviews)

Linux Professional Freelancer.

$147 USD in 3 days
(40 Reviews)

Hi, I can help you. Thanks

$111 USD in 1 day
(62 Reviews)

Hello sir I have done this task a couple of times in my past projects. I'm very much interested in doing this task for you. Thank you for giving your precious time to review my bid and check PM for more details!

$179 USD in 4 days
(7 Reviews)

I can do it.

$128 USD in 1 day
(5 Reviews)

Having more than 8+ experience in design and development in multimedia domain in Software Development and Design with experience in C++, VC++, Qt, Symbian C++ , Design Pattern ,COM,UML,STL,perl,shell script

$166 USD in 4 days
(0 Reviews)

Hey, I can work on this.

$155 USD in 5 days
(0 Reviews)

Can certainly do this, but would like to know what version of centos is the script to be targeted for? Delivery time in my bid is longer than the avg here, but this takes into consideration the unknown centos version a More

$333 USD in 5 days
(0 Reviews)

You need some help I think

$150 USD in 0 days
(0 Reviews)

Bash Script is ready and tested on Centos Written in Bash language (universal Linux OS support) other than Perl and python. Menu driven based. Run time option selection of modules rather than modification of option More

$200 USD in 1 day
(0 Reviews)