Page 1 of 1
[Solved] Frontend of Site is Blank 404, Admin is fine
Posted: Mon Feb 01, 2010 7:36 pm
by cspan26
Hi Everyone,
I have searched the forums and search engines for the past 4 days with no solution to this problem and I need help!
I have a website that was created for a client a while back. It required updating and new modules, which required PHP5 to function. I asked the hosting provider to move the location of the site to a server of theirs that had PHP5 enbaled and they did so now problem and everything moved fine (site and database).
Now the unfortunate thing is the sites back end admin works fine but anything viewed on the front end using the index.php file in the root comes up with a 404 error. I installed a CMSMS test version in a sub folder and used the same database and the front end worked. I also did a new install of CMSMS in the root and used a new database and the front end worked, but the minute I changed the config.php back to the first database the front end doesn't work.
I don't know what the hell else to do....I have told the host about the problem and they have had their tech guys look over everything 3 or 4 times and they keep telling me that nothing is wrong on their end, which I believe because the site works in other situations just not in the root with the index.php.
Here are my CMSMS and Server deatils:
CMS Version 1.6.6
Modules Installed:
CMSMailer 1.73.14
FileManager 1.0.1
MenuManager 1.6.2
ModuleManager 1.3.1
News 2.10.3
nuSOAP 1.0.1
Printing 1.0.4
Search 1.6.1
ThemeManager 1.1.1
TinyMCE 2.5.5
CGExtensions 1.14.1
Play 0.5.2
Album 0.9.3
FormBuilder 0.5.5
FrontEndUsers 1.6.11
Captcha 0.3.1
EventsListing 1.3
CustomContent 1.5.3
FEmessages 1.1
DownloadManager 1.3
Server:
PHP Version 5.2.6
Linux
Apache 2.0
safe_mode is off
memory limit 232M
All appropriate folders are all set to the the proper CHMOD read/write permission settings.
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Mon Feb 01, 2010 7:41 pm
by Jeff
Rough guess is that your .htaccess is messed up and redirecting your pages incorrectly.
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Mon Feb 01, 2010 7:58 pm
by cspan26
thanks for replying ajprog.
I thought it might be something about .htaccess because the following is an error message that the hosting company sent me:
Thu Jan 28 12:57:55 2010] [crit] [client 216.168.96.225] (13)Permission denied: /var/www/vhosts/kawarthalakesdoctors.org/httpdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
But the root folder doesn't have an .htaccess file (I turned on view hidden files so it is not hidden) and the root folder has never had an .htaccess file. So I added one to the root using the .htaccess stuff from the /doc folder included with CMSMS and it didn't change anything, still the 404 error.
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Mon Feb 01, 2010 8:13 pm
by Rolf
Now the unfortunate thing is the sites back end admin works fine but anything viewed on the front end using the index.php file in the root comes up with a 404 error.
Do you have a default page set in the listcontent?
If you don't, you also get a error 404...
Hope this helps (a bit)
Regards Rolf
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Mon Feb 01, 2010 9:19 pm
by cspan26
thanks for reply Rolf!
To answer your question yes I do have a default page set in the backend and I have changed it to a different page thinking that was the problem but it didn't help, but I do have a page default set.
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Mon Feb 01, 2010 11:39 pm
by Jeff
Not much we can do but guess without looking at the site, and see the config file.
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Tue Feb 02, 2010 1:33 am
by cspan26
Sorry Here is the site URL:
http://www.kawarthalakesdoctors.org
Below is what is in the config.php file. I did turn on debug mode and I recieved no errors from that Code:
Code: Select all
<?php
#CMS Made Simple Configuration File
#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
#-----------------
#Behaviour Settings
#-----------------
# These settings will effect the overall behaviour of the CMS application, please
# use extreme caution when editing these. Additionally, some settings may have
# no effect on servers with significantly restricted configurability.
# If you are experiencing propblems with php memory limit errors, then you may
# want to try enabling and/or adjusting this setting.
# Note: Your server may not allow the application to override memory limits.
$config['php_memory_limit'] = '';
# In versions of CMS Made Simple prior to version 1.4, the page template was processed
# in it's entirety. This behaviour was later changed to process the head portion of the
# page template after the body. If you are working with a highly configured site that
# relies significantly on the old order of smarty processing, you may want to try
# setting this parameter to false.
$config['process_whole_template'] = false;
# CMSMS Debug Mode? Turn it on to get a better error when you
# see {nocache} errors, or to allow seeing php notices, warnings, and errors in the html output.
# This setting will also disable browser css caching.
$config['debug'] = false;
# Output compression?
# Turn this on to allow CMS to do output compression
# this is not needed for apache servers that have mod_deflate enabled
# and possibly other servers. But may provide significant performance
# increases on some sites. Use caution when using this as there have
# been reports of incompatibilities with some browsers.
$config['output_compression'] = false;
#-----------------
#Database Settings
#-----------------
#This is your database connection information. Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxxxxxxxxxx';
$config['db_password'] = 'xxxxxxxxxx';
$config['db_name'] = 'xxxxxxxxxxx';
#Change this param only if you know what you are doing
$config["db_port"] = '';
#If app needs to coexist with other tables in the same db,
#put a prefix here. e.g. "cms_"
$config['db_prefix'] = 'kldcms_';
#Use persistent connections? They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;
#Use ADODB Lite? This should be true in almost all cases. Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.kawarthalakesdoctors.org';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/var/www/vhosts/kawarthalakesdoctors.org/httpdocs';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/var/www/vhosts/kawarthalakesdoctors.org/httpdocs/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/var/www/vhosts/kawarthalakesdoctors.org/httpdocs/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
#---------------
#Upload Settings
#---------------
#Maxium upload size (in bytes)?
$config['max_upload_size'] = 20000000;
#Permissions for uploaded files. This only really needs changing if your
#host has a weird permissions scheme.
$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
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'none';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
#--------------
#Image Settings
#--------------
#Which program should be used for handling thumbnails in the image manager.
#See http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/Image_Manager for more
#info on what this all means
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/var/www/vhosts/kawarthalakesdoctors.org/httpdocs/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
#------------------------
#Locale/Encoding Settings
#------------------------
#Locale to use for various default date handling functions, etc. Leaving
#this blank will use the server's default. This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = '';
#In almost all cases, default_encoding should be empty (which defaults to utf-8)
#and admin_encoding should be utf-8. If you'd like this to be different, change
#both. Keep in mind, however, that the admin interface translations are all in
#utf-8, and will be converted on the fly to match the admin_encoding. This
#could seriously slow down the admin interfaces for users.
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
#This is a mysql specific option that is generally defaulted to true. Only
#disable this for backwards compatibility or the use of non utf-8 databases.
$config['set_names'] = true;
# URL of the Admin Panel section of the User Handbook
# Set none if you want hide the link from Error
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
?>
[Moderator: Deleted database passwords.]
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Tue Feb 02, 2010 2:11 am
by replytomk3
What is the pretty URL setting in config.php and what is the content of your htaccess file?
Re: Frontend of Site is Blank 404, Admin is fine
Posted: Tue Feb 02, 2010 5:43 pm
by cspan26
I'm sorry I don't know the answer to the Pretty URL question. I know very little of what Pretty URL's even are. Is there nothing in the config.php that I posted on there that would tell you that? Where can I find this information?
As for the .htaccess there is no content in it because there is no .htaccess file in my sites root.
Re: [Solved] Frontend of Site is Blank 404, Admin is fine
Posted: Tue Feb 02, 2010 7:36 pm
by cspan26
Hi Everyone.....well the solution is a very simple and very obvious one. The host that I had was bad, they are nothing but garbage.
I took a complete copy of the site and database and installed it on another hosting location I had and everything works 100%. I definitely won't be recommending that old host to anyone!
Thanks again all!
Re: [Solved] Frontend of Site is Blank 404, Admin is fine
Posted: Tue Feb 02, 2010 8:02 pm
by JeremyBASS
Who was the host? just wondering.. I have a list of "Not to Use" hosts and would love to know if I need to add to it... Cheers Jeremy
Re: [Solved] Frontend of Site is Blank 404, Admin is fine
Posted: Wed Feb 03, 2010 12:01 am
by replytomk3
Anyone without 24/7 telephone support and SSH is a no-no.
Re: [Solved] Frontend of Site is Blank 404, Admin is fine
Posted: Wed Feb 03, 2010 10:01 am
by Rolf
@ cspan26
Leaving your database loginname and password (config.php) in public posts is asking for trouble...

I deleted them for you.
Regards, Rolf