PHP: Difference between revisions
Created page with 'PHP FOO, Enjoy ;P == PHP info == Make a file called phpinfo.php under the account that you wish to test. Place the below in as the contents. <?php phpinfo(); ?> One liner P…' |
|||
Line 47: | Line 47: | ||
[http://shooltz.net/w/index.php?title=Php_rpms. php rpms] | [http://shooltz.net/w/index.php?title=Php_rpms. php rpms] | ||
== PHPmyadmin | == PHPmyadmin == | ||
To update just phpmyadmin. | To update just phpmyadmin. | ||
/usr/local/cpanel/bin/updatephpmyadmin --force | /usr/local/cpanel/bin/updatephpmyadmin --force |
Revision as of 15:08, 11 December 2010
PHP FOO, Enjoy ;P
PHP info
Make a file called phpinfo.php under the account that you wish to test. Place the below in as the contents.
<?php phpinfo(); ?>
One liner PHP info, make sure to change (username here) ti the account in questions username.
touch phpinfo.php && chown (username here). phpinfo.php && echo "<?php phpinfo(); ?>" > phpinfo.php
PHP version's
To test the current handler as well as the versions of php.
/usr/local/cpanel/bin/rebuild_phpconf --current
If EasyApache has never been ran you will need to fo a manual query to figure the relavent information out.
cat /usr/local/apache/conf/httpd.conf | grep LoadModule | grep php
Setting the default PHP version in the .htaccess
vim /usr/local/apache/conf/php.conf
go to the following and you want to copy out the line starting with "AddType" will look something like this but might be different...
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
copy the whole line and if you are doing php4 change the 5 to 4's and vice versa, but dont have any duplicate options.
Random PHP stuffs
PHP 4 module check
/usr/local/php4/bin/php
enable/disable monitoring script ---
wget http://scripts.ssullivan.org/apiCalls/confMonitoring perl confMonitoring
PhP mem limit on a shared with dso goes into the public_html in the .htaccess
php_value memory_limit 64M
To veiw availiable php extensions
/scripts/phpextensionmgr list
To install php extensions
/scripts/phpextensionmgr install (name here)
PHP rpm's for coremanaged moxes. php rpms
PHPmyadmin
To update just phpmyadmin.
/usr/local/cpanel/bin/updatephpmyadmin --force