Hi everyone,

First, let me say that I deployed a turnkeylinux file server 18 months ago as far as I can recall.. Since then, I left it behind since files are still accessible via the local network.

Now my problem is that the ip/url access from a url or browser shows up differently and I never bothered to fix. However, now requirements have changed and I need to add access so that staff can connect remotely.

If I go to x.x.x.x/index.lighttpd.html then this is what I get :

 

You should replace this page with your own web pages as soon as possible.

Unless you changed its configuration, your new server is configured as follows:

  • Configuration files can be found in /etc/lighttpd. Please read /etc/lighttpd/conf-available/READMEfile.
  • The DocumentRoot, which is the directory under which all your HTML files should exist, is set to /var/www.
  • CGI scripts are looked for in /usr/lib/cgi-bin, which is where Ubuntu packages will place their scripts. You can enable cgi module by using command "lighty-enable-mod cgi".
  • Log files are placed in /var/log/lighttpd, and will be rotated weekly. The frequency of rotation can be easily changed by editing /etc/logrotate.d/lighttpd.
  • The default directory index is index.html, meaning that requests for a directory /foo/bar/ will give the contents of the file /var/www/foo/bar/index.html if it exists (assuming that /var/www is your DocumentRoot).
  • You can enable user directories by using command "lighty-enable-mod userdir"

About this page

This is a placeholder page installed by the Ubuntu release of the Lighttpd server package.

This computer has installed the Ubuntu operating system, but it has nothing to do with the Ubuntu Project. Please do not contact the Ubuntu Project about it.

If you find a bug in this Lighttpd package, or in Lighttpd itself, please file a bug report on it. Instructions on doing this, and the list of known bugs of this package, can be found in the Ubuntu Bug Tracking System.

 

 

I would appreciate a quick fix solution if there is any..Thanks for reading and any help is most welcome.

Forum: 
Jeremy Davis's picture

I just tested the fileserver appliance and if I browse to http://<hostna.me> it auto redirects to https://<hostname> and presents the AjaXplorer login screen... So I have no idea what has gone wrong with your setup

Thanks for your prompt reply, I am quite surprised of such a quick response. Can I give you the ip address in an email ? The ajax explorer log in just showing up these 2 files: 

Index of /

[ICO]NameLast modifiedSizeDescription
[DIR] extplorer/ 19-Dec-2010 16:42 -  
[TXT] index.lighttpd.html 19-Dec-2010 16:42 3.5K  


Jeremy Davis's picture

It just so happens that I was lurking around nearby, so you picked a lucky time to post... :)

Two things. Firstly there is obviously something wrong with the config of your appliance. I'm not sure how it happened or how to fix it... And secondly, you have quite an old appliance. New appliances include AjaXplorer now (rather than eXtplorer). IMO AjaXplorer is superior so I would recommend upgrading to the new server...

The easiest way to migrate from your current appliance to a new one is to use TKLBAM to backup the old and migrate to the new.. Although how that would work for you would depend on how much data you have saved. Also where you are running the software will have some bearing too. Ideally if you can leave the old server running until the new one is up, running and fully tested is recommended.

That's the right clever approach from you. I thought exactly of the same thing. My idea was to deploy another file server parallely and run all tests etc and once I know it is fully functional then I could transfer the files accross, this way it will cause little or no disruption to the business. 

If I use a terminal and try to upgrade the system, will it not fix itself?  The file storage is about 500gb of files being accessed on a daily basis, hence messing with it if unsure is a big no no !! 

Now, it is just a pain to go back to set up again which is why I needed other opinions. With ubuntu 12.04 LTS there is webmin which minimizes the amount of terminal access and makes life so easy, has TLK got any options similar to that ? I am just asking as I have no clue what's out there in the open source world !! 

By the way, open source rocks !! 


Jeremy Davis's picture

What I would do would be to backup just your config (not all the data files). So it would go something like this:

exec git gc
tklbam-backup -s -/srv

The first line cleans out etckeeper (which is not required but will reduce the size of your etckeeper config backup) and the second line runs a simulation of the backup. Hopefully it should be quite small. Assuming that all goes well, then I would run the backup for real (assuming that you have TKLBAM configured - if not do that first)

tklbam-backup -/srv

Then start a new server and restore the backup. You can check the backup ID either from the Hub, from Webmin or from the commandline (tklbam-list) then run

tklbam-restore <backup-ID>

Then check that all is well and all the config has copied across ok.

Once that is working as expected then the files themselves can be copied across (from the old server to the new) with rsync (rsync will maintain the file permissions etc). I don't recall the syntax OTTOMH but google should help you out there...

Out of interest all of the above can be run from the TKLBAM Webmin module (except the very first line to clean out etckeeper).

And to answer your questions, no upgrading the system will not repair it. eXtplorer is installed from upstream (not via package management) so upgrading will not change it. Also as I said IMO AjaXplorer is superior to eXtplorer anyway...

TKL includes Webmin by default (it's available via s on port 12321).

Hopefully this whole process should only involve testing to ensure everything is right. It should all just work...

On trying to update, I get so many failures, most referencing to

Errors were encountered while processing:
 webmin-tklbam
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea? Sorry about the webmin question, I forgot that I used this previously before, compared to ubuntu which runs on https://x.x.x.x:10000 In reference to my initial question, I think apache is conflicting with extplorer. I don't want to mess things up, hence any help will be appreciated.


Jeremy Davis's picture

You would actually have to see what the error was with updating/installing webmin-tklbam to have any idea what the actual issue may be. Out of curiosity have you (or anyone previously) updated Webmin via any method other than apt-get? There should be an apt log in /var/log/ 

Have you installed Apache? If so then it's highly likely that's causing issues... Because AFAIK Apache has never been included in the Fileserver appliance...

Bottom line is though that I wouldn't be worrying about issues in this server too much, I'd just be focussing on getting a new server up and going....

This is the challenge I want to do, deploying a server, whether it be for file or web hosting is pretty easy but is different when it comes to troubleshooting. So, would you say that there is no way to remove apache and get extplorer back ?


Jeremy Davis's picture

But 2 things...

1. Personally, I try to do as little mucking around with systems serving important functions as I can.

2. I wouldn't be using eXtplorer regardless. I would still be updating to TKL v12.1 even if you did get it working as it should.

So by all means hone your Linux skills on this server, but I'd only be doing that once you have a new server up and running to fullfil the fileserver role...

Based on your previous answer, does it mean I can't run a LAN server, external access via extplorer and apache2 webserver? I know it sounds difficult, but my idea was to run a LAN server accessible via an url or ip address and apache2 webserver concurently? This way, I can hit 2 birds with one stone, if you see what I mean. 


Jeremy Davis's picture

Only one app can use a port. So if you want to use this as a regular webserver while still having a webUI access to your fileserver you have to go a different tack...

Either configure LigHTTPd or Apache to listen on an alternative port.. If you don't need https for your web content then you could config Apache on 80 (HTTP) and LigHTTPd on 443 (HTTPS). So

http://<appliance> would give you your web content"
https://<appliance> would give you your Fileserver UI

Or you could configure LigHTTPd to listen on a different port (e.g. 7000) and a virtual server in Apache with a redirect to the port. So

http://<appliance> would give you your web content
http://<appliance>/fileserver (or whatever name you set in Apache) would auto redirect to http://<appliance>:7000 and give you your fileserver UI.

Regardless you'll need to read up. Just changing the port of one app or the other is the easiest way to go...

[edit] PS Actually there is a way that you can use the same port for multiple web servers on a single server. If you have multiple interfaces (ie multiple NICs) on your server then you can bind Apache to one NIC and LigHTTPD to the other...

Jeremy Davis's picture

Personally I would install a hypervisor and run each of these functions in separate VM. There are many to choose from but ProxmoxVE is my favourite. It's Debian based (as is TKL) and has a nice WebUI for controlling machines. It also supports OVZ containers (TKL is available as OVZ template) which are very resource friendly...

Add new comment