php wiki
TRANSCRIPT
-
8/13/2019 Php Wiki
1/3
Recent posts Forum News Contact Secure login Search
Home Blogs sandip's blog
Get PHPwiki up and running with mysql
Submitted by sandipon Thu, 12/16/2004 - 16:02 PHP
Ran into some difficulty installing the wiki with mysql backend as the documentation wasn't upto-date.
Below are some notes and customization done during the process:
Download the latest tarball from SourceForge1.
Extract all files.2.
Copy 'config/config-dist.ini' to 'config/config.ini' and edit the settings.3.
Make sure to set the value of 'DEBUG' to either 1 or 0 and do not comment it out. The install process complains if
the DEBUG value is not found.
4.
Upload the "passencrypt.php" to the web-server and access it via browser to encrypt password.5.
Use the encrypted password for the 'ADMIN_PASSWD' field and make sure that 'ENCRYPTED_PASSWD = true' is
uncommented.
6.
Use the ADODB library for data access and set 'DATABASE_TYPE = ADODB'.7.
Use 'DATABASE_PREFIX = phpwiki_' with the EditedMysqlScript imported to the database to create the required
tables.
8.
# ================= BEGI N =================
# Tabl e str ucture for tabl e `phpwi ki _l i nk`
#
DROP TABLE I F EXI STS `phpwi ki _l i nk`;
CREATE TABLE `phpwi ki _l i nk` (
`l i nkfr om i nt( 11) NOT NULL defaul t ' 0' ,`l i nkto` i nt ( 11) NOT NULL defaul t ' 0' ,
KEY `l i nkfr om ( `l i nkfr om) ,
KEY ` l i nkto` ( ` l i nkto`)
) TYPE=MyI SAM;
#
# Tabl e st r uct ure f or t abl e `phpwi ki _member `
#
DROP TABLE I F EXI STS `phpwi ki _member`;
CREATE TABLE `phpwi ki _member` (
`user i d` char( 48) bi nar y NOT NULL def aul t ,
`groupname` char ( 48) bi nar y NOT NULL def aul t ' users' ,
KEY `useri d` (`useri d`) ,
KEY `gr oupname` ( `gr oupname`)
) TYPE=MyI SAM;
#
# Tabl e str uct ure for t abl e `phpwi ki _nonempty`
#
DROP TABLE I F EXI STS `phpwi ki _nonempty`;
CREATE TABLE `phpwi ki _nonempty` (
`i d` i nt ( 11) NOT NULL defaul t ' 0' ,
PRI MARY KEY ( `i d`)
) TYPE=MyI SAM;
#
# Tabl e str ucture f or t abl e `phpwi ki _page`
#
DROP TABLE I F EXI STS `phpwi ki _page ;
CREATE TABLE `phpwi ki _page` (`i d` i nt( 11) NOT NULL aut o_i ncrement ,
`pagename` varchar( 100) bi nar y NOT NULL defaul t ,
`hi t s` i nt ( 11) NOT NULL defaul t ' 0' ,
`pagedata` medi umt ext NOT NULL,
PRI MARY KEY ( `i d`) ,
UNI QUE KEY `pagename` ( `pagename`)
) TYPE=MyI SAM AUTO_I NCREMENT=320 ;
#
# Tabl e st ructure f or tabl e `phpwi ki _pref`
#
DROP TABLE I F EXI STS `phpwi ki _pr ef `;
CREATE TABLE `phpwi ki _pr ef ` (
`user i d` var char( 48) bi nar y NOT NULL def aul t ,
`prefs` text,
PRI MARY KEY ( `useri d`) ,
UNI QUE KEY `useri d` ( `user i d`)
) TYPE=MyI SAM;
#
# Tabl e st ructure f or tabl e `phpwi ki _r ati ng`
See Also
WTP 0.6.2Generate a dynamic playlist
of mp3 files in a folder withPHPListing image files in foldersand subfolders with PHPCompiling support for XSLT
in PHPHow to fix _Can't open file:
'sessions.MYI'_ in DrupalLoad your PHP pages fasterwith GZip compressionHosting multiple domainspointed to the same web-space
Navigation
User login
Username: *
Password: *
Log in
Request new password
Recent blog posts
Adding utf-8 Byte OrderMark to file
MySQL Database
Restore
Access VirtualBoxGuest via Host
Ensim Zone File
Template
Changing IP address of
Ensim server
How to install Icinga(Nagios Fork) inUbuntu 12.10 server
manually updating javain ubuntu
Resetting WordPress
admin password
Install yum from centosvault
Disabling IDLE in
courier-imap
more
Who's online
There are currently 0 usersand
22 guestsonline.
Story links
Page 1 of 3Get PHPwiki up and running with mysql | LinuxWebLog.com
10/4/2013http://www.linuxweblog.com/phpwiki
-
8/13/2019 Php Wiki
2/3
#
DROP TABLE I F EXI STS `phpwi ki _r ati ng ;
CREATE TABLE `phpwi ki _r ati ng (
`di mensi on` i nt ( 4) NOT NULL defaul t ' 0' ,
`r aterpage` i nt ( 11) NOT NULL defaul t ' 0' ,
`r ateepage` i nt ( 11) NOT NULL defaul t ' 0' ,
`rat i ngval ue` fl oat NOT NULL defaul t ' 0' ,
`rat eeversi on i nt ( 11) NOT NULL defaul t ' 0' ,
`t st amp` t i mest amp(14) NOT NULL,
PRI MARY KEY ( `di mensi on`, `r ater page , `r ateepage`)
) TYPE=MyI SAM;
#
# Tabl e str ucture for t abl e `phpwi ki _r ecent `
#
DROP TABLE I F EXI STS `phpwi ki _r ecent` ;
CREATE TABLE `phpwi ki _r ecent ` (
`i d` i nt ( 11) NOT NULL defaul t ' 0' ,
`l atestversi on i nt ( 11) def aul t NULL,
`l atestmaj or` i nt ( 11) defaul t NULL,
`l atestmi nor` i nt ( 11) defaul t NULL,
PRI MARY KEY ( `i d`)
) TYPE=MyI SAM;
#
# Tabl e st ructure for t abl e `phpwi ki _sessi on
#
DROP TABLE I F EXI STS `phpwi ki _sess i on`;
CREATE TABLE `phpwi ki _s essi on` (
`sess_i d` var char( 32) NOT NULL def aul t ,
`sess_ data` bl ob NOT NULL,
`sess_dat e` i nt ( 10) unsi gned NOT NULL defaul t ' 0' ,
`sess_i p` var char( 15) NOT NULL def aul t ,
PRI MARY KEY ( `sess_i d`),
KEY `sess_dat e` ( `sess_dat e`)
) TYPE=MyI SAM;
#
# Tabl e str ucture for t abl e `phpwi ki _user`
#
DROP TABLE I F EXI STS `phpwi ki _user `;
CREATE TABLE `phpwi ki _user ` (`user i d` char( 48) bi nar y NOT NULL def aul t ,
`passwd` char( 48) bi nary def aul t ' ' ,
PRI MARY KEY ( `useri d`) ,
UNI QUE KEY `useri d` ( `user i d`)
) TYPE=MyI SAM;
#
# Tabl e st ructure for t abl e `phpwi ki _versi on
#
DROP TABLE I F EXI STS `phpwi ki _vers i on`;
CREATE TABLE `phpwi ki _ver si on` (
`i d` i nt ( 11) NOT NULL defaul t ' 0' ,
`versi on i nt (11) NOT NULL defaul t ' 0' ,
`mt i me` i nt( 11) NOT NULL def aul t ' 0' ,
`mi nor_edi t` t i nyi nt( 4) defaul t ' 0' ,`cont ent` medi umt ext NOT NULL,
`ver si ondat a` medi umt ext NOT NULL,
PRI MARY KEY ( `i d`, `versi on ) ,
KEY ` mt i me` ( `mt i me`)
) TYPE=MyI SAM;
#
# ================= END =================
#
Specify the Data Source Name, 'mysql://user:password@host/databasename'9.
For true user authentication use10.
ALLOW_ANON_USER = true
ALLOW_ANON_EDIT = false
ALLOW_BOGO_LOGIN = false
ALLOW_USER_PASSWORDS = true
Other configs are more general and changed accordingly depending on preferences.11.
Upload all your files to the web-server and pointing your browser for the first time to the index.php will set up
your wiki automatically.
12.
Bookmark/Search this post with
Page 2 of 3Get PHPwiki up and running with mysql | LinuxWebLog.com
10/4/2013http://www.linuxweblog.com/phpwiki
-
8/13/2019 Php Wiki
3/3
sandip's blog
Post new comment
Subject:
Comment: *
Lines and paragraphs break automatically.You may post code using ... (generic) or (highlighted PHP) tags.
More information about formatting options
CAPTCHAThis question is for testing whether you are a human visitor and to prevent automated spam submissions.
What code is in the image?: *
Enter the characters shown in the image.
Preview
Home| Forum| Recent Posts| News| Archives| Contact
This site houses a collection of Tips, Tricks, Resources and Guides of Individuals, put together and edited for personal reference into a daily web journal...Content may not be reproduced without permission from the Individuals.Copyright post 2003 L I N U X w e B l o g . C O M
Page 3 of 3Get PHPwiki up and running with mysql | LinuxWebLog.com
10/4/2013http://www linuxweblog com/phpwiki