Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 09:32 pm EST
Geeklog Forums
Help! Installed public_html folders twice
socialzone
Anonymous
Help,
Geeklog was installed by my web host, and I have read all four installation instructions and I still don't get where the public_html files belong. My web host installed all the files in a folder called geeklog.
I moved the public_html folders(index.php, admin, etc.) and everything else under the directory twice. One is in the webroot directory and the other is in geeklog/public_html
(1) "http://www.socialzone.com//" in root directory
(2) "http://socialzone.com//submit.php?type=story" in geeklog/public_html
I deleted the one in geeklog/public_html, but when I typed my domain I received an error message so I had to put the files back. What shoud I do? Whenever I tried to delete one or the other, I get the following error message " The page cannot be found".
What I tried to do was moved everything from "geeklog/public_html" so when I typed mydomain.com, the new site created by geeklog would appear.
Thank you in advance for your help.
P.S. The site seems to be working, but I don't know for how long. I had to update the logo and color twice.
Geeklog was installed by my web host, and I have read all four installation instructions and I still don't get where the public_html files belong. My web host installed all the files in a folder called geeklog.
I moved the public_html folders(index.php, admin, etc.) and everything else under the directory twice. One is in the webroot directory and the other is in geeklog/public_html
(1) "http://www.socialzone.com//" in root directory
(2) "http://socialzone.com//submit.php?type=story" in geeklog/public_html
I deleted the one in geeklog/public_html, but when I typed my domain I received an error message so I had to put the files back. What shoud I do? Whenever I tried to delete one or the other, I get the following error message " The page cannot be found".
What I tried to do was moved everything from "geeklog/public_html" so when I typed mydomain.com, the new site created by geeklog would appear.
Thank you in advance for your help.
P.S. The site seems to be working, but I don't know for how long. I had to update the logo and color twice.
6
6
Quote
Status: offline
scroff
Forum User
Regular Poster
Registered: 02/19/03
Posts: 111
Get thee away from GoDaddy!
The public_html files of a geeklog site go in either a /www or /public_html folder (the webroot). All other files go outside that directory, or above the webroot, for security. GoDaddy doesn't let you go above the webroot. What you have to do is follow these instructions for installing within the webroot. You'll have to password protect the folder where you put everything thats supposed to be above the webroot and be sure to have the paths correct in config.php.
good luck
Preferably, get away from GoDaddy. Your site looks very professional, why have a second rate GL install?
The public_html files of a geeklog site go in either a /www or /public_html folder (the webroot). All other files go outside that directory, or above the webroot, for security. GoDaddy doesn't let you go above the webroot. What you have to do is follow these instructions for installing within the webroot. You'll have to password protect the folder where you put everything thats supposed to be above the webroot and be sure to have the paths correct in config.php.
good luck
Preferably, get away from GoDaddy. Your site looks very professional, why have a second rate GL install?
6
5
Quote
socialzone
Anonymous
Thanks Scroff,
I will download the public_html files on my computer and upload them again to the newly created socialzone.com/public_html.
I will download the public_html files on my computer and upload them again to the newly created socialzone.com/public_html.
5
6
Quote
Status: offline
scroff
Forum User
Regular Poster
Registered: 02/19/03
Posts: 111
Make sure you read those instructions I linked to clearly. You can't just create a 'public_html' directory and expect it to work. It might install, but all of your folders and files will still be world accessable.
This means that I can get to them and you don't want people getting to your config.php etc etc. If your server doesn't have a public_html or a www or a htdocs folder when you first go to it, adding one won't be the same.
Here's what I would do if I were you.
1)Wipe everything out, including the database.
2)Create a new database
3)On your server, which is now clear of everything except for server files and folders, create a new folder. Give it an unusual name, one that won't be easily guessed, and protect it. I'm not sure if you can use htaccess or not on your server. Ask them how to do this.
4)Upload everything that is not in the public_html installation folder on your computer into this new folder.
5)Upload everything that is in the public_html folder on your computer outside the new folder you just created. So you would open the public_html folder on your computer and upload everything in there to your server, just like it is.
6)Set your paths in config.php and lib-common.php. They will look something like this;
in config.php where it says,
$_CONF['path'] = '/home/content/x/x/x/xxxxxx/html/what ever you named your new folder/'; (x's are palceholders, put your info in there)
in config.php where it says,
you put
$_CONF['path_html'] = '/home/content/x/x/x/xxxxx/html/';
Then, in lib-common.php, where it says
you put
require_once('/home/content/x/x/x/xxxxx/html/name of your newly created folder/config.php');
This should get you up and running. Make sure you have the proper database name, username and password for your database in config.php. Make sure you chmod the proper folders and files like this;
chmod -R 775 your new folder/logs
chmod -R 775 your new folder/data
chmod -R 775 your new folder/backups
chmod -R 775 backend
chmod -R 775 images/articles
chmod -R 775 images/topics
chmod -R 775 images/userphotos
Then run the installation script at http://yourgeeklogsite/admin/install/install.php
Let me know how you make out.
This means that I can get to them and you don't want people getting to your config.php etc etc. If your server doesn't have a public_html or a www or a htdocs folder when you first go to it, adding one won't be the same.
Here's what I would do if I were you.
1)Wipe everything out, including the database.
2)Create a new database
3)On your server, which is now clear of everything except for server files and folders, create a new folder. Give it an unusual name, one that won't be easily guessed, and protect it. I'm not sure if you can use htaccess or not on your server. Ask them how to do this.
4)Upload everything that is not in the public_html installation folder on your computer into this new folder.
5)Upload everything that is in the public_html folder on your computer outside the new folder you just created. So you would open the public_html folder on your computer and upload everything in there to your server, just like it is.
6)Set your paths in config.php and lib-common.php. They will look something like this;
in config.php where it says,
// This should point to the directory where your config.php file resides.
you put$_CONF['path'] = '/home/content/x/x/x/xxxxxx/html/what ever you named your new folder/'; (x's are palceholders, put your info in there)
in config.php where it says,
// You only need to change this if you moved or renamed the public_html
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html'] = '/path/to/your/public_html/';
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html'] = '/path/to/your/public_html/';
you put
$_CONF['path_html'] = '/home/content/x/x/x/xxxxx/html/';
Then, in lib-common.php, where it says
/**
* Configuration Include: You should ONLY have to modify this line.
* Leave the rest of this file intact!
*
* Make sure to include the name of the config file,
* i.e. the path should end in .../config.php
*/
* Configuration Include: You should ONLY have to modify this line.
* Leave the rest of this file intact!
*
* Make sure to include the name of the config file,
* i.e. the path should end in .../config.php
*/
you put
require_once('/home/content/x/x/x/xxxxx/html/name of your newly created folder/config.php');
This should get you up and running. Make sure you have the proper database name, username and password for your database in config.php. Make sure you chmod the proper folders and files like this;
chmod -R 775 your new folder/logs
chmod -R 775 your new folder/data
chmod -R 775 your new folder/backups
chmod -R 775 backend
chmod -R 775 images/articles
chmod -R 775 images/topics
chmod -R 775 images/userphotos
Then run the installation script at http://yourgeeklogsite/admin/install/install.php
Let me know how you make out.
4
5
Quote
All times are EST. The time is now 09:32 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content