Knowledgebase
Knowledgebase : Website Hosting > PHP & PHP Settings
NOTE: WE CAN'T CHANGE FOLLOWING PHP SETTINGS.
PHP has been configured to use the following settings on our shared
and reseller servers:
_safe mode = on (can not adjust)_
_memory_limit = 256M ( Max )_
_max_excution_time = 30 ( Max in seconds)_
_max_input_time = 60 ( Max in seconds)_
_post_max_size = 64M ( Max )_
_upload_max_filesize = 64M ( Max )_
_enable_dl = off (can't ad...
WHAT IS PHP.INI?
PHP.ini is very important configuration file for PHP that is used to
customize behavior of PHP at runtime.
This tutorial will show you how to setup your own php.ini file,
explain some of the most commonly changed configuration settings, and
how to modify those settings to your needs.
PHP DEFAULT SETTINGS:
The server is already configured with standard settings for PHP t...
Set this, in both your admin/includes/configure.php and
catalog/includes/configure.php:
FROM:
define('STORE_SESSIONS', '');
TO THIS:
define('STORE_SESSIONS', 'mysql');
No, we cannot disable php safe mode. All our servers have php safe
mode enabled due to security reasons.
When you create your MySQL database, first you create a database by
giving it a name. Then you create a user by entering a username and
password. For best results keep your database name, database username,
and database password at no fewer than 6 and no more than 7 letters or
numbers. THEN YOU MUST BE SURE TO ADD THE USER TO THE DATABASE.
In your script, your database name and your database use...
To retrieve the guest book password select the guest book db in
PHPMyAdmin and the table book_auth. While browsing it will show you
the user name. Run this sql command to change the password at the SQL
query box in PHPMyAdmin
update book_auth set password=PASSWORD('pass') where username='user';
where 'pass' is your password and 'user' is the user name.
You can reset your Joomla administrator's password through the
script's MySQL Database.
The most convenient way to manage the database is through the
phpMyAdmin tool. Go to your cPanel and click on phpMyAdmin in the
Databases box.
Once in the phpMyAdmin select the Joomla's database from the drop-down
menu at left. The page will refresh and the database's tables will be
displayed on it. Open th...
Use the following outline to connect and begin querying the MySQL
server from within your PHP scripts.
1. Connect To The MySQL Server
Use the following statement to connect to the database server.
Substitute the username, and password with the ones assigned to you.
MYSQL_CONNECT('localhost','USERNAME','PASSWORD');
2. Select Your Database
Use the following statement to select the database you w...
I recently installed a few new themes to my wordpress site and I can
see the colors and fonts, but not the images ?
First check the permissions on the images folder, it is common that
these are set too low, set them to 755.
If this still does not work and you verified the images are in fact on
your server check the .htaccess rule in the folder public_html
RewriteRule .*.(jpg|jpeg|gif|png|bmp)$...
Wordpress blogs can be extremely resource intensive if you happen to
experience a surge in traffic. Poorly implemented wordpress setups can
place a high load on webservers and lead to interruptions of service
or account suspensions for using too many resources. Here are some
tips that can help you make your wordpress install more stable:
1. Use Wordpress super cache plugin (
http://ocaoimh.ie/w...
osCommerce uses .htaccess and .htpasswd format files to manage the
protection on the admin section of your shop.
If you need to change the password or username associated with the
admin section, you need to create a new .htpasswd entry. This is an
encrypted password oscommerce uses to protect the admin area. First
browse to where the .htpasswd file is located through the cpanel's
file manager.
C...
If you installed a new script and are getting the 500 error trying to
load the page please see this document first as you might need to turn
register globals on.
When you receive an error "Internal server error 500" on your site,
you have to check the error log in your cPanel for more information.
To do this log in your cPanel, click on the "Error log" in Logs box
and you will see a list of the ...
WHAT IS SUPHP?
(su = switch user, allowing one user to "switch" to another if
authorised)
The main reason for using suPHP is added security, but it also makes
Wordpress , Joomla and other php scripts more user friendly in terms
of file permissions (not needing to set or change them).
It is an Apache module that lets PHP scripts run as the owner of the
script, instead of the web server.
This ...
FATAL ERROR: ALLOWED MEMORY SIZE OF 33554432 BYTES EXHAUSTED (TRIED TO
ALLOCATE 30720 BYTES) IN SOMEFILE.PHP
FATAL ERROR: PHP ALLOWED MEMORY SIZE EXHAUSTED
The error normally occurs when PHP tries to process a big database
records or when importing or exporting.
To fix the problem, please modify the memory_limit line in php.ini to
match this example:
memory_limit = 64M
We do set the maxim...
SOFTACULOUS UPGRADES AND BACKUPS
UPGRADE:
1)It is always better to have all your CMS scripts, blogs like
Joomla, Wordpress etc.; updated to the latest available versions to
secure
your websites from different security threats like spambots, data
injections and mysql injections..etc.;
2)Normally this can be done automatically from your cpanel -->
Softaculous(scripts installer) panel itsel...
Help Desk Software by Kayako