1.6 Slow Site. [solved]
Posted: Mon Nov 02, 2009 6:10 pm
My site is running slow and I'm not sure if it's me or my host. I'm using StartLogic. Their cpanel is super slow too. I've searched the forums and have tried numerous solutions, but it's just slow. I have contacted my host and they don't see a problem and then after contacting them the site was faster for about 2 days and then slowed down again. I'm on a 24mb connection and I see a problem.
I'd really appreciate any advice.
http://www.california-naturals.com/
[color=black]-- Here's the Config file.
# So I have no idea what my memory limit is, but in the php.ini file I change it to 24 from 8 and I don't know if they will allow more. I've checked their knowledge base and there's no rules listed.
$config['php_memory_limit'] = '24M';
$config['process_whole_template'] = true;
$config['debug'] = false;
$config['output_compression'] = false;
#--- Data Base Settings --#
$config['db_hostname'] = 'serveraddress';
$config['db_username'] = 'username';
$config['db_password'] = 'password';
$config['db_name'] = 'databasename';
$config["db_port"] = '';
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = true;
$config['use_adodb_lite'] = true;
#Path Settings
$config['root_url'] = 'http://www.california-naturals.com';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}
$config['root_path'] = '/home/users/web/b607/sl.calbever/public_html';
$config['admin_dir'] = 'somename';
$config['previews_path'] = '/home/users/web/b607/sl.calbever/public_html/tmp/cache';
$config['uploads_path'] = $config['root_path'].'/uploads';
$config['uploads_url'] = $config['root_url'] . '/uploads';
#Upload Settings
$config['max_upload_size'] = 12000000;
$config['default_upload_permission'] = '664';
#Usability Settings
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;
#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;
#------------
#URL Settings
#------------
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.htm';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
#Image Settings
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = '/home/users/web/b607/sl.calbever/public_html/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
#Locale/Encoding Settings
$config['locale'] = '';
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';[/color]
[/b]
----- HTACCESS
Options +FollowSymLinks
#DirectoryIndex index.php
# CMS Made Simple settings
RewriteEngine on
RewriteBase /
#option to remove directory listings in all folder (avoid publishing unwanted contents)
Options -Indexes
#
# Deny access to config.php
order allow,deny
deny from all
#
# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a ""
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
#OR if the script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR if any script is trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR if the URI contains UNION
RewriteCond %{QUERY_STRING} UNION [OR]
#OR if the URI contains a double slash
RewriteCond %{QUERY_STRING} // [OR]
#OR if the URI contains a *
RewriteCond %{QUERY_STRING} \*
#then deny the request (403)
RewriteRule ^.*$ - [F,L]
# End URL Filtering
# No sense advertising what we are running
ServerSignature Off
# THIS IS FOR PRETTY URL'S
# This redirects from http://cal to www - don't remove.
# --Used
RewriteCond %{HTTP_HOST} !^www\.california-naturals\.com$ [NC]
RewriteRule ^(.*)$ http://www.california-naturals.com/$1 [L,R=301]
# Not used
# CMS Made Simple settings
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
# -- Used
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# -- not used
# RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
# Rewrites the RSS feed
# Rewrites urls
# -- Used
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]
RewriteRule ^feeds/news(.+)$ index.php?page=feeds/news$1
Any help will be appreciated.
Thanks !
I'd really appreciate any advice.
http://www.california-naturals.com/
[color=black]-- Here's the Config file.
# So I have no idea what my memory limit is, but in the php.ini file I change it to 24 from 8 and I don't know if they will allow more. I've checked their knowledge base and there's no rules listed.
$config['php_memory_limit'] = '24M';
$config['process_whole_template'] = true;
$config['debug'] = false;
$config['output_compression'] = false;
#--- Data Base Settings --#
$config['db_hostname'] = 'serveraddress';
$config['db_username'] = 'username';
$config['db_password'] = 'password';
$config['db_name'] = 'databasename';
$config["db_port"] = '';
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = true;
$config['use_adodb_lite'] = true;
#Path Settings
$config['root_url'] = 'http://www.california-naturals.com';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}
$config['root_path'] = '/home/users/web/b607/sl.calbever/public_html';
$config['admin_dir'] = 'somename';
$config['previews_path'] = '/home/users/web/b607/sl.calbever/public_html/tmp/cache';
$config['uploads_path'] = $config['root_path'].'/uploads';
$config['uploads_url'] = $config['root_url'] . '/uploads';
#Upload Settings
$config['max_upload_size'] = 12000000;
$config['default_upload_permission'] = '664';
#Usability Settings
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;
#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;
#------------
#URL Settings
#------------
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.htm';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
#Image Settings
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = '/home/users/web/b607/sl.calbever/public_html/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
#Locale/Encoding Settings
$config['locale'] = '';
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';[/color]
[/b]
----- HTACCESS
Options +FollowSymLinks
#DirectoryIndex index.php
# CMS Made Simple settings
RewriteEngine on
RewriteBase /
#option to remove directory listings in all folder (avoid publishing unwanted contents)
Options -Indexes
#
# Deny access to config.php
order allow,deny
deny from all
#
# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a ""
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
#OR if the script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR if any script is trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR if the URI contains UNION
RewriteCond %{QUERY_STRING} UNION [OR]
#OR if the URI contains a double slash
RewriteCond %{QUERY_STRING} // [OR]
#OR if the URI contains a *
RewriteCond %{QUERY_STRING} \*
#then deny the request (403)
RewriteRule ^.*$ - [F,L]
# End URL Filtering
# No sense advertising what we are running
ServerSignature Off
# THIS IS FOR PRETTY URL'S
# This redirects from http://cal to www - don't remove.
# --Used
RewriteCond %{HTTP_HOST} !^www\.california-naturals\.com$ [NC]
RewriteRule ^(.*)$ http://www.california-naturals.com/$1 [L,R=301]
# Not used
# CMS Made Simple settings
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
# -- Used
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# -- not used
# RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
# Rewrites the RSS feed
# Rewrites urls
# -- Used
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]
RewriteRule ^feeds/news(.+)$ index.php?page=feeds/news$1
Any help will be appreciated.
Thanks !