Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 02:15 am EDT

Geeklog Forums

I see my site locally but not on the Internet....


Status: offline

ola_one

Forum User
Full Member
Registered: 06/28/03
Posts: 186
Hello all,

I have finished the first stage of my installation, and locally on my webserver, everything is neat and tidy. On the other hand, when I view the site from the internet, all the pictures are mesed up.

Can someone please tell me what I am doing wrong.

The url is

http://216.49.74.183

On my websertver, I see everything just the way it should be, but not on the internet...

I should let you know that the path to my public_html looks like the following:

e:/apache/apache2/htdocs/feyiola_public

While path to my geeklog directory is:

e:/apache/apache2/htdocs/geeklog-feyiola

Docroot is the same as the path to public_html, while my gallery is inside the docroot.

Please help

Ola

 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Your paths are wrong. Fix them in your config.php file. You set it to localhost, but it should be your actual http address.
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 06/28/03
Posts: 186
Your paths are wrong. Fix them in your config.php file. You set it to localhost, but it should be your actual http address


Do I define the url somewhere first? The URL that I people will type to get to my site is www.feyiola.com.

When I look in config.php, it says:
// Make sure this is the correct URL to your site, i.e. to where Geeklog's
// index.php file resides (no trailing slash).
$_CONF['site_url'] = 'http://localhost';

The problem is that it says where index.php resides, that is what is confusing me. Am I at this point supposed to change the localhost entry to www.feyiola.com?

I need to reiterate the fact that I see the site locally on my PC, but I guess I see it since I am using localhost...Do I need to make changes in httpd.conf (Apache) and then change the localhost entry as well?

Really sorry to sound this stupid.

Thank you
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
No need to be sorry.

Yeah, just change http://localhost to http://www.feyiola.com

I've also noticed that going to http://www.feyiola.com redirects me to http://216.49.74.183. That will probably mess up your cookies. Change your httpd.conf file's following line:

ServerName 216.49.74.183

to

ServerName www.feyiola.com
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 06/28/03
Posts: 186
Thanks Turias,

My ultimate goal is to have two sites on this same PC and run VIRTUALHOST.

So in looking forward, should I make the url the IP address or it has to be www.feyiola.com

For now, I only have feyiola.com running, but would I need to change all these again in the near future, or it would not matter if running Virtualhosts?

I will not be able to change anything til I get home later this evening. EST.

Thanks a million.

Ola


 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Quote by ola_one:My ultimate goal is to have two sites on this same PC and run VIRTUALHOST.

That shouldn't be a problem.

Quote by ola_one:So in looking forward, should I make the url the IP address or it has to be www.feyiola.com

For each of your two instances of Geeklog, the config.php variable should be what you want people to type into their browser to get to your site. http://www.feyiola.com should be one, and the other should be your other domain/subdomain.

Quote by ola_one:For now, I only have feyiola.com running, but would I need to change all these again in the near future, or it would not matter if running Virtualhosts?

I'm not sure. Maybe someone more experienced with VirtualHosts can help you out here.
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 06/28/03
Posts: 186
Thanks again Turias,

Yesterday 23rd was my wedding anniversary 14th. So I did not get a chance to work on the webserver. But when I changed those items on my system, my webserver that was seeing everything clearly is now seeing it like I see it over the internet.

All I changed were the servername in httpd.conf and the $_Conf ['site url'] in config.php

Is there a change that I need to implement in say, lib-common.php or somewhere else?

All I find confusing is how the config.php file which resides in my geeklog directory is in www.feyiola.com

My $_DB_hostname is still 'localhost' Is that okay?

Do I need to change all the localhost entries?

Thanks a million

Ola
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Quote by ola_one:All I changed were the servername in httpd.conf and the $_Conf ['site url'] in config.php

Is there a change that I need to implement in say, lib-common.php or somewhere else?


Happy anniversary! Nope. lib-common.php points to your config.php file. Since you aren't getting errors, it must be pointing there fine.


Quote by ola_one:All I find confusing is how the config.php file which resides in my geeklog directory is in www.feyiola.com


lib-common.php (which is in the top-level web directory) contains the drive path to config.php. That's how every single file finds it... through lib-common.php.

Quote by ola_one:My $_DB_hostname is still 'localhost' Is that okay?


As long as your webserver is on the exact same box as your database, that will always be fine. If you ever move one but not the other, you will need to change it.

Quote by ola_oneBig Grino I need to change all the localhost entries?


I can't really think of any others. Theres only the entries in config.php for the hostname and database hostname, and both seem fine to me.
 Quote

Status: offline

ola_one

Forum User
Full Member
Registered: 06/28/03
Posts: 186
Still not working, but thanks a million.

I have changed the servername in httpd.conf to www.feyiola.com When that was the only thing I changed, I see my site locally on the webserver.

But when I changed site url in config.php from 'localhost' to 'www.feyiola.com', I get all the broken links.

I think the problem has to do with intranet vs internet and some configuration somewhere. My site has all the right links and all and it is a site but only locally.

Can anyone figure this out please?

Thanks

Ola
 Quote

All times are EDT. The time is now 02:15 am.

  • 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