Thread:Project:Support desk/cannot log into mediawiki from page outiside wiki

Hi,

basically i want to log into the wiki from another page in the same server, using username/password. this page will be located in http://www.ssss.org/index.html and the log in will be done through urlloader in as3 that loads a login.php which uses a wikibot.php. it works on local but it does not work using http://www.ssss.com/.

i have been changing permissions, conf files, servernames, virtualhosts, etc but no luck, i thought it was the virtual hosting but it seems is not (checked http://ubuntuguide.org/wiki/MediaWiki_tips). Checked LocalSettings.php and all seems to be fine.

i have created a test .php which connects to the DB and retrieves data using URL http://www.ssss.com/test.php and works fine using  $conexion=mysql_connect("localhost","wikiuser","password");

i have set up a testing environment on local, and it works fine but only using URL http://localhost/ in the url. using two scripts - login.php, and wikibot.php

any ideas about why that login.php only works using localhost and not using www.xxxx.org? which $wiki (in wikibot) and DB addresses should i use? i think first thing ill do is to install wiki 1.17!

versions in the server: MediaWiki 	1.15.1 PHP 	5.3.2-1ubuntu4.9 (apache2handler) MySQL 	5.1.41-3ubuntu12.10

thanks