MediaWiki - Bootstrap Skin Not Rendering - mediawiki

I have a fresh install of MediaWiki setup. I have installed the Bootstrap Skin however it doesn't seem to be rendering anything out.
This is the path to my skins directory
/var/www/wiki/skins
Inside this I have the following
4 drwxrwxrwx 4 root root 4096 2015-07-30 15:33 CologneBlue
4 drwxrwxrwx 7 root root 4096 2015-07-31 10:36 mediawiki-bootstrap
4 drwxrwxrwx 4 root root 4096 2015-07-30 15:33 Modern
4 drwxrwxrwx 3 root root 4096 2015-07-30 15:33 MonoBook
4 -rwxrwxrwx 1 root root 1288 2015-07-30 15:33 README
4 drwxrwxrwx 6 root root 4096 2015-07-30 15:33 Vector
Inside the mediawiki-bootstap folder is the following
4 drwxrwxrwx 2 root root 4096 2015-07-31 10:36 assets
4 drwxrwxrwx 7 root root 4096 2015-07-31 10:37 bootstrap
4 -rwxrwxrwx 1 root root 524 2015-07-31 10:36 Bootstrap.i18n.php
4 -rwxrwxrwx 1 root root 2271 2015-07-31 10:36 bootstrap.php
12 -rwxrwxrwx 1 root root 9274 2015-07-31 10:36 Bootstrap.renderer.php
4 -rwxrwxrwx 1 root root 3751 2015-07-31 10:36 Bootstrap.skin.php
4 -rwxrwxrwx 1 root root 759 2015-07-31 10:36 DOMDebugPrinter.php
4 drwxrwxrwx 8 root root 4096 2015-07-31 10:37 Font-Awesome
20 -rwxrwxrwx 1 root root 18092 2015-07-31 10:36 LICENSE.txt
8 -rwxrwxrwx 1 root root 5131 2015-07-31 10:36 README.md
4 drwxrwxrwx 2 root root 4096 2015-07-31 10:36 xsl
I have added the following to my LocalSettings.php file located in the wiki folder
require_once( "/var/www/wiki/skins/mediawiki-bootstrap/bootstrap.php");
$wgDefaultSkin = "bootstrap";
#$wgDefaultSkin = "modern";
When I change back to modern, the styling and CSS loads fine. When I move to bootstrap the page loads with no styling/formatting.
I was wondering if anybody had any suggestion why this is not working for me.
Thanks

Related

Unable to remove a container using machinectl

I pulled a nixos container and now want to remove it.
I enter:
sudo machinectl remove nixos-21-tar
But the return message is:
Could not remove image: Access denied
If I list the images I get:
$ machinectl list-images
NAME TYPE RO USAGE CREATED MODIFIED
debian directory no n/a n/a n/a
nixos-21-tar directory no n/a n/a n/a
EDIT:
I think the image has been corrupted and the owner/group is wrong:
sudo tree /var/lib/machines/nixos-21-tar/
/var/lib/machines/nixos-21-tar/
└── var
└── empty
sudo ls -alR /var/lib/machines/nixos-21-tar/
/var/lib/machines/nixos-21-tar:
total 12
drwxrwxrwx 3 699334656 699334656 4096 Apr 18 18:38 .
drwxrwxrwx 4 root root 4096 Apr 21 17:23 ..
drwxrwxrwx 3 699334656 699334656 4096 Apr 18 18:38 var
/var/lib/machines/nixos-21-tar/var:
total 12
drwxrwxrwx 3 699334656 699334656 4096 Apr 18 18:38 .
drwxrwxrwx 3 699334656 699334656 4096 Apr 18 18:38 ..
dr-xr-xr-x 2 root root 4096 Mar 11 17:29 empty
/var/lib/machines/nixos-21-tar/var/empty:
total 8
dr-xr-xr-x 2 root root 4096 Mar 11 17:29 .
drwxrwxrwx 3 699334656 699334656 4096 Apr 18 18:38 ..

apache webserver don't manage static files

I'm installing Dolibarr istance for my company. I installed it with LAMP. Now, on localhost everything works fine and i have the classic interface.
After this. i Build a virtualhost like this, to point the site on erp.varesenext.it
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerAdmin webmaster#localhost
ServerName erp.varesenext.it
ServerAlias www.erp.varesenext.it
DocumentRoot /var/www/html/dolibarr1/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Then, i fix the /etc/hosts file:
40.71.186.112 erp.varesenext.it
to point that site on my webserver.
All works fine, but when i go to my browser, it shows me only text, without the app inter face...like this
Any help??
This is the folder dolibarr1 inside /var/www/html/dolibarr1
drwxrwxr-x 11 www-data www-data 4096 May 30 08:52 accountancy
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 adherents
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 admin
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 api
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 asterisk
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 barcode
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 bookmarks
drwxrwxr-x 19 www-data www-data 4096 Mar 11 22:40 build
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 cashdesk
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 categories
-rwxrwxr-x 1 www-data www-data 213138 Feb 2 01:24 ChangeLog
drwxrwxr-x 7 www-data www-data 4096 May 30 08:52 comm
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 commande
-rwxrwxr-x 1 www-data www-data 2072 Jan 24 13:32 composer.json
-rwxrwxr-x 1 www-data www-data 63478 Jan 24 13:32 composer.lock
drwxrwxr-x 16 www-data www-data 4096 May 30 08:52 compta
drwxrwxr-x 2 www-data www-data 4096 May 30 10:09 conf
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 contact
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 contrat
-rwxrwxr-x 1 www-data www-data 35147 Jan 24 13:32 COPYING
-rwxrwxr-x 1 www-data www-data 9700 Jan 24 13:32 COPYRIGHT
drwxrwxr-x 14 www-data www-data 4096 May 30 08:52 core
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 cron
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 custom
drwxrwxr-x 8 www-data www-data 4096 Mar 11 22:35 dev
drwxrwxr-x 5 www-data www-data 4096 Mar 11 22:35 doc
-rwxrwxr-x 1 www-data www-data 610 Jan 24 13:32 Dockerfile
-rwxrwxr-x 1 www-data www-data 6359 May 30 09:44 document.php
drwxrwxr-x 14 www-data www-data 4096 May 30 11:07 documents
drwxrwxr-x 7 www-data www-data 4096 Jan 24 17:47 dolibarr-4.0.4
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 don
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 ecm
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 expedition
drwxrwxr-x 7 www-data www-data 4096 May 30 08:52 expensereport
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 exports
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 externalsite
-rwxrwxr-x 1 www-data www-data 2238 May 30 09:44 favicon.ico
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 fichinter
-rwxrwxr-x 1 www-data www-data 17147 May 30 09:44 filefunc.inc.php
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 fourn
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 ftp
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 holiday
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 hrm
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 imports
drwxrwxr-x 26 www-data www-data 4096 May 30 08:52 includes
-rwxrwxr-x 1 www-data www-data 26543 May 30 09:44 index.php
drwxrwxr-x 7 www-data www-data 4096 May 30 08:52 install
-rwxrwxr-x 1 www-data www-data 91 Jan 24 13:32 INSTALL
drwxrwxr-x 83 www-data www-data 4096 May 30 08:52 langs
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 livraison
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 loan
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 mailmanspip
-rwxrwxr-x 1 www-data www-data 97173 May 30 09:44 main.inc.php
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 margin
-rwxrwxr-x 1 www-data www-data 11689 May 30 09:44 master.inc.php
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 multicurrency
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 opensurvey
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 paybox
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 paypal
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 printing
drwxrwxr-x 10 www-data www-data 4096 May 30 08:52 product
drwxrwxr-x 8 www-data www-data 4096 May 30 08:52 projet
drwxrwxr-x 13 www-data www-data 4096 May 30 08:52 public
-rwxrwxr-x 1 www-data www-data 6086 Jan 24 13:32 README-FR.md
-rwxrwxr-x 1 www-data www-data 6953 Mar 7 14:46 README.md
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 resource
-rwxrwxr-x 1 www-data www-data 115 May 30 09:44 robots.txt
drwxrwxr-x 15 www-data www-data 4096 Jun 5 2015 scripts
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 societe
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 supplier_proposal
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 support
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 theme
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 user
-rwxrwxr-x 1 www-data www-data 6936 May 30 09:44 viewimage.php
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 webservices
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 websites

Recover mysql using data folder

One of our MySQL servers died but somehow we were able to recover all the files from it. This server was a slave at one time however we stopped it being a slave so we could use it for housekeeping tasks and reports, etc.
Can someone tell me how to recover with this?
I now have these files and a backup of my.cnf
ll /root/home/recovered/mysql/
-rw-r----- 1 root root 117 Jun 1 09:30 rabney-relay-bin.000001
-rw-r----- 1 root root 26 Jun 1 09:30 rabney-relay-bin.index
-rw-r----- 1 root root 113055367168 Jun 1 10:42 ibdata1
-rw-r----- 1 root root 1073741824 Jun 1 09:33 ib_logfile0
-rw-r----- 1 root root 1073741824 Jun 1 09:33 ib_logfile1
drwx------ 2 root root 4096 Jun 1 09:30 mysql
drwx------ 2 root root 16384 Jun 1 09:30 production_copy
-rw-r----- 1 root root 3253518648 Jun 1 09:32 slowquery.log
drwx------ 2 root root 4096 Jun 1 09:30 test
I've been reading articles on Google regarding this but not sure how to do it yet.

export result of the query with INTO OUTFILE

I don't find the exported file into /tmp folder. Where MYSQL export that file ?
mysql> SELECT oid,t FROM mytable INTO OUTFILE '/tmp/bbb.txt' CHARACTER SET latin1 FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n';
ERROR 1086 (HY000): File '/tmp/bbb.txt' already exists
mysql> \q
Bye
usr#locahost:/tmp$ ls -l /tmp
total 210308
-rw------- 1 jetty jetty 0 Feb 27 2014 31020.jsvc_up
-rw------- 1 root root 2210 Dec 13 2013 apticron.hFScRvN3T6
drwxr-xr-x 2 root root 4096 May 25 2014 graphs
srwxr-xr-x 1 root root 0 Aug 6 2014 haproxy.socket
drwx------ 2 jetty jetty 4096 Feb 27 2014 hsperfdata_jetty
drwxr-xr-x 2 root root 4096 Jun 16 04:45 hsperfdata_root
drwx------ 2 usr users 4096 Jul 15 03:36 mc-usr
-rw-r--r-- 1 root root 64 Jul 5 15:18 puppet_failures
-rw-r--r-- 1 usr users 64 Jul 15 03:29 puppet_failures00
usr#locahost:/tmp$

Does GT.M save database operation command in logs file

I see that have some logs file create by gt.m but just only about mupip rundown or recover information
> root#localhost:/tmp/fis-gtm/V6.2-002_x86_64# ll total 68 drwxrwxrwt 2
> root root 4096 Jul 14 16:22 ./ drwxr-xr-x 3 root root 4096 Jul 13
> 14:32 ../
> -rw-r--r-- 1 root root 0 Jul 13 14:33 root_20150713073215UTC-20150713073319UTC_mupip_rundown
> -rw-r--r-- 1 root root 278 Jul 13 14:32 root_20150713073215UTC_mupip_recover
> -rw-r--r-- 1 root root 0 Jul 14 11:11 root_20150713073407UTC-20150714041129UTC_mupip_rundown
> -rw-r--r-- 1 root root 278 Jul 13 14:34 root_20150713073407UTC_mupip_recover
> -rw-r--r-- 1 root root 278 Jul 14 09:46 root_20150714024647UTC_mupip_recover
> -rw-r--r-- 1 root root 0 Jul 14 09:49 root_20150714024820UTC-20150714024941UTC_mupip_rundown
> -rw-r--r-- 1 root root 278 Jul 14 09:48 root_20150714024820UTC_mupip_recover
> -rw-r--r-- 1 root root 77 Jul 14 09:55 root_20150714025001UTC-20150714025500UTC_mupip_rundown
> -rw-r--r-- 1 root root 291 Jul 14 09:50 root_20150714025001UTC_mupip_recover
> -rw-r--r-- 1 root root 0 Jul 14 10:03 root_20150714030230UTC-20150714030331UTC_mupip_rundown
> -rw-r--r-- 1 root root 311 Jul 14 10:02 root_20150714030230UTC_mupip_recover
> -rw-r--r-- 1 root root 0 Jul 14 14:35 root_20150714030424UTC-20150714073509UTC_mupip_rundown
> -rw-r--r-- 1 root root 260 Jul 14 10:04 root_20150714030424UTC_mupip_recover
Where do I find logs about GTM command like : SET ^,WRIRE....?
Normal commands (Set, Write) are part of the core programming language and are not logged; they are journalled if they read or write something to disk. The question is what are you looking for?