I have a question about PHP, I have php running on my apache webserver and
its
running fine. I can run php pages with SQL backends, but I want to add gd
support to it. According to the directions on the php website I should do
the following. But my biggest problem is I cant find the configure
executable file to recompile it. When I orignaly installed it I did a
pkg_add to install it and it pretty much did everything its self. I will
include a copy of my PHP file structure so maybe you can tell me where this
elusive configure file is. The file structure will be at the bottom of the
mail. If it would be easier for me to call you to sort through this I can do
that, Just let me know.
Example 4-1. Installation Instructions (Apache Shared Module Version) for
PHP
1. gunzip apache_xxx.tar.gz
2. tar -xvf apache_xxx.tar
3. gunzip php-xxx.tar.gz
4. tar -xvf php-xxx.tar
5. cd apache_xxx
6. ./configure --prefix=/www --enable-module=so
7. make
8. make install
9. cd ../php-xxx
10. Now, configure your PHP. This is where you customize your PHP
with various options, like which extensions will be enabled. Do a
./configure --help for a list of available options. In our example
we'll do a simple configure with Apache 1 and MySQL support. Your
path to apxs may differ from our example.
./configure --with-mysql --with-apxs=/www/bin/apxs
11. make
12. make install
If you decide to change your configure options after installation,
you only need to repeat the last three steps. You only need to
restart apache for the new module to take effect. A recompile of
Apache is not needed.
Note that unless told otherwise, 'make install' will also install PEAR,
various PHP tools such as phpize, install the PHP CLI, and more.
13. Setup your php.ini file:
cp php.ini-dist /usr/local/lib/php.ini
You may edit your .ini file to set PHP options. If you prefer your
php.ini in another location, use --with-config-file-path=/some/path in
step 10.
If you instead choose php.ini-recommended, be certain to read the list
of changes within, as they affect how PHP behaves.
14. Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.
For PHP 4:
LoadModule php4_module libexec/libphp4.so
For PHP 5:
LoadModule php5_module libexec/libphp5.so
15. And in the AddModule section of httpd.conf, somewhere under the
ClearModuleList, add this:
For PHP 4:
AddModule mod_php4.c
For PHP 5:
AddModule mod_php5.c
16. Tell Apache to parse certain extensions as PHP. For example,
let's have Apache parse the .php extension as PHP. You could
have any extension(s) parse as PHP by simply adding more, with
each separated by a space. We'll add .phtml to demonstrate.
AddType application/x-httpd-php .php .phtml
It's also common to setup the .phps extension to show highlighted PHP
source, this can be done with:
AddType application/x-httpd-php-source .phps
17. Use your normal procedure for starting the Apache server. (You must
stop and restart the server, not just cause the server to reload by
using a HUP or USR1 signal.)
Files for Package php4-4.4.0
Path Owner Group Type Size Status
/usr/local/man/man1/php-config.1.gz (View)
root wheel Regular File 876 B OK
/usr/local/man/man1/phpize.1.gz (View)
root wheel Regular File 757 B OK
/usr/local/man/man1/php.1.gz (View)
root wheel Regular File 2 kB OK
/usr/local/bin/php (View)
root wheel Regular File 941 kB OK
/usr/local/bin/php-config (View)
root wheel Regular File 564 B OK
/usr/local/bin/phpize (View)
root wheel Regular File 4 kB OK
/usr/local/etc/php.conf (View)
root wheel Regular File 94 B OK
/usr/local/etc/php.ini-dist (View)
root wheel Regular File B OK
/usr/local/etc/php.ini-recommended (View)
root wheel Regular File 39 kB OK
/usr/local/include/php/TSRM/TSRM.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/TSRM/acconfig.h (View)
root wheel Regular File 16 B OK
/usr/local/include/php/TSRM/readdir.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/TSRM/tsrm_config.h (View)
root wheel Regular File 32 B OK
/usr/local/include/php/TSRM/tsrm_config.nw.h (View)
root wheel Regular File 223 B OK
/usr/local/include/php/TSRM/tsrm_config.w32.h (View)
root wheel Regular File 295 B OK
/usr/local/include/php/TSRM/tsrm_config_common.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/TSRM/tsrm_nw.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/TSRM/tsrm_strtok_r.h (View)
root wheel Regular File 115 B OK
/usr/local/include/php/TSRM/tsrm_virtual_cwd.h
(View)
root wheel Regular File 9 kB OK
/usr/local/include/php/TSRM/tsrm_win32.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/FlexLexer.h (View)
root wheel Regular File 5 kB OK
/usr/local/include/php/Zend/acconfig.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend.h (View)
root wheel Regular File 17 kB OK
/usr/local/include/php/Zend/zend_API.h (View)
root wheel Regular File 20 kB OK
/usr/local/include/php/Zend/zend_alloc.h (View)
root wheel Regular File 7 kB OK
/usr/local/include/php/Zend/zend_builtin_functions.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_compile.h (View)
root wheel Regular File 20 kB OK
/usr/local/include/php/Zend/zend_config.h (View)
root wheel Regular File 107 B OK
/usr/local/include/php/Zend/zend_config.w32.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/Zend/zend_constants.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/Zend/zend_dynamic_array.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_errors.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_execute.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/Zend/zend_execute_globals.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/zend_execute_locks.h
(View)
root wheel Regular File 689 B OK
/usr/local/include/php/Zend/zend_extensions.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/Zend/zend_fast_cache.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/Zend/zend_globals.h (View)
root wheel Regular File 6 kB OK
/usr/local/include/php/Zend/zend_globals_macros.h
(View)
root wheel Regular File 3 kB OK
/usr/local/include/php/Zend/zend_hash.h (View)
root wheel Regular File 9 kB OK
/usr/local/include/php/Zend/zend_highlight.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/zend_indent.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_ini.h (View)
root wheel Regular File 9 kB OK
/usr/local/include/php/Zend/zend_ini_parser.h (View)
root wheel Regular File 327 B OK
/usr/local/include/php/Zend/zend_ini_scanner.h
(View)
root wheel Regular File 379 B OK
/usr/local/include/php/Zend/zend_istdiostream.h
(View)
root wheel Regular File 314 B OK
/usr/local/include/php/Zend/zend_language_parser.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/zend_language_scanner.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/zend_list.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/Zend/zend_llist.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/Zend/zend_modules.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/Zend/zend_multibyte.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/Zend/zend_multiply.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/zend_operators.h (View)
root wheel Regular File 10 kB OK
/usr/local/include/php/Zend/zend_ptr_stack.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/zend_qsort.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_stack.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/Zend/zend_static_allocator.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_strtod.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_types.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/Zend/zend_variables.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/acconfig.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/aggregation.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/base64.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/basic_functions.h
(View)
root wheel Regular File 5 kB OK
/usr/local/include/php/ext/standard/crc32.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/ext/standard/credits.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/credits_ext.h
(View)
root wheel Regular File 5 kB OK
/usr/local/include/php/ext/standard/credits_sapi.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/css.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/cyr_convert.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/datetime.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/dl.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/dns.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/exec.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/file.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/ext/standard/flock_compat.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/fsock.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/head.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/html.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/info.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/ext/standard/md5.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/microtime.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/pack.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/pageinfo.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/parsedate.h
(View)
root wheel Regular File 552 B OK
/usr/local/include/php/ext/standard/php_array.h
(View)
root wheel Regular File 3 kB OK
/usr/local/include/php/ext/standard/php_assert.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_browscap.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_crypt.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_dir.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_ext_syslog.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_filestat.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/php_fopen_wrappers.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_ftok.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_image.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/php_incomplete_class.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/php_iptc.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_lcg.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_link.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_mail.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_math.h
(View)
root wheel Regular File 4 kB OK
/usr/local/include/php/ext/standard/php_metaphone.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_parsedate.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_rand.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/php_smart_str.h
(View)
root wheel Regular File 4 kB OK
/usr/local/include/php/ext/standard/php_smart_str_public.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_standard.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/php_string.h
(View)
root wheel Regular File 5 kB OK
/usr/local/include/php/ext/standard/php_type.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/php_var.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/php_versioning.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/quot_print.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/reg.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/scanf.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/sha1.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/uniqid.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/url.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/ext/standard/url_scanner.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/ext/standard/url_scanner_ex.h
(View)
root wheel Regular File 2 kB OK
/usr/local/include/php/main/SAPI.h (View)
root wheel Regular File 8 kB OK
/usr/local/include/php/main/build-defs.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/main/config.nw.h (View)
root wheel Regular File 7 kB OK
/usr/local/include/php/main/config.w32.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/main/fopen_wrappers.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/main/internal_functions_registry.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/main/logos.h (View)
root wheel Regular File 72 kB OK
/usr/local/include/php/main/php.h (View)
root wheel Regular File 11 kB OK
/usr/local/include/php/main/php3_compat.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/main/php_compat.h (View)
root wheel Regular File 5 kB OK
/usr/local/include/php/main/php_config.h (View)
root wheel Regular File 54 kB OK
/usr/local/include/php/main/php_content_types.h
(View)
root wheel Regular File 316 B OK
/usr/local/include/php/main/php_embed.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/main/php_globals.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/main/php_ini.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/main/php_logos.h (View)
root wheel Regular File 348 B OK
/usr/local/include/php/main/php_main.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/main/php_memory_streams.h
(View)
root wheel Regular File 3 kB OK
/usr/local/include/php/main/php_network.h (View)
root wheel Regular File 6 kB OK
/usr/local/include/php/main/php_open_temporary_file.h
(View)
root wheel Regular File 1 kB OK
/usr/local/include/php/main/php_output.h (View)
root wheel Regular File 4 kB OK
/usr/local/include/php/main/php_reentrancy.h (View)
root wheel Regular File 3 kB OK
/usr/local/include/php/main/php_regex.h (View)
root wheel Regular File 883 B OK
/usr/local/include/php/main/php_scandir.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/main/php_streams.h (View)
root wheel Regular File 33 kB OK
/usr/local/include/php/main/php_syslog.h (View)
root wheel Regular File 525 B OK
/usr/local/include/php/main/php_ticks.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/main/php_variables.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/main/php_version.h (View)
root wheel Regular File 235 B OK
/usr/local/include/php/main/rfc1867.h (View)
root wheel Regular File 281 B OK
/usr/local/include/php/main/safe_mode.h (View)
root wheel Regular File 603 B OK
/usr/local/include/php/main/snprintf.h (View)
root wheel Regular File 5 kB OK
/usr/local/include/php/main/spprintf.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/main/win95nt.h (View)
root wheel Regular File 1 kB OK
/usr/local/include/php/regex/cclass.h (View)
root wheel Regular File 968 B OK
/usr/local/include/php/regex/cname.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/regex/regex.h (View)
root wheel Regular File 2 kB OK
/usr/local/include/php/regex/regex2.h (View)
root wheel Regular File 5 kB OK
/usr/local/include/php/regex/regex_extra.h (View)
root wheel Regular File 379 B OK
/usr/local/include/php/regex/utils.h (View)
root wheel Regular File 527 B OK
/usr/local/lib/php/build/Makefile.global (View)
root wheel Regular File 3 kB OK
/usr/local/lib/php/build/acinclude.m4 (View)
root wheel Regular File 50 kB OK
/usr/local/lib/php/build/config.guess (View)
root wheel Regular File 42 kB OK
/usr/local/lib/php/build/config.sub (View)
root wheel Regular File 30 kB OK
/usr/local/lib/php/build/libtool.m4 (View)
root wheel Regular File 121 kB OK
/usr/local/lib/php/build/ltmain.sh (View)
root wheel Regular File 143 kB OK
/usr/local/lib/php/build/mkdep.awk (View)
root wheel Regular File 2 kB OK
/usr/local/lib/php/build/phpize.m4 (View)
root wheel Regular File 2 kB OK
/usr/local/lib/php/build/scan_makefile_in.awk (View)
root wheel Regular File 410 B OK
/usr/local/lib/php/build/shtool (View)
root wheel Regular File 39 kB OK
/usr/local/libexec/apache/libphp4.so (View)
root wheel Regular File 1 MB OK