7 Replies - 3063 Views - Last Post: 24 March 2012 - 05:40 PM

#1 macmyapples  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-January 12

Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 08:14 AM

The site comes with the installation manual(below), seems pretty straight forward but for some reason the site wont' show up. My hosting is with Hostmonster and Ive uploaded everything to /public_html

The first step:
1. Open /include/config.php

Find:
 /home/username/public_html

Replace with the path to your public web directory.



Ive replaced it with /public_html

Everything else was repalced properly as well.
Any help would be appreciated. Tia



Complete instructions:
1. Open /include/config.php

Find:
 /home/username/public_html

Replace with the path to your public web directory.

Find:
http://www.example.com

Replace with your domain name where you are going to install the script.


Find:
localhost

Replace with your SQL host.


Find:
database_username

Replace with your database username.


Find:
database_password

Replace with your database password.

Find:
database_name

Replace with your database name.

2. Import database.sql into your newly created database for the script.

3. Upload all files in the public folder to your web server's public directory.

4. CHMOD 777 the following files and directories:


/images/membersprofilepic/
/images/membersprofilepic/o/
/images/membersprofilepic/thumbs/
/pdata/
/pdata/t/
/temporary/


Is This A Good Question/Topic? 0
  • +

Replies To: Cannot install script/site on Hostmonster hosting

#2 Atli  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,990
  • Joined: 08-June 10

Re: Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 09:24 AM

View Postmacmyapples, on 24 March 2012 - 03:14 PM, said:

Ive replaced it with /public_html

That could be the the problem. The path to your "public_html" folder is not /public_html. That would indicate that the folder is directly under the root, which is highly unlikely. You can find out where it is by creating a new .php file in your public_html folder, call it "test.php" or something, and putting this into it:
<?php
echo dirname($_SERVER["SCRIPT_FILENAME"]);


Then go to example.com/test.php, replacing example.com with your domain. That would print the location of your public_html directory on the server.

View Postmacmyapples, on 24 March 2012 - 03:14 PM, said:

4. CHMOD 777 the following files and directories:

This is not a good idea. You should never CHMOD anything on a production server to 777. You should figure out which user is running the HTTP server and give it, or at most it's group, as limited permissions as you can. (Ask your host about this if you are unsure.)

For example, this would be more appropriate:
# Changes ownership of the directory, and everything in it
# to the "www-data" user and group.
$ chown -R www-data:www-data /path/to/directory

# Changes the permissions on the directory, and everything
# in it, so that the owner and the group can read and write
# to them, but not execute files. 
$ chmod -R 0660 /path/to/directory


This assumes that the HTTP server is running under the "www-data" user, and that any FTP/SSH users that you use to access the files are in the "www-data" group.

It's a basic security measure to not permit anybody to execute user supplied files. Besides, there is no need to allow this for images and other non-executable files, which is usually all that these directories contain.

P.S.
I've moved this topic to the Web Servers and Hosting forum. It doesn't really have anything to do with HTML/CSS.
Was This Post Helpful? 1
  • +
  • -

#3 macmyapples  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-January 12

Re: Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 10:52 AM

The trick with test.php worked great, it showed me /home1/myusername/public_html I proceeded with pointing to it from the config.php and it did not work :( then Ive re-uped all files to the root directory /home1/username/ with the same config file and everything showed up, so Ive removed the site files from the /public_html and it stopped again. Confusing, seems like files need to be delegated between those two directories, dont know what else could be.


And thanks for the chmod advice, will def look into it.
Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6063
  • View blog
  • Posts: 23,517
  • Joined: 23-August 08

Re: Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 11:16 AM

Wouldn't the best course of action be to contact the hosting company for support?

And for the record, simply saying "it did not work" is not sufficient information to get help.
Was This Post Helpful? 0
  • +
  • -

#5 macmyapples  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-January 12

Re: Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 11:28 AM

Thanks, I did contact them, but it takes 24-48 hours, I want to do everything I could right now.

By "it didnt work" I meant the site did not show up, Im kinda a noob, you can tell.
Was This Post Helpful? 0
  • +
  • -

#6 Atli  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,990
  • Joined: 08-June 10

Re: Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 12:56 PM

View Postmacmyapples, on 24 March 2012 - 05:52 PM, said:

then Ive re-uped all files to the root directory /home1/username/ with the same config file and everything showed up

What does the file structure of your site look like? Where is the index.php file?
Was This Post Helpful? 0
  • +
  • -

#7 macmyapples  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-January 12

Re: Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 01:25 PM

Not sure what exactly you mean by structure, but the index.php is located in the root /home1/myusername/ right now, but when I access http://name.com/index.php I get 404 error.

Another thing that could be is the server requirements for this script to work, Im still waiting from Hostmonster to confirm.

#Apache web server with mod_rewrite enabled.
#MySQL version 4.0+

#GD Library 2+ with freetype support.

#PHP 5.2+ with the following configuration

#safe_mode = off

#open_basedir = (no value)

#output_buffering = on

#register_argc_argv = On

#max_execution_time = 100(Recommended or higher)

#session.gc_maxlifetime = 10000 (Recommended)

#upload_max_filesize = 5MB (Recommended )

#post_max_size = 5MB (Recommended)

#register_globals = off

#magic_quotes_gpc = on

#allow_url_fopen = on

#Apache MultiViews disabled


Was This Post Helpful? 0
  • +
  • -

#8 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5314
  • View blog
  • Posts: 27,220
  • Joined: 10-May 07

Re: Cannot install script/site on Hostmonster hosting

Posted 24 March 2012 - 05:40 PM

The pound symbols are comment tags. Just so you know, ever line in that config file is commented out.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1