[Mediawiki-l] texvc

Sandy Ryan sryan at seewolf.com
Wed Dec 29 21:17:31 UTC 2010


Tried that - no joy

Here is the localsettings.php file edited to remove sensitive data Any
insights would be appreciated.

 

<?php

 

# This file was automatically generated by the MediaWiki installer.

# If you make manual changes, please keep track in case you need to #
recreate them later.

#

# See includes/DefaultSettings.php for all configurable settings # and their
default values, but don't forget to make changes in _this_ # file, not
there.

#

# Further documentation for configuration settings may be found at:

# http://www.mediawiki.org/wiki/Manual:Configuration_settings

 

# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.

if( defined( 'MW_INSTALL_PATH' ) ) {

                $IP = MW_INSTALL_PATH;

} else {

                $IP = dirname( __FILE__ );

}

 

$path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path(
implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );

 

require_once( "$IP/includes/DefaultSettings.php" );

 

if ( $wgCommandLineMode ) {

                if ( isset( $_SERVER ) && array_key_exists(
'REQUEST_METHOD', $_SERVER ) ) {

                                die( "This script must be run from the
command line\n" );

                }

}

 

#Turn on Debug

$wgDebugLogFile = "{$IP}/debug.log.txt";

 

 

## Uncomment this to disable output compression #
$wgDisableOutputCompression = true;

 

$wgSitename         = "MySITE ";

 

## The URL base path to the directory containing the wiki; ## defaults for
all runtime URL paths are based off of this.

## For more information on customizing the URLs please see:

## http://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath       = "/w";

$wgScriptExtension  = ".php";

 

## The relative URL path to the skins directory

$wgStylePath        = "$wgScriptPath/skins";

 

## The relative URL path to the logo.  Make sure you change this from the
default, ## or else you'll overwrite your logo when you upgrade!

$wgLogo             = "$wgStylePath/common/images/smalllogo.gif";

 

## UPO means: this is also a user preference option

 

$wgEnableEmail      = true;

$wgEnableUserEmail  = true; # UPO

 

$wgEmergencyContact = "webmaster at mydomain.com"; $wgPasswordSender =
"webmaster@ mydomain.com";

 

$wgEnotifUserTalk = true; # UPO

$wgEnotifWatchlist = true; # UPO

$wgEmailAuthentication = true;

$wgSMTP['host'] = 'mail.mydomain.com';

$wgSMTP['IDHost'] = 'mail.mydomain.com'; $wgSMTP['port'] = "25";
$wgSMTP['auth']= false;

 

 

## Database settings

$wgDBtype           = "mysql";

$wgDBserver         = "xxxxxxx";

$wgDBname           = "xxxxxxx";

$wgDBuser           = "xxxxxxx";

$wgDBpassword       = "xxxxxxxxxxxx";

 

# MySQL specific settings

$wgDBprefix         = "xxx_";

 

# MySQL table options to use during installation or update

$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

 

# Experimental charset support for MySQL 4.1/5.0.

$wgDBmysql5 = true;

 

## Shared memory settings

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = array();

 

# Disable reading by anonymous users

$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['upload']
= true; # But allow them to access the login page or else there will be no
way to log in!

# NOTE: You also need to provide access here to the .css and .js files that
the # allowed pages attempt to load; otherwise, users will get errors on the
page # when they attempt to load it (IE will complain about the errors; # FF
will show them in its error console) # [You also might want to add access to
"Main Page", "Wikipedia:Help", etc.) # But allow them to read e.g., these
pages:

$wgWhitelistRead =  array ( "Main Page", "Special:Userlogin",
"Help:Contents");

# Disable anonymous editing

$wgGroupPermissions['*']['edit'] = false;

# Hide user tools for anonymous IP visitors $wgShowIPinHeader = false;

 

# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

 

## To enable image uploads, make sure the 'images' directory ## is writable,
then set this to true:

$wgEnableUploads       = true;

 

$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp',
'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps');

 

$wgMaxUploadSize = 1024*1024 ; //1 MB

$wgUploadSizeWarning = 500*1024; // .5MB $wgMathPath
="{$wgScriptPath}/math"; $wgMathDirectory = "{$wgScriptPath}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp"; $wgUploadPath = "images";
$wgUploadDirectory = "images"; $wgAllowSlowParserFunctions = true; ## If you
use ImageMagick (or any other shell command) on a ## Linux server, this will
need to be set to the name of an ## available UTF-8 locale # $wgShellLocale
= "en_US.UTF-8";

 

## If you want to use image uploads under safe mode, ## create the
directories images/archive, images/thumb and ## images/temp, and make them
all writable. Then uncomment ## this, if it's not already uncommented:

# $wgHashedUploadDirectory = false;

 

## If you have the appropriate support software installed ## you can enable
inline LaTeX equations:

$wgUseTeX           = true;

 

$wgTexvc = "texvc.exe"; #Location of the texvc binary

 

 

## Set $wgCacheDirectory to a writable directory on the web server ## to
make your wiki go slightly faster. The directory should not ## be publically
accessible from the web.

#$wgCacheDirectory = "$IP/cache";

 

$wgLocalInterwiki   = strtolower( $wgSitename );

 

$wgLanguageCode = "en";

 

$wgSecretKey =
"4da437d064aa7209c3820613e3c31274bb5fccc1ad58e3d62498a8c6a678887";

 

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':

$wgDefaultSkin = 'monobook';

 

## For attaching licensing metadata to pages, and displaying an ##
appropriate copyright notice / icon. GNU Free Documentation ## License and
Creative Commons licenses are supported so far.

$wgEnableCreativeCommonsRdf = true;

$wgRightsPage = ""; # Set to the title of a wiki page that describes your
license/copyright $wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";

$wgRightsText = "GNU Free Documentation License 1.3"; $wgRightsIcon =
"${wgScriptPath}/skins/common/images/gnu-fdl.png";

# $wgRightsCode = "gfdl1_3"; # Not yet used

 

$wgDiff3 = "";

 

# When you make changes to this configuration file, this will make # sure
that cached pages are cleared.

$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ )
) );

 

-----Original Message-----

From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Ekompute .info

Sent: Wednesday, December 29, 2010 2:05 PM

To: MediaWiki announcements and site admin list

Subject: Re: [Mediawiki-l] FW: texvc

 

Do you have $wgAllowSlowParserFunctions = true; in your LocalSettings.php?

 

Anyway, just a thought. May or may not work.

 

 

On Thu, Dec 30, 2010 at 4:56 AM, Sandy Ryan <sryan at seewolf.com> wrote:

 

> 

> 

> Help please..

> 

> Thank you,

> Sandy Ryan

> 

> 

> 

> 

> From: Sandy Ryan [mailto:sryan at seewolf.com]

> Sent: Tuesday, December 28, 2010 7:19 AM

> To: 'MediaWiki-l at lists.wikimedia.org'

> Subject: texvc

> 

> 

> 

> Thanks Tom - I have it in that directory and still get the same error 

> "Failed to parse (unknown error): E=mc^2"

> 

> 

> 

> From the debug log

> 

> TeX: texvc.exe "D:\inetpub\Marketing\w\images\tmp"

> "D:\inetpub\Marketing\w\images\math" "E=mc^3" "UTF-8" "transparent"

> 

> TeX output:

> 

> 

> 

> 

> 

> I get TeX: is not recognized as an internal or external command, 

> operable program or batch file

> 

> 

> 

> If I remove the : after TeX I get

> 

> This is TeX, Version 3.1415926 (MiKTex 2.9)

> 

> (D:\inetpub\Marketing\w\texvc.exe

> 

> !Missing $ inserted.

> 

> <inserted text>

> 

> $

> 

> <to be read again>

> 

> ^^A

> 

> 1.1   .^@^^@^^@^^N^^_^^ba^^N^^@^^b4^^I^^cd!^^b8^^A
<mailto:.%5e@%5e%5e@%5e%5e@%5e%5eN%5e%5e_%5e%5eba%5e%5eN%5e%5e@%5e%5eb4%5e%5
eI%5e%5ecd!%5e%5eb8%5e%5eA> 

> 

> L^^cd!This Program Cannot .

> 

> ?

> 

> 

> 

> 

> 

> Now I'm sure that means something to somebody - it doesn't to me. I'm 

> trying real hard to make this work - but why is it so difficult?

> 

> 

> 

> Any help would be appreciated

> 

> Sandy

> 

> 

> 

> ++++++++++++++++++++++++++

> 

> When I type in the above command I get an error with the TeX: - if I 

> take the : out

> 

> > Well after two days of mucking with texvc - I finally got it to 

> > build

> 

> > and I moved the exe up to the main MediaWiki site per the directions

> 

> 

> 

> Is texvc.exe in "{IP}/math/", where {IP} is the root of your wiki? You 

> should be able to enter the command prompt, change to the root folder 

> of your wiki, and type "math\texvc". If you can't, you should probably 

> copy it there.

> 

> 

> 

 

 

Thank you,
Sandy Ryan
Auburn SeeWolf llc
Providing custom software solutions to improve your company's efficiency and
increase profits.
505-332-9340 (v)
505-934-0684 (c)
505-332-9365 (f)

 



More information about the MediaWiki-l mailing list