Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:webdev:phpfarm [2015/06/23 01:43] admin [Configuration files] |
vms:webdev:phpfarm [2016/11/29 17:48] (current) admin [Create PHP Execution (wrapper) Scripts] |
||
---|---|---|---|
Line 65: | Line 65: | ||
<color darkslateblue>**/opt/phpfarm/custom/options.sh**</color> | <color darkslateblue>**/opt/phpfarm/custom/options.sh**</color> | ||
- | In our case this files contains: | + | See below for a sample content of such file, it should obviously be adapted to your specific php compile options requierments. |
- | <code> | + | |
- | > sudo nano /opt/phpfarm/custom | + | |
- | + | ||
- | EXTRA_LIBS="$EXTRA_LIBS -lstdc++ " | + | |
- | export EXTRA_LIBS | + | |
- | configoptions="\ | + | |
- | --with-config-file-scan-dir=/opt/phpfarm/inst/php-${version}/conf.d \ | + | |
- | --enable-cli \ | + | |
- | --with-pear \ | + | |
- | --with-iconv \ | + | |
- | --with-mysql=/usr/bin/mysql_config \ | + | |
- | --with-mysql \ | + | |
- | --with-mysqli \ | + | |
- | --with-pdo-mysql \ | + | |
- | --with-libdir=/lib/x86_64-linux-gnu \ | + | |
- | --enable-ftp \ | + | |
- | --with-gd \ | + | |
- | --enable-gd-native-ttf \ | + | |
- | --with-mcrypt \ | + | |
- | --with-mhash \ | + | |
- | --enable-soap \ | + | |
- | --with-curl \ | + | |
- | --with-zlib \ | + | |
- | --with-zlib-dir \ | + | |
- | --enable-mbstring \ | + | |
- | --with-jpeg-dir=/usr/lib/x86_64-linux-gnu \ | + | |
- | --with-png-dir=/usr/lib/x68_64-linux-gnu \ | + | |
- | --with-gettext \ | + | |
- | --with-mhash \ | + | |
- | --enable-bcmath \ | + | |
- | --enable-sockets \ | + | |
- | --enable-cgi \ | + | |
- | --enable-calendar \ | + | |
- | --enable-zip \ | + | |
- | --enable-pcntl \ | + | |
- | --enable-wddx \ | + | |
- | --with-bz2 \ | + | |
- | --enable-mysqlnd \ | + | |
- | --enable-intl \ | + | |
- | --with-icu-dir=/usr \ | + | |
- | --with-openssl \ | + | |
- | " | + | |
- | </code> | + | |
It is also possible to create per-version custom options file by specifying the version number in the file name:\\ | It is also possible to create per-version custom options file by specifying the version number in the file name:\\ | ||
Line 168: | Line 125: | ||
<code> | <code> | ||
date.timezone=Europe/Brussels | date.timezone=Europe/Brussels | ||
+ | extension_dir="$ext_dir" | ||
include_path=".:/opt/phpfarm/inst/php-$version/pear/php/" | include_path=".:/opt/phpfarm/inst/php-$version/pear/php/" | ||
</code> | </code> | ||
Line 241: | Line 199: | ||
<WRAP center round info 90%> | <WRAP center round info 90%> | ||
- | It is important to note that for suEXEC to allow execution of a cgi (wrapper)script, the containing directory, as well as the executable files, must all have the same owner as the one executing the suEXEC call (see SuexecUserGroup in the Apche's virtual host's config file).\\ | + | It is important to note that for suEXEC to allow execution of a cgi (wrapper)script, the containing directory, as well as the executable files, must all have the same owner as the one executing the suEXEC call (see SuexecUserGroup in the Apache's virtual host's config file).\\ |
Also, this directory, as well as the executable files it contains, cannot be writable by anyone but their owner.\\ | Also, this directory, as well as the executable files it contains, cannot be writable by anyone but their owner.\\ | ||
Please pay attention to this, as it might result in apache throwing internal error 500 when trying to run a wrongly owned script. | Please pay attention to this, as it might result in apache throwing internal error 500 when trying to run a wrongly owned script. | ||
Line 261: | Line 219: | ||
$ ls -la /home/<username>/Documents/webdev/www | $ ls -la /home/<username>/Documents/webdev/www | ||
total 28 | total 28 | ||
- | drwxr-xr-x 2 thibaut thibaut 4096 May 4 07:36 . | + | drwxr-xr-x 2 user group 4096 May 4 07:36 . |
- | drwxr-xr-x 4 thibaut thibaut 4096 May 4 07:25 .. | + | drwxr-xr-x 4 user group 4096 May 4 07:25 .. |
- | -rw-r--r-- 1 thibaut thibaut 210 May 4 07:29 php-cgi-5.2.17 | + | -rw-r--r-- 1 user group 210 May 4 07:29 php-cgi-5.2.17 |
- | -rw-r--r-- 1 thibaut thibaut 211 May 4 07:34 php-cgi-5.3.27 | + | -rw-r--r-- 1 user group 211 May 4 07:34 php-cgi-5.3.27 |
- | -rw-r--r-- 1 thibaut thibaut 211 May 4 07:35 php-cgi-5.4.27 | + | -rw-r--r-- 1 user group 211 May 4 07:35 php-cgi-5.4.27 |
- | -rw-r--r-- 1 thibaut thibaut 209 May 4 07:35 php-cgi-5.4.4 | + | -rw-r--r-- 1 user group 209 May 4 07:35 php-cgi-5.4.4 |
- | -rw-r--r-- 1 thibaut thibaut 211 May 4 07:36 php-cgi-5.5.11 | + | -rw-r--r-- 1 user group 211 May 4 07:36 php-cgi-5.5.11 |
</code> | </code> | ||