Basic Web page creation issue

Questions about hosting a Website, using MySQL and PhP may be posted here.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

Basic Web page creation issue

Postby Thav12 » Mon Jan 02, 2012 12:31 am

Device: DS1511+
DSM 3.2

My Synology server can be reached from the outside world. I use a name.dyndns.tv address, and as long as i type in the full address in my remote computer, i can reach parts of my server w/o problems. I have started a phpBB and have those files stored in /web/phpBB3/ and as long as I type name.dyndns.tv/web/phpBB3/index.php in my browser, I can reach the site without problems, and the phpBB3 board works fine. Therefore, I know that my port 80 redirect through my router is working fine.

I have a website with an index.html file in the /web/ folder. Clicking on the Web Station icon in DSM brings up the web page, it works well with all the links etc.

I can not for some crazy (likely easy) reason get to my web page from the outside world. In fact, when I just type name.dyndns.tv in my outside browser a "synology the page you are looking for is not found" error pops up. This tells me two things: my ports are correctly forwarded to the synology server in my network, but, two, for some reason it does not direct me to the /web directory.

How do I correct this issue? it is not a virtual host issue, is it? I have no virtual hosts set up at this point. I can't find any setting to fix this problem. It must be simple...

I appreciate your tips and advise.
Thav12
I'm New!
I'm New!
 
Posts: 4
Joined: Mon Jan 02, 2012 12:17 am

Re: Basic Web page creation issue

Postby axj » Mon Jan 02, 2012 10:58 am

Do you have an index-file in the root (web/index.*)?
Have you tried using your ip instead of dyndns?
DS509+ 4*1TB Raid+1TB DSM 4.0-2219. Logitech BOOM+Duet 7.6.1, WebCam: Linksys WVC54GCA + TrendNet TV-IP121
DS212+ 1TB & D-Link DIR-685, HP C7280, Dell 3100cn. iPad3, Programming Pascal, Clarion 5.5, html/php. http://axj.dk
User avatar
axj
Specialist
Specialist
 
Posts: 1058
Joined: Fri Jan 02, 2009 10:59 am
Location: Esbjerg, Danmark

Re: Basic Web page creation issue

Postby Thav12 » Mon Jan 02, 2012 12:44 pm

Yes, an index.html is in my /web folder

Using my external ip results in the same as using the dyndns name. Can't get a page to open, without adding the entire sub folder path.

I can reach the server just fine, just not the /web folder, but have no problem with any of the subdirectorie as detailed above. This suggests a privelliges issue, but the folder is wide open. Clicking on the web icon in DSM, logged in from a LAN side computer brings up the index.html page and the rest of the site. Port is pointing to the synology server, as otherwise I would not get any synology page. I am truly puzzled.

Just FYI. I am using an external pc, not a pc within the LAN, to reach the website.
Thav12
I'm New!
I'm New!
 
Posts: 4
Joined: Mon Jan 02, 2012 12:17 am

Re: Basic Web page creation issue

Postby axj » Mon Jan 02, 2012 4:54 pm

When I have to try these kind of stuff, I'm always using both external and internal ip!
ie http://xx.xx.xx.xx and http://ii.ii.ii.ii to be sure the system reacts in the same way.
What is the content of the index-file?
DS509+ 4*1TB Raid+1TB DSM 4.0-2219. Logitech BOOM+Duet 7.6.1, WebCam: Linksys WVC54GCA + TrendNet TV-IP121
DS212+ 1TB & D-Link DIR-685, HP C7280, Dell 3100cn. iPad3, Programming Pascal, Clarion 5.5, html/php. http://axj.dk
User avatar
axj
Specialist
Specialist
 
Posts: 1058
Joined: Fri Jan 02, 2009 10:59 am
Location: Esbjerg, Danmark

Re: Basic Web page creation issue

Postby Thav12 » Tue Jan 03, 2012 8:50 pm

my index.html file contains a web page. I can get to it from within my lan by typing in the internal LAN ip address into the browser. It opens up the page without problems. Where it gets puzzling is when I try to get to it from the outside. I then get a synology error page, as described in the first post in this chain. This tells me that the port forwarding works, it is routing the request to the synology server, but for some reason the server does not allow external reading of this index.html file in the /web/ folder. Weird.

This is not a simple port forwarding issue, as I can get to the subfolder web/phpBB3/ just fine by adding that directory to the ip address or web address. (e.g. name.dyndns.tv/web/phpBB3/ starts my BB without any problems from any external computer) Thus, there is a strange issue that disallows me access to the /web folder, or somehow an external requests gets routed to a different directory or something. I don't get it.
Thav12
I'm New!
I'm New!
 
Posts: 4
Joined: Mon Jan 02, 2012 12:17 am

Re: Basic Web page creation issue

Postby axj » Wed Jan 04, 2012 11:31 am

Yes, that's hard!
I don't know if it has any importance: I can see I have long ago activated 'Personal webplaces' (under webservices) - I don't use it and has never done and the folders are empty. I have never used configuration of router and firewall. I use putty and mc to control many things of the DS!

What router do you use? Have you added another port for web? Dynamic or fixed local IP?
DS509+ 4*1TB Raid+1TB DSM 4.0-2219. Logitech BOOM+Duet 7.6.1, WebCam: Linksys WVC54GCA + TrendNet TV-IP121
DS212+ 1TB & D-Link DIR-685, HP C7280, Dell 3100cn. iPad3, Programming Pascal, Clarion 5.5, html/php. http://axj.dk
User avatar
axj
Specialist
Specialist
 
Posts: 1058
Joined: Fri Jan 02, 2009 10:59 am
Location: Esbjerg, Danmark

Re: Basic Web page creation issue

Postby Thav12 » Mon Jan 16, 2012 1:15 am

SOLUTION TO MY PROBLEM:


since a lot of people have similar problems, here is how i solved it.

I think it is very easy to upset the system... the main issue is the apache routing of the html requests through port 80. So, the solution is easy as well. move all folders deep to /web to another folder. turn web services off. confirm that the /web folder is no longer on your server. then turn web services back on, and a new /web folder will be created with the appropriate files. move all the folders back into /web and done. weirdly enough, just turning web services on and off without moving all the subfolders out will NOT reset anything... in fact, i think that is how this all got started. Hope it helps.
Thav12
I'm New!
I'm New!
 
Posts: 4
Joined: Mon Jan 02, 2012 12:17 am

Re: Basic Web page creation issue

Postby kkoetter » Sat Mar 03, 2012 2:34 am

Hardware: DS212+ w/ 2 x 3T Seagate Barracuda in RAID 1
OS: DSM 3.2-1958

Seems I have a similar problem; unfortunately your solution did not help. When I move all files out of the /web folder, then disable Web Services, the /web folder does not get removed. When I turn Web Services back on, nothing happens... /web folder is still there, but 'appropriate files' are not restored.

I manually moved all of the files/folders back to /web, including the 'appropriate files' (i.e. MySQL). Still nothing (trying to connect, but times out).

Furthermore, my router (D-Link DIR-825) is a supported router for auto config. I tried >Control Panel >Router Configuration >Set Up Router... it seemed to 'do it's stuff', but when I checked the router Port Forwarding, nothing changed. I also tried the same thing using the EZ-Internet Package. Again, it seemed to do it's thing, but after checking the router, nothing changed. Finally, I went into the router and manually set TCP Port 80 to forward to the DS IP.

But I am still at square one... still can't access the web services. Here is what works, and what doesn't:

> http://name.dyndns.org/~account ... does not work ... times out
> http://name.dyndns.org/ ... does not work ... times out

> http://ISP-Dynamic-IP/~account ... does not work ... times out
> http://ISP-Dynamic-IP/ ... does not work ... times out

> http://DS-Internal-IP/~account ... does not work ... Synology Page Not Found error

> http://DS-Internal-IP ... works!!

It worries me that the DSM tools don't seem to work as expected. This is my first Synology device, so I admit to being a newbie... and am hoping it's just me..!!
DS212+ : DSM 4.1-2668 : 2 x 3TB Seagate Barracuda RAID 1 : WD 320G USB / D-Link DIR-825
iMac mid-2010 27" i5 OS 10.8.2 / MacBook Air 13" OS 10.8.2 / HP EliteBook WinXP / HP Z400 Win7-64 / iPad2 / iPhone5
User avatar
kkoetter
I'm New!
I'm New!
 
Posts: 9
Joined: Sat Mar 03, 2012 1:59 am
Location: Vancouver, BC CA

Re: Basic Web page creation issue

Postby axj » Sat Mar 03, 2012 12:32 pm

I think you should have removed the /web-folder manually after the 'Disable web-services' and saving all content is saved!
DS509+ 4*1TB Raid+1TB DSM 4.0-2219. Logitech BOOM+Duet 7.6.1, WebCam: Linksys WVC54GCA + TrendNet TV-IP121
DS212+ 1TB & D-Link DIR-685, HP C7280, Dell 3100cn. iPad3, Programming Pascal, Clarion 5.5, html/php. http://axj.dk
User avatar
axj
Specialist
Specialist
 
Posts: 1058
Joined: Fri Jan 02, 2009 10:59 am
Location: Esbjerg, Danmark

Re: Basic Web page creation issue

Postby kkoetter » Sat Mar 03, 2012 8:08 pm

Well... I finally got it working using a work-around...

1) In my DIR-825, I turned 'Port Forwarding' off (unchecked)...:
Image

2) In my DIR-825, I configured 'Virtual Server' instead...:
Image

The web page is now visible, but it still bothers me that I had to do this. I am finding all kinds of things that seem to point to a level of instability with DSM 3.2... which is supposed to be a mature release (given 4.0 is in beta, and about to be released). Here are some of the unstable things I have found so far...:

> removal and re-establishment of /web, as described above
> use of router auto config w/ supported router (described above)
> use of EZ-Internet package w/ supported router (described above)
> Instability of Time Machine share... found this one this morning...
* had Time Machine share set up and working... initial backup ran 11 hours and backed up successfully
* after iMac and DS212+ reboots, Time Machine share reconnection could not be established (followed all the instructions in all the wiki's I could find... failure)
* I finally turned off Time Machine share at >Control Panel >Win/Mac/NFS >Mac File Service by deselecting the Time Machine share, saving the config, reselecting, and saving again.
* iMac Time Machine now sees the share as available again... backup again successful
* question is... will I have to keep doing this..?

I am really worried that I made a mistake purchasing this product... I'll give it a chance, but folks... this stuff should 'just work'...!!!
DS212+ : DSM 4.1-2668 : 2 x 3TB Seagate Barracuda RAID 1 : WD 320G USB / D-Link DIR-825
iMac mid-2010 27" i5 OS 10.8.2 / MacBook Air 13" OS 10.8.2 / HP EliteBook WinXP / HP Z400 Win7-64 / iPad2 / iPhone5
User avatar
kkoetter
I'm New!
I'm New!
 
Posts: 9
Joined: Sat Mar 03, 2012 1:59 am
Location: Vancouver, BC CA


Return to Web Server + PHP / MySQL

Who is online

Users browsing this forum: No registered users and 3 guests