免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1480 | 回复: 0
打印 上一主题 下一主题

Relay ( Ajax Directory Manager ) [复制链接]

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-09 09:16 |只看该作者 |倒序浏览
Description:
        這是一支 PHP 搭配 PERL 所開發的 web ajax 檔案目錄管理軟體,官方網站在
http://www.ecosmear.com/relay/
官網這邊也有
demo
網頁可測試看看,Ajax 近來可真的熱到不行,目前很多網路上的網站開發都朝這方向進行,
Relay
這支程式是小弟不小心逛到,檔案目錄管理還算蠻實用的,所以就把它下載到我的 FreeBSD Server 裝起來玩玩,以下是我的安裝方式順便記錄一下免得過兩天又忘記沒得參考。
Environment :
             硬體:i386 PC Intel P3 500
             作業系統:FreeBSD 6.0 Release
          記憶體:256M RAM
Setp 1.
※ 首先在 FreeBSD 下先確認是否有以下的環境:
PHP version 4+ MySQL version 4+ Perl 5.8.0Apache 2.0
※ 因為 Relay 需要用到 PHP 的 fileinfo extensions 而我的 PHP 恰好沒加裝 fileinfo 這個 extensions 所以我用 ports 再加裝
#cd /usr/ports/lang/php4-extensions        #  切換到 ports 目錄下準備安裝 fileinfo 延伸套件
#make config
[X] FILEINFO     fileinfo support      # 我加選 fileinfo extensions
#make install        #  有錯誤發生要我先 deinstall 再 reinstall
#make deinstall#make reinstall
#cd /usr/lcoal/www/data      #  切換目錄並到官網下載  relayb01-062906.zip 軟體放到你的 apache 目錄下
#unzip relayb01-062906.zip        # 用 unzip 解開
#chown -R www:www relay        # 更改 relay 目錄權限
Setp 2.
※ 手動建立 relay 資料庫並給個使用者及 relay_password
#mysql -pmysql>create database relay;mysql>grant all on relay.* TO relay@localhost IDENTIFIED BY 'relay_password';mysql> flush privileges;mysql> exit
※ 修改 apache 的 httpd.conf 檔讓 .pl 的檔案可運行於你的 relay 目錄下,因為 upload.pl 這支程式要能概在 ralay 目錄下也能執行所以就必須要開啟 mod_cgi 於這個執行目錄
ScriptAlias /relay/.* "/usr/local/www/data/relay/"    AllowOverride All    Options All    Order allow,deny    Allow from allAddHandler cgi-script .cgi .pl
#apachectl restart   # 重新啟動 apache
#vi /usr/local/www/data/relay/test.pl    # 寫個  hello world 測試看看是否成功運行 .pl
#!/usr/bin/perlprint "Content-type: text/html\n\n";print "\n";print "Hello, world!
\n";print "\n";
http://IP/rwlay/test.pl     # 可開個瀏覽器看看 .pl  的 CGI 程式是否可於這個目錄執行
Setp 3.
※ 一切就緒後即可開個 Browse 進入 http://IP/relay/ 就可以開始進入安裝畫面填入一些基本資料:
databaseDatabase Host:  localhostDatabase Name:  relayTable Prefix:   relay_Database Username: relay    Database Password: relay_passwordadministratorUsername: admin    Password: xxxxxUtilitiesGhostScript: /usr/local/bin/gs    ImageMagick: /usr/local/bin/convert
※ 成功後即會顯示:
Database Connected....doneDropping tables if the exist...doneCreating tables*relay_clients...*relay_filesystem...*relay_log...*relay_permissions...*relay_users...done creating tablesgenerating random password key : 68afcdb14ed47c792aa336ac6510a801 ... donecreating first relay administrator...donerootpath : /usr/local/www/data/relaysetting up first Virtual Directory: /usr/local/www/data/relay/filestore....donesetting up permissions....donethumbnailed image types : image\/jpeg|image\/png|application\/pdf|application\/postscript|image\/x-photoshop|image\/Config Files CreatedVerifying Perl Installation... for the upload script @ http://IP/relay/upload.pl?test ...done...
※ 最後開個 Browse 到 http://IP/relay/ 用  admin / xxxx 登入即可使用美美又實用的檔案管理程式


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_522961.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP