#25767 [Opn->Fbk]: Apache will not start with PHP Modules
| From: | sniper@php.net | Date: | Mon, 06 Oct 2003 22:25:12 +0000 |
| Subject: | #25767 [Opn->Fbk]: Apache will not start with PHP Modules | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48613@lists.php.net to get a copy of this message | ||
ID: 25767
Updated by: sniper@php.net
Reported By: colin dot harford at ualberta dot ca
-Status: Open
+Status: Feedback
-Bug Type: *General Issues
+Bug Type: Apache2 related
Operating System: OpenBSD -current
PHP Version: 4.3.4RC1
New Comment:
Use this snapshot, and EXACTLY this one:
http://snaps.php.net/php4-STABLE-latest.tar.gz
And make sure those 2 lines are the 2 LAST lines in your httpd.conf.
If this still fails, start apache in gdb:
# gdb httpd
(gdb) r -DONE_PROCESS
Then you might see more what's going on.
Previous Comments:
------------------------------------------------------------------------
[2003-10-06 15:02:25] colin dot harford at ualberta dot ca
Errr. The line:
in my httpd.conf. If the lines are uncommented, apache will start.
should be:
in my httpd.conf. If the lines are uncommented, apache will NOT
start.
Sorry for any confusion.
CH
------------------------------------------------------------------------
[2003-10-06 15:00:37] colin dot harford at ualberta dot ca
Description:
------------
Machine Information:
# gcc -v
Reading specs from
/usr/lib/gcc-lib/i386-unknown-openbsd3.4/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease, propolice)
i386 running OpenBSD with Apache 2.0.47.
I have the same problem with PHP-4.3.3 and PHP-4.3.4-RC1
PHP is compiled with: ./configure --enable-sockets
--with-mysql=/opt/db/mysql/ --with-apxs2=/opt/apache2/bin/apxs
What happens, is that when I have the lines:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
in my httpd.conf. If the lines are uncommented, apache will start.
I changed apache debug level to debug, however, there is no errors on
screen or in the error_log.
I have tried both php.ini-dist and php.ini-recommended. Neither of
which have any effect on it.
What I was expecting quite simply is for apache and php to load. I
have rebuilt apache and php to new locations as well, ran make
distcleans before doing the installs.
Thanks,
CH
FYI only with snapshost:
I tried to compile the snapshot, but run into errors with that. FYI
only, it is:
(external!/opt/php4-200310061730)
# make
/bin/sh /opt/php4-200310061730/libtool --silent --preserve-dup-deps
--mode=link gcc -export-dynamic -g -O2 -avoid-version -module
-L/opt/db/mysql//lib/mysql -R /opt/db/mysql//lib/mysql
ext/ctype/ctype.lo ext/mysql/php_mysql.lo ext/overload/overload.lo
ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo
ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo
ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo
ext/session/mod_mm.lo ext/session/mod_user.lo ext/sockets/sockets.lo
ext/standard/array.lo ext/standard/base64.lo
ext/standard/basic_functions.lo ext/standard/browscap.lo
ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo
ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo
ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo
ext/standard/filestat.lo ext/standard/flock_compat.lo
ext/standard/formatted_print.lo ext/standard/fsock.lo
ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo
ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo
ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo
ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo
ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo
ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo
ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo
ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo
ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo
ext/standard/versioning.lo ext/standard/assert.lo
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo
ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo
ext/standard/css.lo ext/standard/var_unserializer.lo
ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo
ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo
ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo regex/regcomp.lo
regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo
TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo
main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo
main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo
main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo
main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo
main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo
main/php_open_temporary_file.lo main/php_logos.lo main/output.lo
main/memory_streams.lo main/user_streams.lo
Zend/zend_language_parser.lo Zend/zend_language_scanner.lo
Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo
Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo
Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo
Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo
Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo
Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo
Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo
Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo
main/internal_functions_cli.lo -lmysqlclient -lm -o sapi/cli/php
ext/standard/filestat.lo: In function `php_stat':
/opt/php4-200310061730/ext/standard/filestat.c:575: undefined reference
to `php_check_open_basedir_ex'
collect2: ld returned 1 exit status
*** Error code 1
Stop in /opt/php4-200310061730 (line 169 of Makefile).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25767&edit=1