Setting up my intranet

Permalink
Hi,

I need some help setting up my intranet. Someone else who used to work at my company created a VMWare Concrete5 server. A third party company designed my site and sent it to me in a zip package.

I've unzipped all the files to the following server (file locations)

Server Name: xxx-concrete5
Unzipped files: c:\xampp\htdocs\concrete
Here is the current site.php file:

<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mhcintranet');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'epicp_mhcintranet');
define('BASE_URL', 'http://concrete5/);
define('DIR_REL', '/staging/mhcintranet');
define('PASSWORD_SALT', 'O1y3v7ZDtUhJkN0bE1NRcprgQsXiRzsiwIBLPip0mwFslX3uiQkDGjHgEyPCTtke');

Can someone give me guidance on what I'm not renaming correctly? Or if I've put it all in the wrong place.

Thanks

View Replies: View Best Answer
jero replied on at Permalink Reply
jero
It depends entirely on what you mean by "designed a site" and what files you have. Perhaps you might post a list of them? But before you do that, what happens when you typehttp://concrete5/ into your browser address bar - I would hope it comes up with the C5 site using the default theme. If not, you need to fix that first.
mdzoidberg replied on at Permalink Reply
mdzoidberg
If you are running this from your localhost, make the following changes, open up site.php under the config folder, lookup;

define('BASE_URL', 'http://concrete5/);


Change to:
define('BASE_URL','http://'.$_SERVER["HTTP_HOST"]);


That way you will always be able to access locally (from within the server) and by using your server's IP.

Your site.php file will look like this;
<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mhcintranet');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'epicp_mhcintranet');
define('BASE_URL','http://'.$_SERVER["HTTP_HOST"]);
define('DIR_REL', '/concrete');
define('PASSWORD_SALT', 'O1y3v7ZDtUhJkN0bE1NRcprgQsXiRzsiwIBLPip0mwFslX3uiQkDGjHgEyPCTtke');


the above should work if you unzipped the files to c:\xampp\htdocs\concrete like you mentioned above, then to access your site you will type;

http://localhost/concrete (from inside the vmware machine)
or
http://yourserverIP/concrete (from any other PC on your network)

See if that works, cheers.
mhcit replied on at Permalink Reply
thanks md...

I made the changes and now I'm getting this error when trying to open localhost/concrete


Warning: require(concrete/dispatcher.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\concrete\index.php on line 2

Fatal error: require() [function.require]: Failed opening required 'concrete/dispatcher.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\concrete\index.php on line 2

Here is my updated site.php

<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mhcintranet');
define('DB_PASSWORD', xxxxxxxxxxx);
define('DB_DATABASE', 'epicp_mhcintranet');
define('BASE_URL','http://'.$_SERVER["HTTP_HOST"]);
define('DIR_REL', '/concrete');
define('PASSWORD_SALT', 'O1y3v7ZDtUhJkN0bE1NRcprgQsXiRzsiwIBLPip0mwFslX3uiQkDGjHgEyPCTtke');
mhcit replied on at Permalink Reply
Just bumping this up looking for some more answers.

Thanks
mdzoidberg replied on at Permalink Reply
mdzoidberg
Can you post the structure of your unzipped folder?
jero replied on at Permalink Reply
jero
It sounds like your concrete folder is missing.

What happens when you type inhttp://xx.xx.xx.xx where xx.xx.xx.xx is your server IP?

Why are you installing into a sub folder?

You only need to define DIR_REL if you're using a subfolder, otherwise it should be blank.

Similarly, BASE_URL can be left out entirely, unless you specifically want to redirect all requests to the hostname it specifies.
mhcit replied on at Permalink Reply 2 Attachments
I redid the folder structure. the files are unzipped to c:\MHC
the attached file shows the directory structure

I modified the site.php to reflect the new directory.
<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mhcintranet');
define('DB_PASSWORD', 'jKLwSGNw');
define('DB_DATABASE', 'epicp_mhcintranet');
define('BASE_URL','http://'.$_SERVER["HTTP_HOST"]);
define('DIR_REL', '/MHC');
define('PASSWORD_SALT', 'O1y3v7ZDtUhJkN0bE1NRcprgQsXiRzsiwIBLPip0mwFslX3uiQkDGjHgEyPCTtke');

And this is what I'm getting whether I type in the server namehttp://mhc-concrete/MHC

******I noticed I was missing the core concrete files, so I fixed that.

Screen shots are of c:\MHC and c:\MHC\Concrete
Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
mhc-concrete5
7/11/2011 12:02:10 PM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
nteaviation replied on at Permalink Reply
nteaviation
You are missing the /concrete (Concrete5 core) folder, according to your screen shot.
mdzoidberg replied on at Permalink Best Answer Reply
mdzoidberg
ok, first things first, you mentioned at the beginning of your post that you are using XAMPP on the vmware server, "Unzipped files: c:\xampp\htdocs\concrete", right?

Ok, then you must put your files on the following folder (the instructions are based on what your config file looks like)

1- go to C:\xampp\htdocs
2- move the folder under the C drive called MHC into the above directory (C:\xampp\htdocs)
3- get the ip of your vmware server (run ipconfig from a command window inside the vmware server)
4- access by typinghttp://youripaddress/MHC

Try that.
mhcit replied on at Permalink Reply
MD,

Thanks so much for all the patience, I'm almost there and I think your answers were helpful. I'm now getting unable to connect to database, A database error occurred while processing this request.

I paid someone to do this site for me, but I'm hosting it internally. Do I need to change the name of the DB_Database or are they supposed to supply me with a file that I can import into MySQL?

Thanks again.
mdzoidberg replied on at Permalink Reply
mdzoidberg
It's good to see that is somewhat working :) , ok, for the DB it depends, you could do a reinstall by deleting the site.php file (better if you just rename it to siteold.php) and going tohttp://yourip/MHC, if you do a reinstall this will give you a new C5 environment BUT if the people that build your site have some extra stuff like custom content and if they already defined your site structure and such then you need to get in touch with them and ask then to send you a dump of your SQL file.

You can then import that file into your DB by using XAMMP's phpmyadmin tool (http://yourip/phpmyadmin)

I would suggest to first check with the people that build your site to check as to whether or not you have already custom content.

After that let us know and we can proceed accordingly.
mhcit replied on at Permalink Reply
YEAH :) :) It is working!! Thank you MD for your help, I look forward to learning more as I go along.

Off to turn on Pretty URLS and to start uploading content.
mdzoidberg replied on at Permalink Reply
mdzoidberg
Cool, glad to help, enjoy C5.

Cheers.