TurnKey Linux Virtual Appliance Library

PHP scripts on Turnkey Mediawiki site

I have recently installed the current turnkey Mediawiki appliance on an old PC. All works very well and im happy as.

Im very new to using a LAMP type server. When i type in the site address ***.***.***.***  onto the browser it automatically goes to http://***.***.***.***/index.php/Main_page as it is a wiki site.

However i would like to put a link on the wiki site to goto to a webpage outside the wiki site but on the same server. How do i achieve this ? (eg http://***.***.***.***/phpscripts/database_input.php).

I want users to access the php file so they can input details into a data base.

I would like to know how to include the sample path, path & filename, eg http://***.***.***.***/phpscripts/database_input.php on the Turnkey Mediawiki appliance so i can get to it with my web browser.

If i type this into the browser address bar I get 'file not found'.

I want to use the same PC box for running additional scripts along side the wiki server.

Thanks

Jeremy's picture

TKL MediaWiki doesn't use default Apache2 config

You will find the root webpage folder at /usr/share/mediawiki (rather than the apache2 default /var/www). You should be able to simply put your custom page into your TKL appliance by moving the /phpscripts folder (with your database_input.php inside it) to the /usr/share/mediawiki folder.

Linking to that from within the wiki should be as simple as adding a link as you would normally.

I figured this out and tested it on my older verion of TKL MediaWiki, hopefully it works for you too.

PHP scripts on Turnkey Mediawiki site

ill try it

Thanks

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)