I am a postdoc in the humanities and I am drafting a funding application for a project envisaging the development of a research database. The project will last no more than 2-3 years and as a postdoc I am not supposed to stay at the host institution for longer. The question is how to preserve the results of this work for posterity. Luckily these days there are institutional and independent repositories, which allow me to store my complete dataset as a set of CSV files and in RDF/XML format with a well-documented ontology. This sounds sustainable. But I also would like to offer a web-interface to the researchers so that the database could be consulted online. (The structure of my data is quite unique, which does not allow me to simply submit all my data to the online database of any large project working in my field.) I see it as a standard MySQL/PHP application, which I am planning to develop. The question is what is the most sustainable strategy for hosting it. I have seen a number online research databases in my field, some costing a great deal of money to the funding authorities, which went offline after some years and are no-longer available. This includes both commercially hosted database (the worst option in my view, for someone has to pay eternally for hosting and domain name) and university-hosted databases. I understand that after I leave the host university (and I am just a postdoc), no one can guarantee that they will host the project website forever. Besides the technologies for web development are changing fast and the web interface designed with current tools will become obsolete after some years. What are the best practices for securing a lasting time-span for a small online research database, which does not have a strong lasting project behind it?
Let me offer you several strategies. Firstly, you can consider, instead of or in addition to developing a LAMP-based Web application, to publish your research database as open data set with a clearly documented structure (schema, ontology, etc.). The benefits of that include much wider option of long-term preservation as well as opening various opportunities for other researchers to reproduce, enhance and build new knowledge on top of your results:
open data => reproducible research => scientific innovation. For this option, you can consider using some solid free open data repositories, such as figshare, Zenodo, CKAN-based Datahub and GitHub (see examples).
Secondly, you can consider a hybrid approach, which is to combine an open data set, published as mentioned above, with a relevant open source code of Web application that anyone could download, install and use to interface with your data set. Considering the open source hosting aspect, from above-mentioned options, the GitHub one is especially attractive, as you could seamlessly host both data and relevant Web application code. If you (or someone who can help you) are technical enough, you could make access to your data set, using this approach, even easier, by providing a containerized (such as Docker) version of your data and application (if the data set if not too large, you can even push relevant public Docker image to DockerHub or other services that host public images for free). Similarly, you can publish a free software appliance - virtual machine (VM) - perhaps, some of the above-mentioned repositories (and/or maybe others) offer hosting open VMs for free.
Thirdly, you can propose developing and hosting Web application that would provide open access to your data set to (in addition to some universities) relevant non-profit organizations, working in your particular domain. If successful, the costs of developing and maintaining the database would be covered (at least, for some time) by relevant scholarships, grants or similar financial vehicles. For example, for social sciences, including humanities, you can review funding opportunities at Social Science Research Council, The Rockefeller Foundation, Carnegie Corporation, Ford Foundation, Russel Sage Foundation and many other non-profits.
I have the impression that quite a few university libraries are very interested in preserving and making available other things than just books. So talking to your university librarian would be my first stop. Even if your university library does not have expertice in this field, they may know of such a project somewhere else that you can apply for.
As to someone else maintaining the web-interface for you, I would not count on that happening. That will cost someone time and money, and unless you are rich enough (and willing) to set up a fund to preserve your project, you cannot count on someone else doing it for you. Instead I would keep the interface as minimal as possible. It may not look pretty, but it is more likely to keep working.