I am new to CMS Made Simple. Was looking at Wordpress then found this software...it is just what I need.
I installed it in /home/xxxxxx/public_html/cms. When I go to mysite.com the browser lists all the files in the home/xxxxxx/public_html directory. If I go to mysite.com/cms I see my website. I have been trying to read prior posts on this problem but I am confused. Can someone list the steps I need to take to fix it so mysite.com shows my website?
Thanks,
dodgebros
What's next after installing software ?
Re: What's next after installing software ?
Hi,
You should move all files from the 'cms' directory to the 'home/xxxxxx/public_html' directory, because that is the location that web server is serving to the clients (people who visit your website).
Moving can be done via FTP client or via your host's control panel (probaly cPanel).
You should move all files from the 'cms' directory to the 'home/xxxxxx/public_html' directory, because that is the location that web server is serving to the clients (people who visit your website).
Moving can be done via FTP client or via your host's control panel (probaly cPanel).
Re: What's next after installing software ?
OK...here is what I now have:
Contents of home/xxxxxx/public_html/htaccess
Options -Indexes
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index.php index.html
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule !^cms(/?|/.+)$ /cms%{REQUEST_URI} [L]
Contnets of home/xxxxx/public_html/cms/htaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
<Files config.php>
order allow,deny
deny from all
</Files>
RewriteBase /cms
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
Contents of home/xxxxxx/public_html/cms/config.php
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxx';
$config['db_password'] = 'xxxx';
$config['db_name'] = 'xxxx';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://mydomain.com';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['timezone'] = 'America/New_York';
$config['default_encoding'] = 'utf-8';
$config['admin_dir'] = 'xxxx';
?>
Now when I go to mydomain.com I get this error message:
Warning: require_once(/home/xxxxxx/public_html/fileloc.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/index.php on line 23
Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxx/public_html/fileloc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/index.php on line 23
I am new to this so your help will be greatly appreciated.
Contents of home/xxxxxx/public_html/htaccess
Options -Indexes
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index.php index.html
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule !^cms(/?|/.+)$ /cms%{REQUEST_URI} [L]
Contnets of home/xxxxx/public_html/cms/htaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
<Files config.php>
order allow,deny
deny from all
</Files>
RewriteBase /cms
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
Contents of home/xxxxxx/public_html/cms/config.php
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxx';
$config['db_password'] = 'xxxx';
$config['db_name'] = 'xxxx';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://mydomain.com';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['timezone'] = 'America/New_York';
$config['default_encoding'] = 'utf-8';
$config['admin_dir'] = 'xxxx';
?>
Now when I go to mydomain.com I get this error message:
Warning: require_once(/home/xxxxxx/public_html/fileloc.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/index.php on line 23
Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxx/public_html/fileloc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/index.php on line 23
I am new to this so your help will be greatly appreciated.
Re: What's next after installing software ?
You need to change the "RewriteBase /cms" to "RewriteBase /"
ps: why is there still a .htaccess file in /cms? did you move all files to public_html? the rewritebase should be in the htaccess file in the public_html as you have enabled mod_rewrite in you config file
Greetings,
Manuel
ps: why is there still a .htaccess file in /cms? did you move all files to public_html? the rewritebase should be in the htaccess file in the public_html as you have enabled mod_rewrite in you config file
Greetings,
Manuel
Re: What's next after installing software ?
if you are unsure about the contents of the .htaccess file, there is an example you can copy/paste (and uncomment/fill out what you need) in the doc folder.
Greetings,
Manuel
Greetings,
Manuel
Re: What's next after installing software ?
I have not moved any of the files to public_html directory. It is my understanding that CMS Made Simple can be installed anf run from a subdirectory, whihch is what I want to do. I made the change "RewriteBase /" but it didn't help.
Thanks for trying to help!
Thanks for trying to help!
Re: What's next after installing software ?
In that case you should change your "$config['root_url'] = 'http://mydomain.com';" to include the subdirectory.
and leave the rewritebase as it was (including the subdirectory)
Greetings,
Manuel
and leave the rewritebase as it was (including the subdirectory)
Greetings,
Manuel
Re: What's next after installing software ?
You can do that indeed. In fact you are already doing that. But in your startpost you're asking how to move it to the webroot directory (public_html), so what is it that you really want now?dodgebros wrote:I have not moved any of the files to public_html directory. It is my understanding that CMS Made Simple can be installed anf run from a subdirectory, whihch is what I want to do. I made the change "RewriteBase /" but it didn't help.
Thanks for trying to help!