php hell
I am deperate for help
i did a everything install for fedora 4 i have apache up and running but php is showing a blank page i have added the addtypes to my httpd.conf what am i doing wrong please help |
More information is needed here.
1. What PHP file are you trying to run? A typical first test page will be a file containing nothing but <?php phpinfo(); ?>. Is this the file you're trying to run? 2. You will need to make the file executable, check with "ls -l" what it's permissions are and change the permissions with "chmod ug+g". 3. Are there any messages in the error log? Check /var/log/apache2/error.log. 4. Do you have mod-php installed, or php? Number 2 would give you an error message, not a blank page, but it's worth checking out. R. |
If you mean that instead of showing your php pages you are getting a blank page,
it may be that you have an error on the page and the new version of php (5) included with feodra core 4 is not showing errors by default. Check the following lines in /etc/php.ini for error reporting are set as follows error_reporting = E_ALL & ~E_NOTICE display_errors= On |
view source of the blank page... then you know what...
if it appear the <?php phpinfo() php?> , then you installation or config is wrong |
Quote:
But you definitely want to crank your error_reporting up to E_ALL and make sure your display_errors directive is also set to "On" so that PHP will display warnings, errors, notices to the standard output -- typically, your web browser. |
Maybe i have the same problem
Maybe i have the same problem, when i installing my FC4,i choose to install webserver too.
PH5 should be install too. I write a file containing nothing but <?php phpinfo(); ?>,but it 's showing a blank page. Then i add something to my httpd.cof as below LoadModule php5_module libexec/libphp5.so AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps But it show blank page too. Can anybody help me? |
I believe you also need an AddModule directive in there
AddModule mod_php5.c and you definitely need to restart Apache to make it notice the changes in the configuration file. |
here is my phpinfo()
phpinfo()
PHP Version => 5.0.4 System => Linux host.sophisticatedlovers.com 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 Build Date => Aug 17 2005 09:52:48 Configure Command => './configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-ncurses=shared' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--enable-dom=shared' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-fastcgi' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /etc/php.ini Scan this dir for additional .ini files => /etc/php.d additional .ini files parsed => /etc/php.d/bcmath.ini, /etc/php.d/dba.ini, /etc/php.d/dom.ini, /etc/php.d/gd.ini, /etc/php.d/imap.ini, /etc/php.d/ldap.ini, /etc/php.d/mbstring.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/ncurses.ini, /etc/php.d/odbc.ini, /etc/php.d/pgsql.ini, /etc/php.d/snmp.ini, /etc/php.d/soap.ini, /etc/php.d/xmlrpc.ini, /etc/php.d/xsl.ini PHP API => 20031224 PHP Extension => 20041030 Zend Extension => 220040412 Debug Build => no Thread Safety => disabled IPv6 Support => enabled Registered PHP Streams => php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls This program makes use of the Zend Scripting Language Engine: Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies _______________________________________________________________________ Configuration PHP Core Directive => Local Value => Master Value allow_call_time_pass_reference => Off => Off allow_url_fopen => On => On 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_globals_jit => On => On 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 => /usr/lib/php/modules => /usr/lib/php/modules file_uploads => On => On 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 => Off => On ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => Off include_path => .:/usr/share/pear => .:/usr/share/pear 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 mail.force_extra_parameters => no value => no value max_execution_time => 0 => 30 max_input_time => 60 => 60 memory_limit => 8M => 8M open_basedir => no value => no value output_buffering => 0 => 4096 output_handler => no value => no value post_max_size => 8M => 8M precision => 14 => 14 register_argc_argv => On => On register_globals => Off => Off register_long_arrays => Off => Off report_memleaks => On => On report_zend_debug => Off => Off 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 => EGPCS => EGPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On zend.ze1_compatibility_mode => Off => Off bcmath BCMath support => enabled bz2 BZip2 Support => Enabled BZip2 Version => 1.0.2, 30-Dec-2001 calendar Calendar support => enabled ctype ctype functions => enabled curl CURL support => enabled CURL Information => libcurl/7.13.1 OpenSSL/0.9.7f zlib/1.2.2.2 libidn/0.5.15 dba DBA support => enabled Supported handlers => cdb cdb_make db4 inifile flatfile dbx dbx support => enabled dbx version => 1.1.0 supported databases => MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8) Sybase-CT SQLite Directive => Local Value => Master Value dbx.colnames_case => lowercase => lowercase dio dio support => enabled dom DOM/XML => enabled DOM/XML API Version => 20031129 libxml Version => 2.6.20 HTML Support => enabled XPath Support => enabled XPointer Support => enabled Schema Support => enabled RelaxNG Support => enabled exif EXIF Support => enabled EXIF Version => 1.4 $Id: exif.c,v 1.162.2.8 2005/03/17 17:20:35 iliaa Exp $ Supported EXIF Version => 0220 Supported filetypes => JPEG,TIFF 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.9 GIF Read Support => enabled GIF Create Support => enabled JPG Support => enabled PNG Support => enabled WBMP Support => enabled XBM Support => enabled gettext GetText Support => enabled gmp gmp support => enabled iconv iconv support => enabled iconv implementation => glibc iconv library version => 2.3.5 Directive => Local Value => Master Value iconv.input_encoding => ISO-8859-1 => ISO-8859-1 iconv.internal_encoding => ISO-8859-1 => ISO-8859-1 iconv.output_encoding => ISO-8859-1 => ISO-8859-1 imap IMAP c-Client Version => 2001 SSL Support => enabled Kerberos Support => enabled ldap LDAP Support => enabled RCS Version => $Id: ldap.c,v 1.154.2.2 2005/01/19 00:27:42 sniper Exp $ Total Links => 0/unlimited API Version => 3001 Vendor Name => OpenLDAP Vendor Version => 20223 libxml libXML support => active libXML Version => 2.6.20 libXML streams => enabled mbstring Multibyte Support => enabled Multibyte string engine => libmbfl Multibyte (japanese) regex support => enabled Multibyte regex (oniguruma) version => 3.7.0 mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Directive => Local Value => Master Value mbstring.detect_order => no value => no value mbstring.encoding_translation => Off => Off mbstring.func_overload => 0 => 0 mbstring.http_input => pass => pass mbstring.http_output => pass => pass mbstring.internal_encoding => ISO-8859-1 => no value mbstring.language => neutral => neutral mbstring.substitute_character => no value => no value mime_magic mime_magic support => enabled Directive => Local Value => Master Value mime_magic.debug => Off => Off mime_magic.magicfile => /etc/httpd/conf/magic => /etc/httpd/conf/magic mysql MySQL Support => enabled Active Persistent Links => 0 Active Links => 0 Client API version => 4.1.11 MYSQL_MODULE_TYPE => external MYSQL_SOCKET => /var/lib/mysql/mysql.sock MYSQL_INCLUDE => -I/usr/include/mysql MYSQL_LIBS => -L/usr/lib/mysql -lmysqlclient Directive => Local Value => Master Value mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off mysqli MysqlI Support => enabled Client API version => 4.1.11 MYSQLI_SOCKET => /var/lib/mysql/mysql.sock Directive => Local Value => Master Value mysqli.default_host => no value => no value mysqli.default_port => 3306 => 3306 mysqli.default_pw => no value => no value mysqli.default_socket => no value => no value mysqli.default_user => no value => no value mysqli.max_links => Unlimited => Unlimited mysqli.reconnect => Off => Off ncurses ncurses support => enabled ncurses library version => 5.4 color support => yes odbc ODBC Support => enabled Active Persistent Links => 0 Active Links => 0 ODBC library => unixODBC ODBC_INCLUDE => -I/usr/include ODBC_LFLAGS => -L/usr/lib ODBC_LIBS => -lodbc Directive => Local Value => Master Value odbc.allow_persistent => On => On odbc.check_persistent => On => On odbc.default_db => no value => no value odbc.default_pw => <i>no value</i> => <i>no value</i> odbc.default_user => no value => no value odbc.defaultbinmode => return as is => return as is odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes odbc.max_links => Unlimited => Unlimited odbc.max_persistent => Unlimited => Unlimited openssl OpenSSL support => enabled OpenSSL Version => OpenSSL 0.9.7f 22 Mar 2005 pcntl pcntl support => enabled pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 5.0 13-Sep-2004 pgsql PostgreSQL Support => enabled PostgreSQL(libpq) Version => 8.0.3 Multibyte character support => enabled SSL support => enabled Active Persistent Links => 0 Active Links => 0 Directive => Local Value => Master Value pgsql.allow_persistent => On => On pgsql.auto_reset_persistent => Off => Off pgsql.ignore_notice => Off => Off pgsql.log_notice => Off => Off pgsql.max_links => Unlimited => Unlimited pgsql.max_persistent => Unlimited => Unlimited posix Revision => $Revision: 1.60.2.2 $ pspell PSpell Support => enabled session Session Support => enabled Registered save handlers => files user Registered serializer handlers => php php_binary wddx 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.hash_bits_per_character => 5 => 5 session.hash_function => 0 => 0 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => /var/lib/php/session => /var/lib/php/session session.serialize_handler => php => php session.use_cookies => On => On session.use_only_cookies => Off => Off session.use_trans_sid => 0 => 0 shmop shmop support => enabled SimpleXML Simplexml support => enabled Revision => $Revision: 1.139.2.4 $ Schema support => enabled snmp NET-SNMP Support => enabled NET-SNMP Version => 5.2.1 soap Soap Client => enabled Soap Server => enabled Directive => Local Value => Master Value soap.wsdl_cache_dir => /tmp => /tmp soap.wsdl_cache_enabled => 1 => 1 soap.wsdl_cache_ttl => 86400 => 86400 sockets Sockets Support => enabled SPL SPL support => enabled Interfaces => RecursiveIterator, SeekableIterator Classes => ArrayObject, ArrayIterator, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator 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 date.default_latitude => 31.7667 => 31.7667 date.default_longitude => 35.2333 => 35.2333 date.sunrise_zenith => 90.83 => 90.83 date.sunset_zenith => 90.83 => 90.83 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 sysvmsg sysvmsg support => enabled Revision => $Revision: 1.16.2.3 $ tokenizer Tokenizer Support => enabled wddx WDDX Support => enabled WDDX Session Serializer => enabled xml XML Support => active XML Namespace Support => active libxml2 Version => 2.6.20 xmlrpc core library version => xmlrpc-epi v. 0.51 php extension version => 0.51 author => Dan Libby homepage => http://xmlrpc-epi.sourceforge.net open sourced by => Epinions.com xsl XSL => enabled libxslt Version => 1.1.14 libxslt compiled against libxml Version => 2.6.19 EXSLT => enabled libexslt Version => 1.1.14 yp YP Support => enabled zlib ZLib Support => enabled Compiled Version => 1.2.2.2 Linked Version => 1.2.2.2 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 DOCUMENT_REALROOT => /usr/libexec/webmin HTTP_CONTENT_LENGTH => 333 MINISERV_CONFIG => /etc/webmin/miniserv.conf HTTP_USER_AGENT => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) HTTP_HOST => www.sophisticatedlovers.com:10000 SERVER_PORT => 10000 PATH_REALTRANSLATED => /usr/libexec/webmin/ USER => root LD_LIBRARY_PATH => DOCUMENT_ROOT => /usr/libexec/webmin SCRIPT_FILENAME => /usr/libexec/webmin/shell/index.cgi REQUEST_URI => /shell/index.cgi SCRIPT_NAME => /shell/index.cgi REMOTE_HOST => 65.213.213.67 REMOTE_USER => root HTTP_CONNECTION => Keep-Alive PATH_INFO => PATH => /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin SERVER_REALROOT => /usr/libexec/webmin PWD => /root SERVER_ADMIN => SERVER_ROOT => /usr/libexec/webmin WEBMIN_CONFIG => /etc/webmin HTTP_ACCEPT_LANGUAGE => en-us HTTP_REFERER => http://www.sophisticatedlovers.com:10000/shell/ PATH_TRANSLATED => /usr/libexec/webmin/ HTTP_ACCEPT => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* REMOTE_ADDR => 65.213.213.67 SHLVL => 1 HTTP_CONTENT_TYPE => multipart/form-data; boundary=---------------------------7d58c3bb0608 SERVER_NAME => www.sophisticatedlovers.com HOME => /root CONTENT_LENGTH => 333 SERVER_SOFTWARE => MiniServ/0.01 WEBMIN_VAR => /var/webmin QUERY_STRING => GATEWAY_INTERFACE => CGI/1.1 SERVER_PROTOCOL => HTTP/1.0 HTTP_ACCEPT_ENCODING => gzip, deflate HTTP_CACHE_CONTROL => no-cache CONTENT_TYPE => multipart/form-data; boundary=---------------------------7d58c3bb0608 HTTP_COOKIE => testing=1 REQUEST_METHOD => POST _ => /usr/bin/php PHP Variables Variable => Value _SERVER["DOCUMENT_REALROOT"] => /usr/libexec/webmin _SERVER["HTTP_CONTENT_LENGTH"] => 333 _SERVER["MINISERV_CONFIG"] => /etc/webmin/miniserv.conf _SERVER["HTTP_USER_AGENT"] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) _SERVER["HTTP_HOST"] => www.sophisticatedlovers.com:10000 _SERVER["SERVER_PORT"] => 10000 _SERVER["PATH_REALTRANSLATED"] => /usr/libexec/webmin/ _SERVER["USER"] => root _SERVER["LD_LIBRARY_PATH"] => _SERVER["DOCUMENT_ROOT"] => _SERVER["SCRIPT_FILENAME"] => _SERVER["REQUEST_URI"] => /shell/index.cgi _SERVER["SCRIPT_NAME"] => _SERVER["REMOTE_HOST"] => 65.213.213.67 _SERVER["REMOTE_USER"] => root _SERVER["HTTP_CONNECTION"] => Keep-Alive _SERVER["PATH_INFO"] => _SERVER["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin _SERVER["SERVER_REALROOT"] => /usr/libexec/webmin _SERVER["PWD"] => /root _SERVER["SERVER_ADMIN"] => _SERVER["SERVER_ROOT"] => /usr/libexec/webmin _SERVER["WEBMIN_CONFIG"] => /etc/webmin _SERVER["HTTP_ACCEPT_LANGUAGE"] => en-us _SERVER["HTTP_REFERER"] => http://www.sophisticatedlovers.com:10000/shell/ _SERVER["PATH_TRANSLATED"] => _SERVER["HTTP_ACCEPT"] => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* _SERVER["REMOTE_ADDR"] => 65.213.213.67 _SERVER["SHLVL"] => 1 _SERVER["HTTP_CONTENT_TYPE"] => multipart/form-data; boundary=---------------------------7d58c3bb0608 _SERVER["SERVER_NAME"] => www.sophisticatedlovers.com _SERVER["HOME"] => /root _SERVER["CONTENT_LENGTH"] => 333 _SERVER["SERVER_SOFTWARE"] => MiniServ/0.01 _SERVER["WEBMIN_VAR"] => /var/webmin _SERVER["QUERY_STRING"] => _SERVER["GATEWAY_INTERFACE"] => CGI/1.1 _SERVER["SERVER_PROTOCOL"] => HTTP/1.0 _SERVER["HTTP_ACCEPT_ENCODING"] => gzip, deflate _SERVER["HTTP_CACHE_CONTROL"] => no-cache _SERVER["CONTENT_TYPE"] => multipart/form-data; boundary=---------------------------7d58c3bb0608 _SERVER["HTTP_COOKIE"] => testing=1 _SERVER["REQUEST_METHOD"] => POST _SERVER["_"] => /usr/bin/php _SERVER["PHP_SELF"] => _SERVER["argv"] => Array ( ) _SERVER["argc"] => 0 _ENV["DOCUMENT_REALROOT"] => /usr/libexec/webmin _ENV["HTTP_CONTENT_LENGTH"] => 333 _ENV["MINISERV_CONFIG"] => /etc/webmin/miniserv.conf _ENV["HTTP_USER_AGENT"] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) _ENV["HTTP_HOST"] => www.sophisticatedlovers.com:10000 _ENV["SERVER_PORT"] => 10000 _ENV["PATH_REALTRANSLATED"] => /usr/libexec/webmin/ _ENV["USER"] => root _ENV["LD_LIBRARY_PATH"] => _ENV["DOCUMENT_ROOT"] => /usr/libexec/webmin _ENV["SCRIPT_FILENAME"] => /usr/libexec/webmin/shell/index.cgi _ENV["REQUEST_URI"] => /shell/index.cgi _ENV["SCRIPT_NAME"] => /shell/index.cgi _ENV["REMOTE_HOST"] => 65.213.213.67 _ENV["REMOTE_USER"] => root _ENV["HTTP_CONNECTION"] => Keep-Alive _ENV["PATH_INFO"] => _ENV["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin _ENV["SERVER_REALROOT"] => /usr/libexec/webmin _ENV["PWD"] => /root _ENV["SERVER_ADMIN"] => _ENV["SERVER_ROOT"] => /usr/libexec/webmin _ENV["WEBMIN_CONFIG"] => /etc/webmin _ENV["HTTP_ACCEPT_LANGUAGE"] => en-us _ENV["HTTP_REFERER"] => http://www.sophisticatedlovers.com:10000/shell/ _ENV["PATH_TRANSLATED"] => /usr/libexec/webmin/ _ENV["HTTP_ACCEPT"] => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* _ENV["REMOTE_ADDR"] => 65.213.213.67 _ENV["SHLVL"] => 1 _ENV["HTTP_CONTENT_TYPE"] => multipart/form-data; boundary=---------------------------7d58c3bb0608 _ENV["SERVER_NAME"] => www.sophisticatedlovers.com _ENV["HOME"] => /root _ENV["CONTENT_LENGTH"] => 333 _ENV["SERVER_SOFTWARE"] => MiniServ/0.01 _ENV["WEBMIN_VAR"] => /var/webmin _ENV["QUERY_STRING"] => _ENV["GATEWAY_INTERFACE"] => CGI/1.1 _ENV["SERVER_PROTOCOL"] => HTTP/1.0 _ENV["HTTP_ACCEPT_ENCODING"] => gzip, deflate _ENV["HTTP_CACHE_CONTROL"] => no-cache _ENV["CONTENT_TYPE"] => multipart/form-data; boundary=---------------------------7d58c3bb0608 _ENV["HTTP_COOKIE"] => testing=1 _ENV["REQUEST_METHOD"] => POST _ENV["_"] => /usr/bin/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 license@php.net. |
What im an trying to ru is the
What i am trying to run is <?php phpinfo();?>
I am also running php 5 i dont think i have mod_php |
Hi John,
I think I see the problems with your PHP program. There isn't enough of it. Here is what you need, in full: <html> <head> <title>PHP Test Page</title> </head> <body> <? phpinfo(); ?> </body> </html> The above should work. Also, FC4 incorporates mod_php in the php package. Run "rpm -ql php" and you should see it in there. Good luck!, -David Chipman |
thanks for answering
THANKS ALL!!!
I am still showing a blank page and even after surfin the net there isnt any concrete answe to this problem is there any thing else I may have wrong??? |
I am going out of my mind
this amazes me how dam complicated this is and how no one seems to have an answer to this. PLEASE SOME ONE HELP ME!!!!!!!! nothing is working
|
Hi John,
I know I may be the last person who should be saying this, but those no need to get worked up. It won't realy help. One thing I need top know: Do you have PHP installed? I thought my HTML code would work (it *should*). What is showing up in your error.log file? Can you show us a last couple lines, please? Thanks. |
sorry for my breakdown
that wasnt directed at all that that are on here. this problem is just so frustrstrating.
well im going to post all my info this will be rather long here is my last lines of the error.log [Wed Nov 02 02:18:39 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Wed Nov 02 02:18:40 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations [Wed Nov 02 02:20:38 2005] [notice] caught SIGTERM, shutting down [Wed Nov 02 02:20:39 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Nov 02 02:20:39 2005] [warn] module php5_module is already loaded, skipping [Wed Nov 02 02:20:40 2005] [notice] Digest: generating secret for digest authentication ... [Wed Nov 02 02:20:40 2005] [notice] Digest: done [Wed Nov 02 02:20:40 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Wed Nov 02 02:20:40 2005] [notice] LDAP: SSL support unavailable [Wed Nov 02 02:20:40 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Wed Nov 02 02:20:40 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations here is my httpd.conf LoadModule php5_module modules/libphp5.so LoadModule php5_module /usr/lib/httpd/modules/libphp5.so AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php5 .php5 AddType application/x-httpd-php-source .phps # # 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 .pl AddHandler php-script .php . AddHandler server-parsed .shtml AddHandler php5-script .php5 .php # # For files that include their own HTTP headers: # #AddHandler send-as-is asis # # 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 .php .php5 AddOutputFilter INCLUDES .shtml .php #AddModule modphp5.c and when i perform a rpm -ql php this is what i get /etc/httpd/conf.d/php.conf /etc/pear.conf /etc/php.d /etc/php.ini /usr/bin/php /usr/bin/php-cgi /usr/lib/httpd/modules/libphp5.so /usr/lib/php /usr/lib/php/modules /usr/share/doc/php-5.0.4 /usr/share/doc/php-5.0.4/CODING_STANDARDS /usr/share/doc/php-5.0.4/CREDITS /usr/share/doc/php-5.0.4/EXTENSIONS /usr/share/doc/php-5.0.4/INSTALL /usr/share/doc/php-5.0.4/LICENSE /usr/share/doc/php-5.0.4/NEWS /usr/share/doc/php-5.0.4/README.EXTENSIONS /usr/share/doc/php-5.0.4/README.EXT_SKEL /usr/share/doc/php-5.0.4/README.PARAMETER_PARSING_API /usr/share/doc/php-5.0.4/README.PHP4-TO-PHP5-THIN-CHANGES /usr/share/doc/php-5.0.4/README.SELF-CONTAINED-EXTENSIONS /usr/share/doc/php-5.0.4/README.STREAMS /usr/share/doc/php-5.0.4/README.SUBMITTING_PATCH /usr/share/doc/php-5.0.4/README.TESTING /usr/share/doc/php-5.0.4/README.TESTING2 /usr/share/doc/php-5.0.4/README.UNIX-BUILD-SYSTEM /usr/share/doc/php-5.0.4/README.WIN32-BUILD-SYSTEM /usr/share/doc/php-5.0.4/README.input_filter /usr/share/doc/php-5.0.4/TSRM_LICENSE /usr/share/doc/php-5.0.4/ZEND_CHANGES /usr/share/doc/php-5.0.4/ZEND_LICENSE /usr/share/doc/php-5.0.4/gd_README /usr/share/doc/php-5.0.4/regex_COPYRIGHT /usr/share/man/man1/php.1.gz /var/lib/php /var/lib/php/session /var/www/icons/php.gif if you would like to see my php.ini file i will post that too but for space ill wait until needed by the way you can see what is happening on my server i have the test file up publicly www.sophisticatedlovers.com/phpinfo.php then if you do a view source |
Hi John,
Thanks for your quick reply with all that info. Now, what does the access.log look like? Can you post that? Can you try running the *.php script through the command-line php program (sending its standard oputput to a file) , then post the contents of the file? Thanks, -David Chipman |
All times are GMT -5. The time now is 02:28 PM. |