Code Monkey home page Code Monkey logo

Comments (9)

infostreams avatar infostreams commented on July 19, 2024

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.

atnightmaps avatar atnightmaps commented on July 19, 2024

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.

infostreams avatar infostreams commented on July 19, 2024

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.

atnightmaps avatar atnightmaps commented on July 19, 2024

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.

infostreams avatar infostreams commented on July 19, 2024

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.

atnightmaps avatar atnightmaps commented on July 19, 2024

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.

infostreams avatar infostreams commented on July 19, 2024

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.

atnightmaps avatar atnightmaps commented on July 19, 2024

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.

infostreams avatar infostreams commented on July 19, 2024

Ok, so I can close this issue I guess. I'm glad that you got it to work!

from mbtiles-php.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.