Posted on: 12/23/03 08:05am
By: ola_one
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
Re:I see my site locally but not on the Internet.
Posted on: 12/23/03 08:48am
By: Turias
Your paths are wrong. Fix them in your config.php file. You set it to localhost, but it should be your actual http address.
Re:I see my site locally but not on the Internet.
Posted on: 12/23/03 10:49am
By: ola_one
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
Re:I see my site locally but not on the Internet.
Posted on: 12/23/03 11:13am
By: Turias
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
Re:I see my site locally but not on the Internet.
Posted on: 12/23/03 11:50am
By: ola_one
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
Re:I see my site locally but not on the Internet.
Posted on: 12/23/03 01:07pm
By: Turias
[QUOTE BY= ola_one]My ultimate goal is to have two sites on this same PC and run VIRTUALHOST.[/QUOTE]
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[/QUOTE]
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?[/QUOTE]
I'm not sure. Maybe someone more experienced with VirtualHosts can help you out here.
Re:I see my site locally but not on the Internet.
Posted on: 12/24/03 01:09pm
By: ola_one
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
Re:I see my site locally but not on the Internet.
Posted on: 12/24/03 01:55pm
By: Turias
[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?[/QUOTE]
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[/QUOTE]
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?[/qUOTE]
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_one]Do I need to change all the localhost entries?[/QUOTE]
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.
Re:I see my site locally but not on the Internet.
Posted on: 12/24/03 04:27pm
By: ola_one
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