getting php.tar.gz to work with monkey


Forum: myDSL Extensions (deprecated)
Topic: getting php.tar.gz to work with monkey
started by: ico2

Posted by ico2 on Aug. 15 2004,16:06
how can i make php.tar.gz work with monkey web server?
i tried tar -C / -zxvf php.tar.gz and it copied fine, but how can i get it working?


thanks
ico2

Posted by clacker on Aug. 15 2004,17:16
ico2, When I tried it, I made files for web pages and put then in the /opt/monkey/htdocs directory. Edit the following file and call it test.php:

Code Sample
<html>
<body>

 <?php

 print ("Look at that, PHP works!");

 ?>

</body>
</html>


Run it by viewing localhost/test.php in Dillo or whatever.  Also try this one which prints out all kinds of neat info:

Code Sample
<body>

 <?php

 phpinfo();

 ?>

</body>
</html>


For a nice tutorial look at < PHP from the ground up > which is on webmonkey (no relation to the monkey server in DSL).

Posted by ico2 on Aug. 15 2004,17:21
i tried that but it didn't work, worked fine for html but just displayed the text of php files, i will have another try.
Posted by ico2 on Aug. 15 2004,17:27
the problem was that i started monkey before i installed php, all fixed now, thanks.
Posted by clacker on Aug. 15 2004,17:28
Was money running when you loaded the php.tar.gz file?  If so you might need to stop it and start it again so the monkey knows it's there.
Posted by ico2 on Aug. 15 2004,18:32
yeah, i did that and it worked fine :)

thanks
ico2

Posted by clacker on Aug. 15 2004,18:54
I saw it right after I posted that I cross posted on you by one minute.  You post so fast.  I'm going to have to be quicker when I type.  I've been working with that TuxType dsl to work on it.
Posted by ico2 on Aug. 15 2004,19:12
lol
Posted by b1ackmai1er on July 15 2005,16:37
Hi Everyone,

I am trying to get a bulletin board script to run
using php, sqlite and monkey server.

The bbs is punBB which was mention in another thread.

I have downloaded and installed php-4-monkey-0.91,
installed the punBB script and started the monkey web server,
and can run the install.php script for the php web server.

The web server states that  it supports sqlite (+mysql et el)
but it fails to find it. But it does come up with an option or
mysql which isn't installed.

Is there anything I have to do start or enable sqlite support?

From the install script:
This isuccessfully finds mysql (which isnt installed)
if (function_exists('mysql_connect'))
{
$db_extensions[] = array('mysql', 'MySQL Standard');
This doesnt find sqlite (which is installed)
if (function_exists('sqlite_open'))
$db_extensions[] = array('sqlite', 'SQLite');

Below is my phpinfo() Possible very badly formatted!

Hope somone can shed some light on this

regards b1m1

PHP Version 4.3.7
System Linux box 2.4.26 #1 SMP Sa Apr 17 19:33:42 CEST 2004 i686 Build Date Jun 20 2004 14:58:59
Configure Command './configure' '--prefix=/opt/php' '--exec-prefix=/opt/php'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /opt/php/lib
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp

Configuration

PHP Core
DirectiveLocal ValueMaster Value
allow_call_time_pass_referenceOnOn
allow_url_fopenOnOn
always_populate_raw_post_dataOffOff
arg_separator.input&&
arg_separator.output&&
asp_tagsOffOff
auto_append_fileno valueno value
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetno valueno value
default_mimetypetext/htmltext/html
define_syslog_variablesOffOff
disable_classesno valueno value
disable_functionsno valueno value
display_errorsOnOn
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOnOn
error_append_stringno valueno value
error_logno valueno value
error_prepend_stringno valueno value
error_reportingno valueno value
expose_phpOnOn
extension_dir/opt/php/lib/php/extensions/no-debug-non-zts-20020429/opt/php/lib/php/extensions/no-debug-non-zts-20020429
file_uploadsOnOn
gpc_orderGPCGPC
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_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:/opt/php/lib/php.:/opt/php/lib/php
log_errorsOffOff
log_errors_max_len10241024
magic_quotes_gpcOnOn
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
max_execution_time3030
max_input_time-1-1
open_basedirno valueno value
output_buffering00
output_handlerno valueno valuepost_max_size8M8M
precision1414
register_argc_argvOnOn
register_globalsOffOff
report_memleaksOnOn
safe_modeOffOff
safe_mode_exec_dir/usr/local/php/bin/usr/local/php/bin
safe_mode_gidOffOff
safe_mode_include_dirno valueno value
sendmail_fromno valueno valuesendmail_path/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision100100
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
track_errorsOffOff
unserialize_callback_funcno valueno value
upload_max_filesize2M2M
upload_tmp_dirno valueno value
user_dirno valueno value
variables_orderno valueno value
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn


ctype
ctype functions enabled

mysql
MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value

DirectiveLocal ValueMaster Value
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno valueno value
mysql.default_passwordno valueno value
mysql.default_portno valueno value
mysql.default_socketno valueno value
mysql.default_userno valueno value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff

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

DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.bug_compat_42OnOn
session.bug_compat_warnOnOn
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno valueno value
session.cookie_lifetime00
session.cookie_path//
session.cookie_secureOffOff
session.entropy_fileno valueno value
session.entropy_length00
session.gc_divisor100100
session.gc_maxlifetime14401440
session.gc_probability11
session.namePHPSESSIDPHPSESSID
session.referer_checkno valueno value
session.save_handlerfilesfile
ssession.save_path/tmp/tmp
session.serialize_handlerphpphp
session.use_cookiesOnOn
session.use_only_cookiesOffOff
session.use_trans_sidOffOff

standard

Regex Library Bundled library enabled Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i

DirectiveLocal ValueMaster Valueassert.active11assert.bail00assert.callbackno valueno valueassert.quiet_eval00assert.warning11auto_detect_line_endings00default_socket_timeout60







60safe_mode_allowed_env_varsPHP_PHP_safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_







PATHurl_rewriter.tagsa=href,area=href,frame=src,form=,fieldset=a=href,area=href,frame=src,form=,fieldset=user_agentno valueno value


tokenizer
Tokenizer Support enabled


xml
XML Support active XML Namespace Support active EXPAT Version 1.95.6


Additional Modules
Module Name

Environment

VariableValue
DOCUMENT_ROOT /opt/monkey-0.9.1/htdocs
SERVER_ADDR no value
SERVER_NAME 127.0.0.1
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Monkey/0.9.1 (Linux)
SERVER_SIGNATURE Monkey/0.9.1 Server (Host: 127.0.0.1, Port: 80) HTTP_USER_AGENT Dillo/0.7.3
HTTP_HOST 127.0.0.1
SERVER_PORT 80
GATEWAY_INTERFACE CGI/1.1
REMOTE_ADDR 127.0.0.1
REQUEST_URI /info.php
REQUEST_METHOD GET
SCRIPT_NAME /info.php
SCRIPT_FILENAME /opt/monkey-0.9.1/htdocs/info.php
REMOTE_PORT 60032
QUERY_STRING no value
POST_VARS no value

PHP Variables
VariableValue

_SERVER["DOCUMENT_ROOT"]/opt/monkey-0.9.1/htdocs
_SERVER["SERVER_ADDR"]no value
_SERVER["SERVER_NAME"]127.0.0.1
_SERVER["SERVER_PROTOCOL"]HTTP/1.1
_SERVER["SERVER_SOFTWARE"]Monkey/0.9.1 (Linux)
_SERVER["SERVER_SIGNATURE"]Monkey/0.9.1 Server (Host: 127.0.0.1, Port: 80)
_SERVER["HTTP_USER_AGENT"]Dillo/0.7.3
_SERVER["HTTP_HOST"]127.0.0.1
_SERVER["SERVER_PORT"]80
_SERVER[&;;quot;GATEWAY_INTERFACE"]CGI/1.1
_SERVER["REMOTE_ADDR"]127.0.0.1
_SERVER["REQUEST_URI"]/info.php
_SERVER["REQUEST_METHOD"]GET
_SERVER["SCRIPT_NAME"]/info.php
_SERVER["SCRIPT_FILENAME"]/opt/monkey-0.9.1/htdocs/info.php
_SERVER["REMOTE_PORT"]60032
_SERVER["QUERY_STRING"]no value
_SERVER["POST_VARS"]no value
_SERVER["PHP_SELF"]/info.php
_SERVER["argv"]Array()
_SERVER["argc"]0
_ENV["DOCUMENT_ROOT"]/opt/monkey-0.9.1/htdocs
_ENV["SERVER_ADDR"]no value
_ENV["SERVER_NAME"]127.0.0.1
_ENV["SERVER_PROTOCOL"]HTTP/1.1
_ENV["SERVER_SOFTWARE"]Monkey/0.9.1 Linux)
_ENV["SERVER_SIGNATURE"]Monkey/0.9.1 Server (Host: 127.0.0.1, Port: 80)
_ENV["HTTP_USER_AGENT"]Dillo/0.7.3
_ENV["HTTP_HOST"]127.0.0.1
_ENV["SERVER_PORT"]80
_ENV["GATEWAY
_INTERFACE"]CGI/1.1
_ENV["REMOTE_ADDR"]127.0.0.1
_ENV["REQUEST_URI"]/info.php
_ENV["REQUEST_METHOD"]GET
_ENV["SCRIPT_NAME"]/info.php
_ENV["SCRIPT_FILENAME"]/opt/monkey-0.9.1/htdocs/info.php
_ENV["REMOTE_PORT"]60032
_ENV["QUERY_STRING"]no value
_ENV["POST_VARS"]no value

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.