Skip to content

Zeroplex 生活隨筆

軟體開發、伺服器和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

標籤: 網路架站

主機又掛了

Posted on 2008 年 1 月 19 日2021 年 3 月 12 日 By 日落 在〈主機又掛了〉中尚無留言

今天資訊處 FreeBSD 上面的 Latex 又掛了,原因不明。

我怎麼覺得 teTex 套件上面的東西不太穩,上次裝好以後一直不能用,但是一個 apache restart 就又好了,然後壞掉的時候也是不聲不響、什麼設定都沒有改就這樣突然不能用了。

目前只在紀錄檔中看到幾段錯誤訊息:

This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2008.01.19:1617' -> 72f972c15e0209bc81b31a2c2d380171.ps
. [1]
convert: Postscript delegate failed `72f972c15e0209bc81b31a2c2d380171.ps': No such file or directory.
convert: missing an image filename `72f972c15e0209bc81b31a2c2d380171.png'.
identify: unable to open image `72f972c15e0209bc81b31a2c2d380171.png': No such file or directory.
identify: unable to open file `72f972c15e0209bc81b31a2c2d380171.png'.
[Sat Jan 19 16:17:07 2008] [error] [client 140.134.23.119] PHP Warning: copy(72f972c15e0209bc81b31a2c2d380171.png) [function.copy]: failed to open stream: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/p
lugins/latex/class.latexrender.php on line 271, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php
[Sat Jan 19 16:17:07 2008] [error] [client 140.134.23.119] PHP Warning: unlink(/tmp/72f972c15e0209bc81b31a2c2d380171.png) [ href='function.unlink'>function.unlink]: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/plugins/latex
/class.latexrender.php on line 293, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2008.01.19:1617' -> d991288df8da39d296ee19c0485afb54.ps
. [1]
convert: Postscript delegate failed `d991288df8da39d296ee19c0485afb54.ps': No such file or directory.
convert: missing an image filename `d991288df8da39d296ee19c0485afb54.png'.
identify: unable to open image `d991288df8da39d296ee19c0485afb54.png': No such file or directory.
identify: unable to open file `d991288df8da39d296ee19c0485afb54.png'.
[Sat Jan 19 16:17:29 2008] [error] [client 140.134.23.119] PHP Warning: copy(d991288df8da39d296ee19c0485afb54.png) [function.copy]: failed to open stream: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/p
lugins/latex/class.latexrender.php on line 271, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php
[Sat Jan 19 16:17:29 2008] [error] [client 140.134.23.119] PHP Warning: unlink(/tmp/d991288df8da39d296ee19c0485afb54.png) [ href='function.unlink'>function.unlink]: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/plugins/latex
/class.latexrender.php on line 293, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php

吃完飯再看看到底是哪個套件爆炸,想辦法復原。看來這個週末的假期又泡湯了。

Tags:FreeBSD, 作業系統, 網路架站

phpmyadmin error

Posted on 2008 年 1 月 10 日2021 年 3 月 12 日 By 日落 在〈phpmyadmin error〉中有 3 則留言

今天 phpmyadmin 突然有些資料表檢視開不起來,一直出現空白頁。檢查後也不是資料庫權限沒開,資料庫也很正常,最後發現 httpd-error.log 有錯誤訊息:canary mismatch on efree() - heap overflow detected () .....

感覺比較像是 PHP 的問題,網路上也找不到問題原因。

後來解決的方法,就是把 PHP5 所有的套件 re-install 一次,後來就好了。今天年初怎麼怪事就這麼多…….

Tags:網路架站

Use Latex in Doku in FreeBSD

Posted on 2008 年 1 月 1 日2021 年 3 月 12 日 By 日落 在〈Use Latex in Doku in FreeBSD〉中尚無留言

Necessary ports:/usr/ports/graphics/ImageMagick
/usr/ports/print/teTeX
/usr/ports/print/ghostscript-gpl
/usr/ports/print/dvips

Following the official wiki, install the plugins in the directory. It will be in dokuwiki/lib/plugins. After this, fix class.latexrender.php because the paht of the program is not the same as Linux system.

class.latexrender.php (line:36 – 39):var $_latex_path = "/usr/local/bin/latex";
var $_dvips_path = "/usr/local/bin/dvips";
var $_convert_path = "/usr/local/bin/convert";
var $_identify_path="/usr/local/bin/identify";

If Latex won’t work, try this way:
https://b2.zeroplex.tw/2009/02/use-latex-in-mediawiki-in-freebsd.html

Tags:程式設計, 網路架站

IIS 不顯示錯誤訊息

Posted on 2007 年 9 月 17 日2021 年 3 月 12 日 By 日落 在〈IIS 不顯示錯誤訊息〉中尚無留言

開啟:網站內容 -> 主目錄 -> 設定 -> 偵錯

可以選擇是否顯示錯誤訊息。預設的錯誤訊息會被取代為「iis 處理 URL 時伺服器發生錯誤。請連絡您的系統管理員。」。

在測試階段最好把錯誤訊息開啟,等到正式上線以後,把錯誤訊息關掉會比較安全。

Tags:網路架站

Mediawiki 時差修改

Posted on 2007 年 9 月 16 日2021 年 3 月 12 日 By 日落 在〈Mediawiki 時差修改〉中尚無留言

Mediawiki 安裝好以後,時間不一定是對的,可能需要修改一下時區才能正常顯示。

開啟 LocalSettings.php 在最後面加入:

#Set Default Timezone
$wgLocaltimezone = "America/Los_Angeles";
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
# Versions before 1.7.0 used $wgLocalTZoffset as hours.
# After 1.7.0 offset as minutes
$wgLocalTZoffset = date("Z") / 60;
putenv("TZ=$oldtz");

然後修改 $wgLocaltimezone 為台灣台北:
$wgLocaltimezone = "Asia/Taipei";

參考資料:Mediawiki Help:Timezone
http://meta.wikimedia.org/wiki/Timezone_adjustments

Tags:網路架站

文章分頁

上一頁 1 ... 8 9 10 ... 12 下一頁

其他

關於我  (About me)

小額贊助

  文章 RSS Feed

  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows WordPress XD 作業系統 分享 好站推薦 專題 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.