What's next after installing software ?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
dodgebros
Forum Members
Forum Members
Posts: 18
Joined: Fri Dec 30, 2011 2:54 pm

What's next after installing software ?

Post by dodgebros »

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
scelle
Forum Members
Forum Members
Posts: 81
Joined: Sun Apr 24, 2011 8:14 pm

Re: What's next after installing software ?

Post by scelle »

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).
dodgebros
Forum Members
Forum Members
Posts: 18
Joined: Fri Dec 30, 2011 2:54 pm

Re: What's next after installing software ?

Post by dodgebros »

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.
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: What's next after installing software ?

Post by manuel »

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
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: What's next after installing software ?

Post by manuel »

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
dodgebros
Forum Members
Forum Members
Posts: 18
Joined: Fri Dec 30, 2011 2:54 pm

Re: What's next after installing software ?

Post by dodgebros »

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!
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: What's next after installing software ?

Post by manuel »

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
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: What's next after installing software ?

Post by mcDavid »

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!
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?
Locked

Return to “[locked] Installation, Setup and Upgrade”