Posted by bottticelli in I2P

Sup, Ramble. I began to develop my eepsite (something simple and static like blog page, say). For this purpose I had found the index.html file in the directory .../i2p/i2p-config/eepsite/docroot, then I deleted the first three lines that force user to see the helping document about I2P Anonymous Webserving etc. I played around a little more with this file, edited its contents, and happily saw them change on the web. After that I saved my changes (locally on my machine), stopped i2prouter and went out.

As long as I was back, starting i2prouter and my eepsite, I saw the very same default helping article instead of my webpage under construction with added contents. What is more interesting, my .../docroot/help dir has no file with such contents anymore, since I have changed the index.html inside this dir too! But I2P Router Console keeps transferring me to the damned helping page on http://127.0.0.1:7658/help, to where I am bounced from http://127.0.0.1:7658/.

Why does the console not see the changes in index.html files? Before reconecting to the router I clearly remember editing and saving the changes in both files, and both of them were reflected on the web properly. Neither PC reboot nor i2prouter restart were of help. I wonder where does it take this helping file from? My directories have no file with such contents (not anymore, since I edited them deliberately)... How can I make my webpage displaying the actual index.html contents? Please help, any advice would be greatly appreciated!

2

Comments

You must log in or register to comment.

z3d wrote (edited )

Don't edit the eepsite files in your application directory, they serve as a template which is copied to your configuration directory when you first run I2P. Instead you need to edit the files in your configuration directory.

Since you still have the default help files displaying on your site, read the information there relating to the location of the eepsite folder and edit the contents in the location indicated, which varies depending on what operating system you're running I2P on. Once you've edited index.html in eepsite/docroot you may need to clear your browser's cache to see the changes.

3

bottticelli OP wrote

Thanks a lot for your quick answer. I am running i2p on Linux, package install, running as a service.

According to this, the instructions on the default help page of eepsite say that the proper directory for index.html file is /var/lib/i2p/i2p-config/eepsite/docroot/, which is exactly where I am editing my pagefiles. What is really bizarre that before disabling the i2prouter for the first time since it had been working very nicely, showing every change I did with both index.html files in .../docroot and .../docroot/help directory.

Now it looks like the server is getting some other default index.html files from somewhere else. That's awkward, I can't figure it out. What can be the cause? How do you think?

2

z3d wrote

It's possible that you have 2 different installations of I2P, one installed via a .deb file / repo, and the other installed manually. Check for the presence of an ~/.i2p/ folder, that would indicate you've got a manual install running somewhere.

You might just find that a manual install suits you better, not least because all files related to your configuration live in ~/.i2p/ which makes management easier.

For more realtime help, feel free to jump onto I2P IRC and visit #saltr.

2

bottticelli OP wrote

I checked and double-checked, my ~/ dir does not have the .i2p folder, it comes only as an installed package at /var/lib/i2p/i2p-config/...

Do you think it's a good idea to perform a full re-install and get it manually in the ~/.i2p folder? I'm prety satisfied for now with the /var/lib/i2p/i2p-config/ directory, it seems quite equivalent for an i2p-newbie...

Thank you for the channel recommendation, I'll definitely pay attention to it.

2

whyO wrote

As a sidenote the .i2p folder is a hidden file folder so you need to tick show hidden files.

3

z3d wrote

Personally I'd always opt for the Java installer over the repo/deb installation because installing it yourself gives you much more flexibility, for example if you want to sidegrade from I2P to I2P+, or if you want to test development builds, in addition to having all your configuration files in a single location (as mentioned).

You can stop the I2P service and try out the java installer if you don't want to fully commit before you've got comfortable. You could always try the I2P+ installer, details at: http://skank.i2p

Back to your original question, given you're currently running a repo installation, and you appear to be editing files in the correct location, the only thing I can think of that may be causing issues is your browser cache retaining the default index.html file which redirects to /help. You can test this theory by creating a separate file in docroot/ and browsing directly to that instead, e.g. testpage.html .. if this works, clear your browser cache and try accessing the site again. And be mindful of the file permissions on any new files you create.

2

not_bob wrote

As stated by other people, you should use the Java installer. Don't use the package that's in whatever repo you are using. Those tend to be outdated. Also, I2P+ for the win.

2

bottticelli OP wrote

Thank you all guys, and especially to whyO, who pointed me exactly to the right thing. Indeed I had to discover this hidden folder and then found all the necessary directories and an index.html file that does recognize changes! Finally...

1