Jump to content


Photo
- - - - -

Large deployment troubleshooting and performance tips


  • This topic is locked This topic is locked
No replies to this topic

#1 Cameron Allen

Cameron Allen

    Senior Member

  • Administrators
  • 671 posts

Posted 24 August 2004 - 05:58 AM

TROUBLESHOOTING AND PERFORMANCE TIPS!

=====================================
All I see is code when I try to run /sohoadmin/index.php?
=====================================


This is an indication that PHP is not installed or currently
running in your server environment. You will need to
contact your ISP or download and install PHP to your server
by going to http://www.php.net. Follow the instructions
provided based on your operating system. Only qualified
system adminstrators should perform this installation.


=====================================
How to modify the PHP.INI file:
=====================================


The PHP.INI file is the configuration file that controls how
the PHP language is used within your server environment. In
most cases you may or may not have access to this file for
modification. If you do not have direct access to the file,
contact your ISP. There is generally a sub-file that can
be modified to achieve the desired results needed.

The PHP.INI file is a simple text file than can be modified
from a text editor within Linux or Windows.

LINUX MACHINES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The PHP.INI file is generally located in /etc/php.ini. You
can use the VI editor to edit if necessary.


WINDOWS MACHINES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The PHP.INI file is generally located in /WindowsNT/php.ini.
You may wish to use the FIND feature to locate it. You can
edit it in notepad or wordpad very easily. Please note, that
in the Windows environment, PHP will automatically make a
backup of the original PHP.INI file in other locations. This
is important to have in case an error is made in the
modification.


=====================================
What to modify within the PHP.INI File:
=====================================


register_globals and short_open_tag is required to be set to
ON in order to run the SMT product. If this is a problem,
you will be notified when running the first time setup.

In some instances, it has been necessary to modify other
variables within the PHP.INI for performance enhancements.
These generally only effect large traffic web sites. The
following settings are recommended in this case:

max_execution_time = 60;
memory_limit = 20M;
post_max_size = 20M;
upload_max_filesize = 10M;

NOTE: These variables already have default settings within
the PHP.INI file. You will want to find the occurrence of
these variables and modify them. DO NOT JUST ADD THESE
TO THE FILE!

NOTE: Before changes will take effect, you must restart your
server.


=====================================
Modifing mySQL settings:
=====================================


The SMT takes advantage of persistant connections in order to
speed up database queries. Because of this, a server may start
experiencing connection errors with large traffic web sites
and/or numerous web sites on a single server environment.
This is easily fixed by modifing or adding the "my.cnf" file. You
can generally locate this file under /etc/my.cnf within the
Linux environment or within the /WindowsNT folder for Windows
servers. If the file does not already exists, you may create
the file.

Add the following lines:

set-variable=max_connections=200
set-variable=wait_timeout=2700

The max_connections settings tells mySQL how many concurrent
connections to the database to allow at one time and the
wait_timeout variable tells how long to wait before closing
a persistant data connection. By default, mySQL is set to wait
up to 8 hours before closing a connection. This could maximize
your connections quickly with a multiple website server or
high traffic web site.

NOTE: Before changes will take effect, you must restart your
server.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users