a php problem
Mario Beltran <[email protected]>
| Newsgroups | gmane.os.openbsd.www |
|---|---|
| Message-ID | <[email protected]> |
Hello
I have an openbsd 3.6 box and i have intalled php-core-4.38 with
pkg_add i follow this intructions:
To finish the install, enable the php4 module with:
| /usr/local/sbin/phpxs -s
|
| To enable parsing of PHP scripts, add the following to
| /var/www/conf/httpd.conf:
|
| AddType application/x-httpd-php .php
|
| Copy the config file below into /var/www/conf/php.ini
| /usr/local/share/doc/php4/php.ini-recommended
|
| Don't forget that the default OpenBSD httpd is chrooted
| into /var/www by default, so you may need to create support
| directories such as /var/www/tmp for PHP to work correctly.
So, when i try to access with my web-browser a file named index.php in
/var/www/htdocs/ ... I got the text ona no the aplication. something
like this:
<?php
phpinfo();
?>
But when i try with lynx 127.0.0.1/index.php I got this:
PHP Logo
PHP Version 4.3.8
System OpenBSD mrtg.americatelsal.com 3.6
GENERIC#304 sparc64
Build Date Sep 1 2004 15:06:09
Configure Command Built via the OpenBSD Ports Tree
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /var/www/conf/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps,
compress.zlib
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
_______________________________________________________________________________________________________________
PHP Credits
_______________________________________________________________________________________________________________
Configuration
PHP Core
Directive Local Value
Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir /var/www/lib/php/modules
/var/www/lib/php/modules
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/pear/lib:/var/www/pear/lib
.:/pear/lib:/var/www/pear/lib
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv Off Off
register_globals Off Off
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i
/usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
apache
APACHE_INCLUDE no value
APACHE_TARGET no value
Apache Version Apache/1.3.29 (Unix) PHP/4.3.8 mod_ssl/2.8.16
OpenSSL/0.9.7d
Apache Release 10329100
Apache API Version 19990320
Hostname:Port mrtg.americatelsal.com:80
User/Group www(67)/67
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Server Root /var/www
Loaded Modules mod_php4, mod_ssl, mod_keynote, mod_setenvif, mod_so,
mod_auth, mod_access, mod_alias, mod_userdir,
mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex,
mod_include, mod_status, mod_negotiation,
mod_mime, mod_log_config, mod_env, http_core
Directive Local Value Master Value
child_terminate 0 0
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
DOCUMENT_ROOT /var/www/htdocs
HTTP_ACCEPT text/html, text/plain, text/sgml, */*;q=0.01
HTTP_ACCEPT_ENCODING gzip, compress
HTTP_ACCEPT_LANGUAGE en
HTTP_HOST 127.0.0.1
HTTP_USER_AGENT Lynx/2.8.5rel.2 libwww-FM/2.14 SSL-MM/1.4.1
OpenSSL/0.9.7d
PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
REMOTE_ADDR 127.0.0.1
REMOTE_PORT 35944
SCRIPT_FILENAME /var/www/htdocs/index.php
SERVER_ADDR 127.0.0.1
SERVER_ADMIN [email protected]
SERVER_NAME gorgoroth.navegante.com
SERVER_PORT 80
SERVER_SIGNATURE <ADDRESS>Apache/1.3.29 Server at
gorgoroth.navegante.com Port 80</ADDRESS>
SERVER_SOFTWARE Apache/1.3.29 (Unix) PHP/4.3.8 mod_ssl/2.8.16
OpenSSL/0.9.7d
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /index.php
SCRIPT_NAME /index.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /index.php HTTP/1.0
Accept text/html, text/plain, text/sgml, */*;q=0.01
Accept-Encoding gzip, compress
Accept-Language en
Host 127.0.0.1
User-Agent Lynx/2.8.5rel.2 libwww-FM/2.14 SSL-MM/1.4.1
OpenSSL/0.9.7d
HTTP Response Headers
X-Powered-By PHP/4.3.8
Connection close
phpinfo() (p5 of 9)
Content-Type text/html
bcmath
BCMath support enabled
calendar
Calendar support enabled
ctype
ctype functions enabled
dio
dio support enabled
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.118.2.27 2003/12/17
09:08:37 helly Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
ftp
FTP support enabled
gettext
GetText Support enabled
iconv
iconv support enabled
iconv implementation libiconv
iconv library version 1.9
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
phpinfo() (p6 of 9)
iconv.output_encoding ISO-8859-1 ISO-8859-1
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7d 17 Mar 2004
overload
User-Space Object Overloading Support enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003
posix
Revision $Revision: 1.51.2.2 $
session
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
sockets
Sockets Support enabled
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local
Value Master Value
assert.active
1 1
assert.bail
0 0
assert.callback no
value no value
assert.quiet_eval
0 0
assert.warning
1 1
auto_detect_line_endings
0 0
default_socket_timeout
60 60
safe_mode_allowed_env_vars
PHP_ PHP_
safe_mode_protected_env_vars
LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags
a=href,area=href,frame=src,input=src,form=fakeentry
a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no
value no value
tokenizer
Tokenizer Support enabled
wddx
WDDX Support enabled
WDDX Session Serializer enabled
xml
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6
yp
YP Support enabled
zlib
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Module Name
sysvsem
sysvshm
Environment
Variable Value
SSH_CONNECTION 200.13.161.68 64656 200.13.161.11 22
PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
BLOCKSIZE 1k
SHELL /bin/csh
USER mbeltran
SSH_CLIENT 200.13.161.68 64656 22
TERM xterm
_ /usr/sbin/apachectl
SSH_TTY /dev/ttyp0
LOGNAME mbeltran
MAIL /var/mail/mbeltran
HOME /root
PWD /home/mbeltran
PHP Variables
Variable Value
_SERVER["DOCUMENT_ROOT"] /var/www/htdocs
_SERVER["HTTP_ACCEPT"] text/html, text/plain, text/sgml,
*/*;q=0.01
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, compress
_SERVER["HTTP_ACCEPT_LANGUAGE"] en
_SERVER["HTTP_HOST"] 127.0.0.1
_SERVER["HTTP_USER_AGENT"] Lynx/2.8.5rel.2 libwww-FM/2.14
SSL-MM/1.4.1 OpenSSL/0.9.7d
_SERVER["PATH"]
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
_SERVER["REMOTE_ADDR"] 127.0.0.1
_SERVER["REMOTE_PORT"] 35944
_SERVER["SCRIPT_FILENAME"] /var/www/htdocs/index.php
_SERVER["SERVER_ADDR"] 127.0.0.1
_SERVER["SERVER_ADMIN"] [email protected]
_SERVER["SERVER_NAME"] gorgoroth.navegante.com
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.29 Server at
gorgoroth.nevegante.com Port 80</ADDRESS>
_SERVER["SERVER_SOFTWARE"] Apache/1.3.29 (Unix) PHP/4.3.8
mod_ssl/2.8.16 OpenSSL/0.9.7d
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.0
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /index.php
_SERVER["SCRIPT_NAME"] /index.php
_SERVER["PATH_TRANSLATED"] /var/www/htdocs/index.php
_SERVER["PHP_SELF"] /index.php
PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as
published by the PHP Group and included in the distribution in the
file: LICENSE
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact
[email protected].
and my rc.conf has:
httpd_flags="-u"
What should i do for solve this problem?
Thaks in advance
Mario**