[MediaWiki-l] Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

Alex Muir
Hi,

I'm trying to setup some scripts to configure a fresh ubuntu server and
install the semantic media wiki automatically or least sem-automatically.
I've got up to the maintenance/install.php script. When I run the following
command I'm immediately logged out of the ubuntu server and have to log in
again. No install is performed and no error message is presented.

sudo php install.php --wiki:ELT --server:example.com --dbuser:root
--dbpass:password --dbname:wiki  --dbtype:mysql --db:prefix:smw
--pass:password

I can however install normally at this point using the web browser.

I note the http://www.mediawiki.org/wiki/Manual:Install.php has really no
documentation


Any thoughts?
Thanks

--
-

Alex Muir
http://ca.linkedin.com/pub/alex-muir/36/ab7/125
_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

Mark A. Hershberger-2
On 09/13/2013 01:51 PM, Alex Muir wrote:
> I'm trying to setup some scripts to configure a fresh ubuntu server and
> install the semantic media wiki automatically or least sem-automatically.
> I've got up to the maintenance/install.php script. When I run the following
> command I'm immediately logged out of the ubuntu server and have to log in
> again. No install is performed and no error message is presented.

I don't understand why this would log you out but I can say that you
shouldn't be using sudo to do this.  Also, you are using parameters in
the wrong way.  Instead of "--db:prefix:smw" you would use
"--db-prefix=smw".

I did a lot of the work to adapt Chad's web-based installer to the CLI.
Thanks for pointing out the lack of documentation for this.  I'll work
on improving it and I appreciate any further feedback you have.

Mark.

--
Mark A. Hershberger
NicheWork LLC
717-271-1084

_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

Alex Muir
Hi Mark,

So I'm a little bit further along but still getting stuck.  I'm not sure
what scriptpath is to be relative to (/var/www ?) nor why I get no such
file or directory for both scriptpath and confpath.  I configure apache
virtual host settings for the wiki prior to install? Does it matter?

maintenance$ php install.php php install.php --name=ELT --admin=admin
--pass=xx& --scriptpath=/elt.x.com/public_html/wiki/ --lang=en
--dbtype=mysql  --dbserver=localhost --dbname=wiki --dbprefix=smw
--installdbuser=root --installdbpass=1689twentyfour& --dbuser=root
--dbpass=xx&  --confpath=/var/www/
elt.x.com/public_html/wiki/mediawiki-1.21.2/
[1] 18873
[2] 18874
[3] 18875
-bash: --scriptpath=/elt.x.com/public_html/wiki/: No such file or directory
-bash: --confpath=/var/www/elt.x.com/public_html/wiki/mediawiki-1.21.2/: No
such file or directory
ec2-user@ELT:/var/www/
elt.x.com/public_html/wiki/mediawiki-1.21.2/maintenance$ --dbuser=root:
command not found


Regards
Alex

On Fri, Sep 13, 2013 at 3:10 PM, Mark A. Hershberger <[hidden email]>wrote:

> On 09/13/2013 01:51 PM, Alex Muir wrote:
> > I'm trying to setup some scripts to configure a fresh ubuntu server and
> > install the semantic media wiki automatically or least sem-automatically.
> > I've got up to the maintenance/install.php script. When I run the
> following
> > command I'm immediately logged out of the ubuntu server and have to log
> in
> > again. No install is performed and no error message is presented.
>
> I don't understand why this would log you out but I can say that you
> shouldn't be using sudo to do this.  Also, you are using parameters in
> the wrong way.  Instead of "--db:prefix:smw" you would use
> "--db-prefix=smw".
>
> I did a lot of the work to adapt Chad's web-based installer to the CLI.
> Thanks for pointing out the lack of documentation for this.  I'll work
> on improving it and I appreciate any further feedback you have.
>
> Mark.
>
> --
> Mark A. Hershberger
> NicheWork LLC
> 717-271-1084
>



--
-

Alex Muir
http://ca.linkedin.com/pub/alex-muir/36/ab7/125
_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
OQ
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

OQ
The bash error gives it away. You need to quote your parameters if they
contain special character so the shell doesn't interpret them.


On Tue, Sep 17, 2013 at 3:40 PM, Alex Muir <[hidden email]> wrote:

> Hi Mark,
>
> So I'm a little bit further along but still getting stuck.  I'm not sure
> what scriptpath is to be relative to (/var/www ?) nor why I get no such
> file or directory for both scriptpath and confpath.  I configure apache
> virtual host settings for the wiki prior to install? Does it matter?
>
> maintenance$ php install.php php install.php --name=ELT --admin=admin
> --pass=xx& --scriptpath=/elt.x.com/public_html/wiki/ --lang=en
> --dbtype=mysql  --dbserver=localhost --dbname=wiki --dbprefix=smw
> --installdbuser=root --installdbpass=1689twentyfour& --dbuser=root
> --dbpass=xx&  --confpath=/var/www/
> elt.x.com/public_html/wiki/mediawiki-1.21.2/
> [1] 18873
> [2] 18874
> [3] 18875
> -bash: --scriptpath=/elt.x.com/public_html/wiki/: No such file or
> directory
> -bash: --confpath=/var/www/elt.x.com/public_html/wiki/mediawiki-1.21.2/:
> No
> such file or directory
> ec2-user@ELT:/var/www/
> elt.x.com/public_html/wiki/mediawiki-1.21.2/maintenance$ --dbuser=root:
> command not found
>
>
> Regards
> Alex
>
> On Fri, Sep 13, 2013 at 3:10 PM, Mark A. Hershberger <[hidden email]
> >wrote:
>
> > On 09/13/2013 01:51 PM, Alex Muir wrote:
> > > I'm trying to setup some scripts to configure a fresh ubuntu server and
> > > install the semantic media wiki automatically or least
> sem-automatically.
> > > I've got up to the maintenance/install.php script. When I run the
> > following
> > > command I'm immediately logged out of the ubuntu server and have to log
> > in
> > > again. No install is performed and no error message is presented.
> >
> > I don't understand why this would log you out but I can say that you
> > shouldn't be using sudo to do this.  Also, you are using parameters in
> > the wrong way.  Instead of "--db:prefix:smw" you would use
> > "--db-prefix=smw".
> >
> > I did a lot of the work to adapt Chad's web-based installer to the CLI.
> > Thanks for pointing out the lack of documentation for this.  I'll work
> > on improving it and I appreciate any further feedback you have.
> >
> > Mark.
> >
> > --
> > Mark A. Hershberger
> > NicheWork LLC
> > 717-271-1084
> >
>
>
>
> --
> -
>
> Alex Muir
> http://ca.linkedin.com/pub/alex-muir/36/ab7/125
> _______________________________________________
> MediaWiki-l mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

Alex Muir
Right thanks,,,

I'm wondering I was looking at the
http://www.mediawiki.org/wiki/Importdocumentation

php importDump.php --conf LocalSettings.php dumpfile.xml.gz wikidb

For the this command where you import with the localSetting.php. It doesn't
really say what adding the Localsettings file does in the documentation.

Does this replace the LocalSettings.php file?

It seems like running a statement like that might forgo the need to run the
install.php. Does it?

Thanks







On Tue, Sep 17, 2013 at 4:50 PM, OQ <[hidden email]> wrote:

> The bash error gives it away. You need to quote your parameters if they
> contain special character so the shell doesn't interpret them.
>
>
> On Tue, Sep 17, 2013 at 3:40 PM, Alex Muir <[hidden email]> wrote:
>
> > Hi Mark,
> >
> > So I'm a little bit further along but still getting stuck.  I'm not sure
> > what scriptpath is to be relative to (/var/www ?) nor why I get no such
> > file or directory for both scriptpath and confpath.  I configure apache
> > virtual host settings for the wiki prior to install? Does it matter?
> >
> > maintenance$ php install.php php install.php --name=ELT --admin=admin
> > --pass=xx& --scriptpath=/elt.x.com/public_html/wiki/ --lang=en
> > --dbtype=mysql  --dbserver=localhost --dbname=wiki --dbprefix=smw
> > --installdbuser=root --installdbpass=1689twentyfour& --dbuser=root
> > --dbpass=xx&  --confpath=/var/www/
> > elt.x.com/public_html/wiki/mediawiki-1.21.2/
> > [1] 18873
> > [2] 18874
> > [3] 18875
> > -bash: --scriptpath=/elt.x.com/public_html/wiki/: No such file or
> > directory
> > -bash: --confpath=/var/www/elt.x.com/public_html/wiki/mediawiki-1.21.2/:
> > No
> > such file or directory
> > ec2-user@ELT:/var/www/
> > elt.x.com/public_html/wiki/mediawiki-1.21.2/maintenance$ --dbuser=root:
> > command not found
> >
> >
> > Regards
> > Alex
> >
> > On Fri, Sep 13, 2013 at 3:10 PM, Mark A. Hershberger <[hidden email]
> > >wrote:
> >
> > > On 09/13/2013 01:51 PM, Alex Muir wrote:
> > > > I'm trying to setup some scripts to configure a fresh ubuntu server
> and
> > > > install the semantic media wiki automatically or least
> > sem-automatically.
> > > > I've got up to the maintenance/install.php script. When I run the
> > > following
> > > > command I'm immediately logged out of the ubuntu server and have to
> log
> > > in
> > > > again. No install is performed and no error message is presented.
> > >
> > > I don't understand why this would log you out but I can say that you
> > > shouldn't be using sudo to do this.  Also, you are using parameters in
> > > the wrong way.  Instead of "--db:prefix:smw" you would use
> > > "--db-prefix=smw".
> > >
> > > I did a lot of the work to adapt Chad's web-based installer to the CLI.
> > > Thanks for pointing out the lack of documentation for this.  I'll work
> > > on improving it and I appreciate any further feedback you have.
> > >
> > > Mark.
> > >
> > > --
> > > Mark A. Hershberger
> > > NicheWork LLC
> > > 717-271-1084
> > >
> >
> >
> >
> > --
> > -
> >
> > Alex Muir
> > http://ca.linkedin.com/pub/alex-muir/36/ab7/125
> > _______________________________________________
> > MediaWiki-l mailing list
> > [hidden email]
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
> _______________________________________________
> MediaWiki-l mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



--
-

Alex Muir
http://ca.linkedin.com/pub/alex-muir/36/ab7/125
_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

Mark A. Hershberger-2
In reply to this post by Alex Muir
On 09/17/2013 04:40 PM, Alex Muir wrote:
> maintenance$ php install.php php install.php --name=ELT --admin=admin
> --pass=xx&

You should quote your password.  If you *do* use & in your password and
you don't quote it, the command line interpreter will think "&" is the
end of the command and background the command.  More details here:
http://hacktux.com/bash/ampersand

You have three ampersands in your command line.  That is why you end up
with this bit:

  [1] 18873
  [2] 18874
  [3] 18875

You also get error messages like:

  -bash: --scriptpath=/elt.x.com/public_html/wiki/: No such file or
         directory

for the same reason:  bash thinks "--script..." is the beginning of a
new command since it follows the ampersand.

> --scriptpath=/elt.x.com/public_html/wiki/

Script path is the bit after the hostname in your URL.  If your wiki is
reachable via "http://elt.x.com/wiki/", then scriptpath should be set to
"/wiki/"

Let me know if you need further help.

Mark.

--
http://hexmode.com/

Love alone reveals the true shape of the universe.
     -- "Everywhere Present", Stephen Freeman

_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Anyone have any luck using the install.php script? Currently when I run it it logs me out and does not install

Mark A. Hershberger-2
In reply to this post by Alex Muir
On 09/17/2013 06:51 PM, Alex Muir wrote:
> Right thanks,,,
>
> I'm wondering I was looking at the
> http://www.mediawiki.org/wiki/Import documentation
>
> php importDump.php --conf LocalSettings.php dumpfile.xml.gz wikidb
>
> For the this command where you import with the localSetting.php. It doesn't
> really say what adding the Localsettings file does in the documentation.

The importDump command does not replace LocalSettings.php.  The --conf
parameter is just used to tell it to look at a different one than the
default.

--
http://hexmode.com/

Love alone reveals the true shape of the universe.
     -- "Everywhere Present", Stephen Freeman

_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l