 |
Forum PHP Romania - Discutii despre PHP, MySQL, Javascript, AJAX, etc Comunitatea PHP Romania
|
| Subiectul anterior :: Subiectul următor |
| Autor |
Mesaj |
radul
Data înscrierii: 08/Feb/2008
Mesaje: 3
|
| Trimis: Vin Feb 08, 2008 4:07 pm Titlul subiectului: exec script php din https, pe Server API CGI |
|
|
Salut, am o mare problema ce ma tot chinuie de ceva timp..
Vreau sa execut un script php ce se afla in htetepesdocs/folder/ in site-ul meu, dintr-un alt fisier php cu aceeasi locatie.
Fisierul test.php apeleaza la un moment dat:
exec("/usr/bin/php -q /home/vhost/nume-site{punct}net/htetepesdocs/folder/tmp.php 2>&1 > /dev/null");
tmp.php (care ar trebui sa scrie ceva intr-un alt fisier de test) nu se executa niciodata, ba mai mult serverul ingheata de tot si se pare ca sint rulate mai multe procese ce-l fac sa se blocheze..
Functia exec() nu este dezactivata (safe mode este OFF) si poate rula un .pl de exemplu, dar nu .php.
Serverul API este CGI, fisierele si locatiile lor au drepturi 755, totul pare ok, problema poate fi insa la configuratiile serverului..
Se pare ca nu am optiune aici de a atasa ceva, asa ca voi da mai jos copy/paste la 3 fisiere ce mi se par a fi de ajutor.
Daca cineva a mai avut problema asta sau are vreo idee de la ce ar putea fi..il rog mult sa-mi dea un raspuns.
Multumesc!
[hteteped.conf] (am mai sters din comentarii si alte setari irelevante)
******************************************************
ServerRoot "/usr/local/apache"
#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
#LockFile logs/accept.lock
</IfModule>
</IfModule>
<IfModule !mpm_netware.c>
<IfModule !perchild.c>
#ScoreBoardFile logs/apache_runtime_status
</IfModule>
</IfModule>
#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
<IfModule !mpm_netware.c>
PidFile logs/hteteped.pid
</IfModule>
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
# perchild MPM
# NumServers: constant number of server processes
# StartThreads: initial number of worker threads in each server process
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# MaxThreadsPerChild: maximum number of worker threads in each server process
# MaxRequestsPerChild: maximum number of connections per server process
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
# BeOS MPM
# StartThreads: how many threads do we initially spawn?
# MaxClients: max number of threads we can have (1 thread == 1 client)
# MaxRequestsPerThread: maximum number of requests each thread will process
<IfModule beos.c>
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
</IfModule>
# NetWare MPM
# ThreadStackSize: Stack size allocated for each worker thread
# StartThreads: Number of worker threads launched at server startup
# MinSpareThreads: Minimum number of idle threads, to handle request spikes
# MaxSpareThreads: Maximum number of idle threads
# MaxThreads: Maximum number of worker threads alive at the same time
# MaxRequestsPerChild: Maximum number of requests a thread serves. It is
# recommended that the default value of 0 be set for this
# directive on NetWare. This will allow the thread to
# continue to service requests indefinitely.
<IfModule mpm_netware.c>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
MaxMemFree 100
</IfModule>
# OS/2 MPM
# StartServers: Number of server processes to maintain
# MinSpareThreads: Minimum number of idle threads per process,
# to handle request spikes
# MaxSpareThreads: Maximum number of idle threads per process
# MaxRequestsPerChild: Maximum number of connections per server process
<IfModule mpmt_os2.c>
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 0
</IfModule>
Listen 80
Listen 8090
Include /usr/local/apache/conf/modules.d/*.conf
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
User nobody
Group #-1
</IfModule>
</IfModule>
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin{at}your-domain{punct}com
#
ServerAdmin postmaster{at}xx-yy{punct}com
ServerName veveve.xx-yy{punct}com
UseCanonicalName Off
DocumentRoot "/usr/local/apache/htdocs"
<Directory />
Options FollowSymLinks +Includes
AllowOverride All
</Directory>
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit Indexes
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
UserDir public_html
DirectoryIndex index.html index.html.var index.shtml index.php
#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
CustomLog logs/access_log common
ServerTokens Full
ServerSignature On
Alias /icons/ "/usr/local/apache/icons/"
<Directory "/usr/local/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/local/apache/manual$1"
<Directory "/usr/local/apache/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
<IfModule mod_cgid.c>
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock logs/cgisock
</IfModule>
#
# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
#
# For files that include their own htetepe headers:
#
#AddHandler send-as-is asis
#
# For server-parsed imagemap files:
#
#AddHandler imap-file map
#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
# to be distributed in multiple languages.)
#
AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
# The following directives modify normal htetepe response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
#
# Bring in additional module-specific configurations
#
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
### Section 3: Virtual Hosts
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerAdmin webmaster{at}my_site_name{punct}net
ServerName my_site_name{punct}net
ServerAlias veveve.my_site_name{punct}net
DocumentRoot /home/vhost/my_site_name{punct}net/htetepedocs
ScriptAlias /cgi-bin/ /home/vhost/my_site_name{punct}net/cgi-bin/
ErrorLog /home/vhost/my_site_name{punct}net/logs/error.log
CustomLog /home/vhost/my_site_name{punct}net/logs/access.log combined
ScriptAlias /z11wn3lS/ /usr/share/awstats/cgi-bin/
Alias /stats-icons/ /home/awstats/icon/
suPHP_UserGroup myusername sweb
<Location />
suPHP_Engine on
suPHP_AddHandler x-hteteped-php
suPHP_AddHandler x-hteteped-php5
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster{at}my_site_name{punct}net
ServerName my_site_name{punct}net
ServerAlias veveve.my_site_name{punct}net
DocumentRoot /home/vhost/my_site_name{punct}net/htetepesdocs
ErrorLog /home/vhost/my_site_name{punct}net/logs/error_ssl.log
CustomLog /home/vhost/my_site_name{punct}net/logs/access_ssl.log combined
suPHP_UserGroup myusername sweb
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/apache/certificates/veveve.my_site_name{punct}net.crt
SSLCertificateKeyFile /usr/local/apache/certificates/veveve.my_site_name{punct}net.key
<Location />
suPHP_Engine on
suPHP_AddHandler x-hteteped-php
suPHP_AddHandler x-hteteped-php5
</Location>
</VirtualHost>
**********************************************
/etc/suphp.conf
**********************************************
[global]
;Path to logfile
logfile=/usr/local/apache/logs/suphp_log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=nobody
;Path all scripts have to be in
docroot=/home
;Path to chroot() to before executing script
;chroot=/mychroot
; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true
;Send minor error messages to browser
errors_to_browser=false
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0077
; Minimum UID
min_uid=99
; Minimum GID
min_gid=99
[handlers]
;Handler for php-scripts
x-hteteped-php=php:/usr/local/php5/bin/php
;Handler for CGI-scripts
x-suphp-cgi=execute:!self
**********************************************
phpinfo()
*********************************************
phpinfo()PHP Version 5.1.6
System Linux mail.my_site_name 2.6.20-1.2320.fc5 #1 Tue Jun 12 18:50:38
EDT 2007 i686
Build Date Nov 20 2006 22:15:41
Configure Command './configure' '--with-openssl=/usr/local/ssl/'
'--enable-calendar' '--with-mysql=/usr/' '--with-mysqli'
'--enable-mbstring' '--with-gd' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr' '--with-zlib' '--enable-ftp'
'--with-mcrypt=/usr/lib/mcrypt/' '--with-mhash=/usr/local/mhash/'
'--with-xpm-dir=/usr/X11R6/' '--enable-force-cgi-redirect'
'--with-freetype-dir=/usr/' '--with-xsl' '--prefix=/usr/local/php5'
'--with-curl=/usr/' '--with-gettext=/usr/'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/php5/lib/php.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, htetepe, ftp, compress.zlib, htetepes, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3,
sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
PHP Credits
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_globals_jitOnOn
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_reporting20392039
expose_phpOnOn
extension_dir././
file_uploadsOnOn
highlight.bg#FFFFFF#FFFFFF
highlight{punct}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.:/usr/local/php5/lib/php.:/usr/local/php5/lib/php
log_errorsOffOff
log_errors_max_len10241024
magic_quotes_gpcOnOn
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
mail.force_extra_parametersno valueno value
max_execution_time3030
max_input_time6060
open_basedirno valueno value
output_bufferingno valueno value
output_handlerno valueno value
post_max_size40M40M
precision1212
realpath_cache_size16K16K
realpath_cache_ttl120120
register_argc_argvOnOn
register_globalsOffOff
register_long_arraysOnOn
report_memleaksOnOn
report_zend_debugOnOn
safe_modeOffOff
safe_mode_exec_dirno valueno value
safe_mode_gidOffOff
safe_mode_include_dirno valueno value
sendmail_fromno valueno value
sendmail_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_orderEGPCSEGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn
zend.ze1_compatibility_modeOffOff
calendar
Calendar support enabled
ctype
ctype functions enabled
curl
CURL support enabled
CURL Information libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.2
date
date/time support enabled
Timezone Database Version 2006.1
Timezone Database internal
Default timezone UTC
DirectiveLocal ValueMaster Value
date.default_latitude31.766731.7667
date.default_longitude35.233335.2333
date.sunrise_zenith90.58333390.583333
date.sunset_zenith90.58333390.583333
date.timezoneno valueno value
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.23
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled
ftp
FTP support enabled
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.10
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
gettext
GetText Support enabled
hash
hash supportenabled
Hashing Enginesmd4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160
whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4
tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3
haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4
haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5
haval256,5
iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.4
DirectiveLocal ValueMaster Value
iconv.input_encodingISO-8859-1ISO-8859-1
iconv.internal_encodingISO-8859-1ISO-8859-1
iconv.output_encodingISO-8859-1ISO-8859-1
libxml
libXML support active
libXML Version 2.6.23
libXML streams enabled
mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 3.7.1
mbstring extension makes use of "streamable kanji code filter and
converter", which is distributed under the GNU Lesser General Public
License version 2.1.
DirectiveLocal ValueMaster Value
mbstring.detect_orderno valueno value
mbstring.encoding_translationOffOff
mbstring.func_overload00
mbstring.htetepe_inputpasspass
mbstring.htetepe_outputpasspass
mbstring.internal_encodingISO-8859-1no value
mbstring.languageneutralneutral
mbstring.strict_detectionOffOff
mbstring.substitute_characterno valueno value
mcrypt
mcrypt supportenabled
Version 2.5.7
Api No 20021217
Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256
loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256
serpent xtea blowfish enigma rc2 tripledes
Supported modes cbc cfb ctr ecb ncfb nofb ofb stream
DirectiveLocal ValueMaster Value
mcrypt.algorithms_dirno valueno value
mcrypt.modes_dirno valueno value
mhash
MHASH support Enabled
MHASH API Version 20060101
mysql
MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr//include/mysql
MYSQL_LIBS -L/usr//lib -lmysqlclient
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
mysqli
MysqlI Supportenabled
Client API library version 5.0.18
Client API header version 5.0.18
MYSQLI_SOCKET /var/lib/mysql/mysql.sock
DirectiveLocal ValueMaster Value
mysqli.default_hostno valueno value
mysqli.default_port33063306
mysqli.default_pwno valueno value
mysqli.default_socketno valueno value
mysqli.default_userno valueno value
mysqli.max_linksUnlimitedUnlimited
mysqli.reconnectOffOff
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8b 04 May 2006
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 6.6 06-Feb-2006
PDO
PDO supportenabled
PDO drivers sqlite2
posix
Revision $Revision: 1.70.2.3 $
Reflection
Reflectionenabled
Version $Id: php_reflection.c,v 1.164.2.33 2006/03/29 14:28:42 tony2001
Exp $
session
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary
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.hash_bits_per_character44
session.hash_function00
session.namePHPSESSIDPHPSESSID
session.referer_checkno valueno value
session.save_handlerfilesfiles
session.save_pathno valueno value
session.serialize_handlerphpphp
session.use_cookiesOnOn
session.use_only_cookiesOffOff
session.use_trans_sid00
SimpleXML
Simplexml supportenabled
Revision $Revision: 1.151.2.22 $
Schema support enabled
SPL
SPL supportenabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator,
SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject,
BadFunctionCallException, BadMethodCallException, CachingIterator,
DirectoryIterator, DomainException, EmptyIterator, FilterIterator,
InfiniteIterator, InvalidArgumentException, IteratorIterator,
LengthException, LimitIterator, LogicException, NoRewindIterator,
OutOfBoundsException, OutOfRangeException, OverflowException,
ParentIterator, RangeException, RecursiveArrayIterator,
RecursiveCachingIterator, RecursiveDirectoryIterator,
RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException,
SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage,
SplTempFileObject, UnderflowException, UnexpectedValueException
SQLite
SQLite supportenabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.166.2.13 2006/04/18 14:30:15
iliaa Exp $
SQLite Library 2.8.17
SQLite Encoding iso8859
DirectiveLocal ValueMaster Value
sqlite.assoc_case00
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
DirectiveLocal ValueMaster Value
assert.active11
assert.bail00
assert.callbackno valueno value
assert.quiet_eval00
assert.warning11
auto_detect_line_endings00
default_socket_timeout6060
safe_mode_allowed_env_varsPHP_PHP_
safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH
url_rewriter.tagsa=href,area=href,frame=src,input=src,form=,fieldset=a=href,area=href,frame=src,input=src,form=,fieldset=
user_agentno valueno value
tokenizer
Tokenizer Support enabled
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.23
xmlreader
XMLReader enabled
xmlwriter
XMLWriter enabled
xsl
XSL enabled
libxslt Version 1.1.15
libxslt compiled against libxml Version 2.6.23
EXSLT enabled
libexslt Version 1.1.15
zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
DirectiveLocal ValueMaster Value
zlib.output_compressionOffOff
zlib.output_compression_level-1-1
zlib.output_handlerno valueno value
Additional Modules
Module Name
Environment
VariableValue
DOCUMENT_ROOT /home/vhost/my_site_name{punct}net/htetepedocs
GATEWAY_INTERFACE CGI/1.1
htetepe_ACCEPT */*
htetepe_ACCEPT_ENCODING gzip, deflate
htetepe_ACCEPT_LANGUAGE ro
htetepe_CONNECTION Keep-Alive
htetepe_HOST veveve.my_site_name{punct}net
htetepe_UA_CPU x86
htetepe_USER_AGENT Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; {punct}net
CLR 1.1.4322; {punct}net CLR 2.0.50727)
PATH /bin:/usr/bin
QUERY_STRING no value
REDIRECT_STATUS 200
REMOTE_ADDR xxx
REMOTE_PORT 54032
REQUEST_METHOD GET
REQUEST_URI /test/info.php
SCRIPT_FILENAME /home/vhost/my_site_name{punct}net/htetepedocs/test/info.php
SCRIPT_NAME /test/info.php
SERVER_ADDR xxx
SERVER_ADMIN webmaster{at}my_site_name{punct}net
SERVER_NAME veveve.my_site_name{punct}net
SERVER_PORT 80
SERVER_PROTOCOL htetepe/1.1
SERVER_SIGNATURE <address>Apache/2.0.59 (Unix) mod_ssl/2.0.59
OpenSSL/0.9.8b mod_perl/2.0.3 Perl/v5.8.8 Server at veveve.my_site_name{punct}net
Port 80</address>
SERVER_SOFTWARE Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8b
mod_perl/2.0.3 Perl/v5.8.8
ORIG_SCRIPT_NAME /test/info.php
ORIG_SCRIPT_FILENAME /home/vhost/my_site_name{punct}net/htetepedocs/test/info.php
PATH_INFO no value
PATH_TRANSLATED no value
PHP Variables
VariableValue
_SERVER["DOCUMENT_ROOT"]/home/vhost/my_site_name{punct}net/htetepedocs
_SERVER["GATEWAY_INTERFACE"]CGI/1.1
_SERVER["htetepe_ACCEPT"]*/*
_SERVER["htetepe_ACCEPT_ENCODING"]gzip, deflate
_SERVER["htetepe_ACCEPT_LANGUAGE"]ro
_SERVER["htetepe_CONNECTION"]Keep-Alive
_SERVER["htetepe_HOST"]veveve.my_site_name{punct}net
_SERVER["htetepe_UA_CPU"]x86
_SERVER["htetepe_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 7.0; Windows NT
5.1; {punct}net CLR 1.1.4322; {punct}net CLR 2.0.50727)
_SERVER["PATH"]/bin:/usr/bin
_SERVER["QUERY_STRING"]no value
_SERVER["REDIRECT_STATUS"]200
_SERVER["REMOTE_ADDR"]xxx
_SERVER["REMOTE_PORT"]54032
_SERVER["REQUEST_METHOD"]GET
_SERVER["REQUEST_URI"]/test/info.php
_SERVER["SCRIPT_FILENAME"]/home/vhost/my_site_name{punct}net/htetepedocs/test/info.php
_SERVER["SCRIPT_NAME"]/test/info.php
_SERVER["SERVER_ADDR"]xxx
_SERVER["SERVER_ADMIN"]webmaster{at}my_site_name{punct}net
_SERVER["SERVER_NAME"]veveve.my_site_name{punct}net
_SERVER["SERVER_PORT"]80
_SERVER["SERVER_PROTOCOL"]htetepe/1.1
_SERVER["SERVER_SIGNATURE"]<address>Apache/2.0.59 (Unix) mod_ssl/2.0.59
OpenSSL/0.9.8b mod_perl/2.0.3 Perl/v5.8.8 Server at veveve.my_site_name{punct}net
Port 80</address>
_SERVER["SERVER_SOFTWARE"]Apache/2.0.59 (Unix) mod_ssl/2.0.59
OpenSSL/0.9.8b mod_perl/2.0.3 Perl/v5.8.8
_SERVER["ORIG_SCRIPT_NAME"]/test/info.php
_SERVER["ORIG_SCRIPT_FILENAME"]/home/vhost/my_site_name{punct}net/htetepedocs/test/info.php
_SERVER["PATH_INFO"]no value
_SERVER["PATH_TRANSLATED"]no value
_SERVER["PHP_SELF"]/test/info.php
_SERVER["REQUEST_TIME"]1202466099
_SERVER["argv"]Array
_SERVER["argc"]0
_ENV["DOCUMENT_ROOT"]/home/vhost/my_site_name{punct}net/htetepedocs
_ENV["GATEWAY_INTERFACE"]CGI/1.1
_ENV["htetepe_ACCEPT"]*/*
_ENV["htetepe_ACCEPT_ENCODING"]gzip, deflate
_ENV["htetepe_ACCEPT_LANGUAGE"]ro
_ENV["htetepe_CONNECTION"]Keep-Alive
_ENV["htetepe_HOST"]veveve.my_site_name{punct}net
_ENV["htetepe_UA_CPU"]x86
_ENV["htetepe_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
{punct}net CLR 1.1.4322; {punct}net CLR 2.0.50727)
_ENV["PATH"]/bin:/usr/bin
_ENV["QUERY_STRING"]no value
_ENV["REDIRECT_STATUS"]200
_ENV["REMOTE_ADDR"]xxx
_ENV["REMOTE_PORT"]54032
_ENV["REQUEST_METHOD"]GET
_ENV["REQUEST_URI"]/test/info.php
_ENV["SCRIPT_FILENAME"]/home/vhost/my_site_name{punct}net/htetepedocs/test/info.php
_ENV["SCRIPT_NAME"]/test/info.php
_ENV["SERVER_ADDR"]xxx
_ENV["SERVER_ADMIN"]webmaster{at}my_site_name{punct}net
_ENV["SERVER_NAME"]veveve.my_site_name{punct}net
_ENV["SERVER_PORT"]80
_ENV["SERVER_PROTOCOL"]htetepe/1.1
_ENV["SERVER_SIGNATURE"]<address>Apache/2.0.59 (Unix) mod_ssl/2.0.59
OpenSSL/0.9.8b mod_perl/2.0.3 Perl/v5.8.8 Server at veveve.my_site_name{punct}net
Port 80</address>
_ENV["SERVER_SOFTWARE"]Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8b
mod_perl/2.0.3 Perl/v5.8.8
_ENV["ORIG_SCRIPT_NAME"]/test/info.php
_ENV["ORIG_SCRIPT_FILENAME"]/home/vhost/my_site_name{punct}net/htetepedocs/test/info.php
_ENV["PATH_INFO"]no value
_ENV["PATH_TRANSLATED"]no value
*************************************************** |
|
| Sus |
|
dechim
Data înscrierii: 10/Mai/2005
Mesaje: 595
Locație: Drobeta Turnu Severin
|
| Trimis: Vin Feb 08, 2008 11:07 pm Titlul subiectului: |
|
|
Adica vrei sa lansezi inca o instanta a PHP-ului in modul shell.
Ceri prea mult!
Daca vrei sa executi un alt script foloseste include, require
PS Era suficienta intrebarea :( |
|
| Sus |
|
radul
Data înscrierii: 08/Feb/2008
Mesaje: 3
|
| Trimis: Vin Feb 08, 2008 11:27 pm Titlul subiectului: |
|
|
De ce inca o instanta?
Eu apelez din browser h t t p s://w w w [dot]site[dot]com/folder/test.php care face exec() de tmp.php. Asta nu inseamna doar o instanta in shell? Sau poate nu inteleg bine..
Include sau require nu prea ma ajuta, imi trebuie ca scriptul executat sa-mi ruleze in background (e vorba de un sistem de plata on-line). |
|
| Sus |
|
vectorialpx
Data înscrierii: 01/Mar/2005
Mesaje: 2976
Locație: țopăi pe tasta DELETE
|
| Trimis: Vin Feb 08, 2008 11:47 pm Titlul subiectului: |
|
|
| [offtopic] in primul rand, trebuia sa faci un fisier cu tot text-ul ala [ca sa nu dau de bara de derulare cat unghia - e o regula de-a noastra asta "nu posta un noian de text ca nu ti-l citeste nic dracu!"] sa-l pui undeva on-line... apoi, daca ai un server public, nu prea e secure sa-ti publici conf-ul aici, nu crezi? |
|
| Sus |
|
radul
Data înscrierii: 08/Feb/2008
Mesaje: 3
|
| Trimis: Vin Feb 08, 2008 11:57 pm Titlul subiectului: |
|
|
corect, era normal sa fac asta, insa din locul unde eram cand am postat nu se putea din diverse motive (n-are rost sa intru in detalii).
legat de conf, o sa observi ca nu prea exista detalii reale despre locatia serverului |
|
| Sus |
|
whooper
Data înscrierii: 05/Apr/2005
Mesaje: 722
Locație: Toronto ON
|
| Trimis: Joi Feb 14, 2008 8:14 am Titlul subiectului: |
|
|
de ce vrei sa rulezi fisiere PHP asa (executabilPHP bla bla bla)? serverul e ok, atat timp cat iti arata paginile in browser .. merge.
In cel de'al doilea fisier php, definesti un output iframe cu display:null in care incarci fisierul TMP. |
|
| Sus |
|
dechim
Data înscrierii: 10/Mai/2005
Mesaje: 595
Locație: Drobeta Turnu Severin
|
| Trimis: Joi Feb 14, 2008 11:21 am Titlul subiectului: |
|
|
exec("/usr/bin/php -q /home/vhost/nume-site{punct}net/htetepesdocs/folder/tmp.php 2>&1 > /dev/null");
Am citit si eu cate ceva, e interesant.
Scriptul apelat din browser executa o comanda pe server prin exec, comanda care lanseaza php-ul (desi el este deja in functiune - doar executa scriptul curent).
A doua instanta executa un script infinit in background.
E bine, asa zic si altii! Nu stiu de ce nu-ti merge.
In functie de problema pe care vrei sa o rezovi poti incerca AJAX. |
|
| Sus |
|
PHPRomania Bot
Bot Member
Data înscrierii: 27/Dec/2007
Mesaje: 1
Locaţie: Server Google |
| Trimis: Mie Dec 26, 2007 7:01 pm Titlul subiectului: Ad |
|
|
|
|
|
| Sus |
|
| |
|