Comments (9)
Good question. I didn't try 1and1 in a loooong time :-) Do you have a link to the page with the map you're trying to publish?
from mbtiles-php.
Hi,
this is the link http://atnight.ws/infostreams/
is the same example as you posted on github
tell me what you need for a correct diagnosis
from mbtiles-php.
Ah, well the javascript says your map is located at http://atnight.ws/infostreams/server/basemap.tilejson, but that gets me a 1and1 error page (do 'view source' or see view-source:http://atnight.ws/infostreams/server/basemap.tilejson). Also, if I try to access the servers main page at http://atnight.ws/infostreams/server/, then I get a 403 Access Forbidden error...
These are the things you need to fix first. The server should not return a 403 Forbidden Error, and if you request the basemap.tilejson file you should get some sort of JSON file (example: http://api.tiles.mapbox.com/v3/mapbox.geography-class.jsonp). If you get that going, then the rest will probably work as well. Let me know how it goes.
PS: You need to make sure that there is a basemap.mbtiles file in the server directory! Is there one?
from mbtiles-php.
hi!! now you can access to the directory http://atnight.ws/infostreams/server/
i have modified the .htaccess
now it looks just like that
Options +Indexes
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ tileserver.php [QSA,L]
But i can't see the tiles neither the json
from mbtiles-php.
Ah, it looks like your .htaccess file is not being parsed... I think you need to maybe change a setting (in your hosting provider's settings) somewhere to both allow .htaccess files and to enable mod_rewrite.
from mbtiles-php.
YES, the problem is with the htaccess
the directive
Options +FollowSymLinks
is not accepted in 1and1 shared servers
now i don't know if the tileserver.php can run without the hatccess, passing the arguments in the URL
from mbtiles-php.
Try removing that option from the .htaccess and see what it does. I don't think it's that important in most cases. I see that you already did something to the .htaccess file, because the server's info page is now showing.
However, I don't think the tile requests (such as http://atnight.ws/infostreams/server/basemap.tilejson) end up at the tileserver.php file yet. I got an empty 1&1 error page just now. You can try putting something like
echo "This is the tileserver.php"; die;
at the top of tileserver.php (after <?php) to see if the requests are properly rewritten. If they don't, adjust the .htaccess to make sure that they do (fiddle with it until you see the message "This is the tileserver.php"). Once the individual requests end up at the tileserver.php, there's a good chance that you've managed to get it to work. If you see the message above, then it's time to remove the code you added and see if it works. If it doesn't work, then you've probably found a bug.
As it stands, the tileserver.php doesn't run without the .htaccess file, unfortunately. It would be possible to make it work but it requires a rewriting of some of the code.
from mbtiles-php.
Effectively the problem is with some of the directives of the htaccess.
The rewritte engine doesn't work fully in 1&1, even though they say opposite. The test doesn't has worked.
Now we are testing this beautyful code in http://www.serversfree.com/server-features/
and works fine. So if anyone wants to try it in an easy (and free) way this is a solution (but not very stable, sometimes this server is down)
Thanks infostreams!
from mbtiles-php.
Ok, so I can close this issue I guess. I'm glad that you got it to work!
from mbtiles-php.
Related Issues (16)
- Merge with TileServer-PHP
- Caching spec violations HOT 1
- Mandatory webpage response not included in tilejson HOT 1
- preg_match(): Compilation failed HOT 1
- Add info for setup with nginx HOT 1
- Mobile devices (@2x image) problem HOT 9
- Symlinks issue HOT 3
- Go Daddy Hosting HOT 45
- Tiles not found HOT 7
- 500 internal error
- Getting Sample To Work HOT 35
- Cannot deploy in the domain root HOT 3
- Areas of no data are rendered black HOT 2
- Serving geojson HOT 2
- 403 access error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbtiles-php.