Jump to content
The Uniform Server Community
pappysniper

problem after implementing dns

Recommended Posts

Hi everyone

 

I have got a problem with my site that i am testing, I have just added dns service as per instruction from the unicenter,

battled with my loopback connection problem and won.

The first of my problems is when I try to access my website from the web, part of my page is missing (the part produce by text editor)

 

The second problem is when I try any other page from the same site it reverts back to localhost in the address bar Now I know you have to edit the apache2\conf with the new domain name, but do I have to write every page in the site in there as well.

thanks for any help, sorry but I'm pretty green when it come to this stage of building a website, so for any

help I'll be truly thankful2222

Share this post


Link to post
Share on other sites

It looks as if your server is running correctly!

 

If you are using only a single domain (not running any vhosts) the main server will server pages from folder www by default. Hence there is no need to change the config file.

 

What you do not mention is the type of site you are using, is it a dynamic or static site?

 

I am not sure what you mean by this: “part of my page is missing (the part produce by text editor)”

 

The above may appear stupid questions however I get the impression it may be a link problem without more information difficult to point you in the right direction. :)

 

It may be worth looking in the log files (error.log and access.log) to see if they can shed a light on the problem. The log files are located in folder: *\Uniform Server\udrive\usr\local\apache2\logs

 

All the best

Ric :(

Share this post


Link to post
Share on other sites

Hi ric thank you for your reply, sorry for taking so long to grt back to you but by car got towed, I have been trying to sort that out, well here my reply.

 

I have a single domain which is dynamic not static, as for the the missing part of the web site I'll try to explain

it.

the text that I was talking about was integrated into the site as you would a picture,it was put into an image file within the site. Now the site has been tested through localhost and everything is fine but when I put my domain name into the address bar the site comes up but the text is missing.

 

I have put some of my log for you to view,if can help I will be very greatful, hope it not to much

 

thanks Paul

 

 

site error log

 

[Wed Jan 16 13:24:00 2008] [error] [client 127.0.0.1] File does not exist: W:/www/uploadaproperty/uploadaproperty, referer: http://www.uploadaproperty.dyndns.org/

[Wed Jan 16 13:24:00 2008] [error] [client 127.0.0.1] File does not exist: W:/www/uploadaproperty/uploadaproperty, referer: http://www.uploadaproperty.dyndns.org/

[Wed Jan 16 13:24:00 2008] [error] [client 127.0.0.1] File does not exist: W:/www/uploadaproperty/uploadaproperty, referer: http://www.uploadaproperty.dyndns.org/

[Wed Jan 16 13:24:04 2008] [error] [client 127.0.0.1] File does not exist: W:/www/uploadaproperty/favicon.ico

 

root error log

 

[Wed Jan 16 13:22:42 2008] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Unable to access w:/home/admin/www/includes/python.inc in W:\\home\\admin\\www\\navigation.php on line 23, referer: http://localhost/apanel/

[Wed Jan 16 13:22:42 2008] [error] [client 127.0.0.1] PHP Warning: include(w:/home/admin/www/includes/python.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in W:\\home\\admin\\www\\navigation.php on line 23, referer: http://localhost/apanel/

[Wed Jan 16 13:22:42 2008] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'w:/home/admin/www/includes/python.inc' for inclusion (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear;/home/admin/www/plugins/pear/PEAR') in W:\\home\\admin\\www\\navigation.php on line 23, referer: http://localhost/apanel/

[Wed Jan 16 13:22:42 2008] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Unable to access w:/home/admin/www/includes/java.inc in W:\\home\\admin\\www\\navigation.php on line 24, referer: http://localhost/apanel/

[Wed Jan 16 13:22:42 2008] [error] [client 127.0.0.1] PHP Warning: include(w:/home/admin/www/includes/java.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in W:\\home\\admin\\www\\navigation.php on line 24, referer: http://localhost/apanel/

[Wed Jan 16 13:22:42 2008] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'w:/home/admin/www/includes/java.inc' for inclusion (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear;/home/admin/www/plugins/pear/PEAR') in W:\\home\\admin\\www\\navigation.php on line 24, referer: http://localhost/apanel/

[Wed Jan 16 13:24:00 2008] [error] [client 127.0.0.1] script 'W:/www/uploadaproperty/template/flash_realestate23/stylesheet.css.php' not found or unable to stat, referer: http://www.uploadaproperty.dyndns.org/

[Wed Jan 16 13:24:11 2008] [error] [client 127.0.0.1] script 'W:/www/uploadaproperty/template/flash_realestate23/stylesheet.css.php' not found or unable to stat, referer: http://localhost/uploadaproperty/index.php...ep_2&pclass[]=5

 

 

error log

 

[Wed Jan 16 13:22:27 2008] [notice] Apache/2.0.59 (Win32) PHP/5.2.3 configured -- resuming normal operations

[Wed Jan 16 13:22:27 2008] [notice] Server built: Jul 27 2006 15:55:03

[Wed Jan 16 13:22:27 2008] [notice] Parent: Created child process 3668

[Wed Jan 16 13:22:27 2008] [notice] Child 3668: Child process is running

[Wed Jan 16 13:22:27 2008] [notice] Child 3668: Acquired the start mutex.

[Wed Jan 16 13:22:27 2008] [notice] Child 3668: Starting 250 worker threads.

Share this post


Link to post
Share on other sites

The logs were interesting and confusing:

1) Unable to access w:/home/admin/www/includes/python.inc --- wrong location have you installed python

2) w:/home/admin/www/includes/java.inc --- wrong location --- is java installed

 

I noticed this in your first post “reverts back to localhost” are you using CMS (Content management systems) or something similar.

 

The reason I ask is because you may need to reload the program and use your real domain name!

 

However this is interesting “Now the site has been tested through localhost and everything is fine” which suggests the software works, I was wondering if the problem is only a server name problem! It easy to check use a vhost as follows:

 

Edit Apache config file (httpd.conf) add the following at the end of the file. Replace my_site.gotdns.com with the domain you registered.

 

 

NameVirtualHost *

ServerName my_site.gotdns.com

DocumentRoot /www

 

Give it a try and see what happens, does anyone have any ideas or thoughts on this?

 

All the best

Ric :)

Share this post


Link to post
Share on other sites

Hi Ric

 

python.inc, I notice that as well, I did not install it I was under the impression it installed when i installed the server and as for java, have it installed on my computer but i did not install it on the server.

 

Yes I am using something similar to a CMS, so you think i should reload it (it took me a long time to get to where I am but if I have to I will) , so what you mean is that when I first name my file in the www folder I should give it my domain name, I'll give that a try.

 

By the way my config file was already edited as per instruction of the unicenter maybe it's wrong, please

take a look.

 

#NameVirtualHost *

 

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for requests without a known

# server name.

#

#<VirtualHost *>

# ServerAdmin webmaster@dummy-host.example.com

# DocumentRoot /www/docs/dummy-host.example.com

# ServerName dummy-host.example.com

# ErrorLog logs/dummy-host.example.com-error_log

# CustomLog logs/dummy-host.example.com-access_log common

#</VirtualHost>

 

NameVirtualHost *

 

###### ROOT

<VirtualHost *>

ServerAdmin webmaster@uploadaproperty.dyndns.org

ServerName localhost:80

ErrorLog logs/root-error_log

CustomLog logs/root-access_log common

DocumentRoot /www

</VirtualHost>

 

##### uploadaproperty.dyndns.org

<VirtualHost *>

ServerAdmin Admin@uploadaproperty.dyndns.org

DocumentRoot /www/uploadaproperty

ServerName www.uploadaproperty.dyndns.org

ErrorLog logs/uploadaproperty-error_log

CustomLog logs/uploadaproperty-access_log common

</VirtualHost>

 

this is appreciated :) java script:emoticon(':(', 'smid_13')

B)

 

paul

Share this post


Link to post
Share on other sites

I think the clue is in your statement the site works fine locally. This means your root folder is www.

 

However the vhost you added changes this to uploadaproperty, which I think is the cause of your problems.

 

First Vhost there was no need to change. The second vhost you do need to change.

 

NameVirtualHost *

ServerName localhost:80

DocumentRoot /www

 

ServerAdmin Admin@uploadaproperty.dyndns.org

DocumentRoot /www

ServerName www.uploadaproperty.dyndns.org

ErrorLog logs/uploadaproperty-error_log

CustomLog logs/uploadaproperty-access_log common

 

You could add a third:

 

ServerAdmin Admin@uploadaproperty.dyndns.org

DocumentRoot /www

ServerName uploadaproperty.dyndns.org

ErrorLog logs/uploadaproperty-error_log

CustomLog logs/uploadaproperty-access_log common

 

When a domain name cannot be matched the first Vhost is a capture all, it’s also for local access:

http://localhost

 

The second vhost to access, type the following into your browser address bar:

http://www.uploadaproperty.dyndns.org

 

The third vhost to access, type the following into your browser address bar:

http://uploadaproperty.dyndns.org

 

If you access the site locally using:

http://localhost /uploadaproperty/

 

Then you will need type one of these for remote access:

http://www.uploadaproperty.dyndns.org/ uploadaproperty/

http://uploadaproperty.dyndns.org/ uploadaproperty/

 

You probably do not require separate Vhosts hence I would use only one Vhost:

 

NameVirtualHost *

ServerName localhost:80

DocumentRoot /www

ServerAlias www.uploadaproperty.dyndns.org uploadaproperty.dyndns.org

 

If that does not help let me know what program you are using, if it’s open source I will check it out.

 

All the best

Ric :)

Share this post


Link to post
Share on other sites

Hi Ric ,

 

Tried your solution but still no joy, but maybe a little progress.

When I try to log into my site by putting http://www.uploadaproperty.dyndns.org/ into the address bar I get the

blue screen with uniform server written in the middle.

I don't where I gone wrong completely stuck now

any help I'll be great full

 

paul

Share this post


Link to post
Share on other sites

Hi Paul,

With a blue screen and logo-displayed means you have made real progress. Your server is working correctly with a Vhost and DynDNS account. :)

 

When you type into your browser:

http://www.uploadaproperty.dyndns.org/

It’s really looking for a page named index.html or index.htm or index.php (index.php is Uniform Servers default blue screen and logo) hence server is working correctly. :(

 

What I expected if you type in:

http://www.uploadaproperty.dyndns.org/uploadaproperty/

 

It would look in folder www/uploadaproperty/ for either index.html or index.php and display your CMS. I am assuming this is the folder you loaded your CMS to and that it contains either index.html or index.php (is this true?)

 

What I am trying to say whatever you type in locally to access your site, replace http://localhost with http://www.uploadaproperty.dyndns.org

 

 

The chances are that the CMS configuration file will be using a domain name of localhost hence if you receive an error message this needs replacing with www.uploadaproperty.dyndns.org (do this manually or last resort reinstall the CMS)

 

Does this help?

 

All the best

Ric B)

Share this post


Link to post
Share on other sites

Hi Ric

 

I think your right, so what I'm going to do reload it and name my DNS, there were things I was not happy with anyway.

 

So I'll give it a try and let you know how it goes

 

many thanks for all your help so far

 

Paul

Share this post


Link to post
Share on other sites

Yep, go with that, you know the server and DynDNS is working, just the app to sort out. :)

 

I will be interested to know how its goes.

 

All the best

Ric :(

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...