Is there something wrong on my PHP , can you help please?

Empyrium

Member
May 23, 2007
19
0
151
Built with apache before.
My php version commands show that =>

Code:
/usr/local/cpanel/3rdparty/bin/php -v

PHP 4.4.4 (cgi) (built: May  2 2007 04:57:47)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

/usr/local/bin/php -v
PHP 5.2.3 (cli) (built: Aug 17 2007 04:53:52)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies

/usr/bin/php -v
PHP 5.2.3 (cli) (built: Aug 17 2007 04:58:00)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies

And i afraid.
/usr/local/apache/conf/httpd.conf =>


Code:
LoadModule rewrite_module     libexec/mod_rewrite.so
LoadModule expires_module     libexec/mod_expires.so
LoadModule bwlimited_module   libexec/mod_bwlimited.so
LoadModule bytes_log_module   libexec/mod_log_bytes.so
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
LoadModule security_module    libexec/mod_security.so
LoadModule bandwidth_module   libexec/mod_bandwidth.so
LoadModule php5_module        libexec/libphp5.so

ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_expires.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
   AddModule mod_ssl.c
</IfDefine>
AddModule mod_bwlimited.c
AddModule mod_log_bytes.c
AddModule mod_auth_passthrough.c
AddModule mod_security.c
AddModule mod_bandwidth.c
Include "/usr/local/apache/conf/modsec.conf"
AddModule mod_php5.c
BandWidthDataDir "/var/cpanel/apachebw"

<IfModule mod_userdir.c>
   UserDir public_html
</IfModule>

<IfModule mod_dir.c>
   DirectoryIndex index.pl index.perl index.plx index.ppl index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm
</IfModule>


   AddEncoding x-compress .Z
   AddEncoding x-gzip .gz .tgz
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php .php4
   AddType application/x-httpd-php .php3
   AddType application/x-httpd-php-source .phps
   AddType application/x-httpd-php .phtml
   AddHandler cgi-script .cgi .pl .ppl .plx .perl
   AddType text/html .shtml
   AddType application/x-tar .tgz
   AddType text/vnd.wap.wml .wml
   AddType image/vnd.wap.wbmp .wbmp
   AddType text/vnd.wap.wmlscript .wmls
   AddType application/vnd.wap.wmlc .wmlc
   AddType application/vnd.wap.wmlscriptc .wmlsc
   AddHandler server-parsed .shtml


<IfModule mod_suphp.c>
   suPHP_Engine on
   suPHP_ConfigPath /opt/suphp_php_bin
   <Directory /home*/*/public_html>
      suPHP_AddHandler x-httpd-php
   </Directory>
   AddHandler x-httpd-php .php .php3 .php4 .phtml
   AddType application/x-httpd-php .php .phtml .php3 .php4
</IfModule>

   User nobody
   Group nobody
   <IfModule mod_suphp.c>
      suPHP_UserGroup nobody nobody
   </IfModule>
   BytesLog /usr/local/apache/domlogs/newinst.layeredtech.com-bytes_log
   <IfModule sapi_apache2.c>
      php_admin_value open_basedir "/nonexistent:/usr/lib/php:/usr/local/lib/php:/tmp"
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/nonexistent/php"
   </IfModule>
   <IfModule mod_php4.c>
      php_admin_value open_basedir "/nonexistent:/usr/lib/php:/usr/local/lib/php:/tmp"
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/nonexistent/php"
   </IfModule>
   <IfModule mod_php5.c>
      php_admin_value open_basedir "/nonexistent:/usr/lib/php:/usr/local/lib/php:/tmp"
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/nonexistent/php"
   </IfModule>
</VirtualHost>

a user got this =>

   <IfModule mod_suphp.c>
      suPHP_UserGroup feanor feanor
   </IfModule>
   <IfModule mod_php4.c>
      php_admin_value open_basedir "/home/feanor:/usr/lib/php:/usr/local/lib/php:/tmp"
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/feanor/php"
   </IfModule>
   <IfModule mod_php5.c>
      php_admin_value open_basedir "/home/feanor:/usr/lib/php:/usr/local/lib/php:/tmp"
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/feanor/php"
   </IfModule>

   User feanor
   Group feanor
   BytesLog /usr/local/apache/domlogs/oyun.**********-bytes_log
   CustomLog /usr/local/apache/domlogs/oyun.************ combined
   ScriptAlias /cgi-bin/ /home/feanor/public_html/oyun/cgi-bin/
   <IfModule sapi_apache2.c>
      php_admin_value open_basedir "/home/feanor:/usr/lib/php:/usr/local/lib/php:/tmp"
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/feanor/php"
   </IfModule>

another one this =>

   User fragilis
   Group fragilis
   CustomLog /usr/local/apache/domlogs/************ combined
   ScriptAlias /cgi-bin/ /home/fragilis/public_html/cgi-bin/
   <IfModule mod_suphp.c>
      suPHP_UserGroup fragilis fragilis
   </IfModule>
   BytesLog /usr/local/apache/domlogs/**************-bytes_log
   <IfModule sapi_apache2.c>
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/fragilis/php"
   </IfModule>
   <IfModule mod_php4.c>
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/fragilis/php"
   </IfModule>
   <IfModule mod_php5.c>
      php_admin_value include_path ".:/usr/lib/php:/usr/local/lib/php:/home/fragilis/php"
   </IfModule>
</VirtualHost>
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
Your php is fine. Version 4.4.4 is for cPanel internal use, not public. You are indeed running 5.2.3 for web service. No worries there.