-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
199 lines (147 loc) · 5.8 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
REQUIREMENTS
PhpWiki 1.6.2 requires a web server with at least PHP version 5.3.3.
PhpWiki 1.6.2 should work for all PHP releases from 5.3.3 to 8.2.0.
Visit <http://www.php.net> and <http://php.net/downloads.php>
for downloads and information.
PHP must also be compiled with support for the type of database you
want to use, i.e. --with-gdbm, --with-db2, --with-db3, --with-msql,
--with-pgsql. Consult the PHP installation manual for specific
installation and configure options.
<https://www.php.net/manual/en/installation.php>
Use yum under Red Hat RHEL 7, CentOS 7
Use dnf under Red Hat RHEL 8, CentOS 8, Fedora 18 and later
Use apt under Ubuntu and other Debian-based Linux
If you have DATABASE_TYPE = dba, you might need to do:
yum install php-dba
or
dnf install php-dba
or
apt install php-dba
To be able to export the wiki in ZIP format (in PhpWikiAdministration),
ZipArchive class must be available. You might need to do:
yum install php-pecl-zip
or
dnf install php-zip
or
apt install php-zip
RssFeed plugin requires the PHP xml_parser_create() function. You might
need to do:
yum install php-xml
or
dnf install php-xml
or
apt install php-xml
TeX2png and text2png plugins need the PHP imagetypes() function. You might
need to do:
yum install php-gd
or
dnf install php-gd
or
apt install php-gd
LdapSearch plugin requires the PHP ldap_connect() function. You might
need to do:
yum install php-ldap
or
dnf install php-ldap
or
apt install php-ldap
TeX2png plugin requires LaTeX to be installed. You might need to do:
yum install texlive
yum install latex2html
or
dnf install texlive
dnf install latex2html
or
apt install texlive
apt install latex2html
GraphViz plugin requires GraphViz to be installed. You might need to do:
yum install graphviz
or
dnf install graphviz
or
apt install graphviz
GooglePlugin plugin requires PHP SoapClient class. You might need to do:
yum install php-soap
or
dnf install php-soap
or
apt install php-soap
FileInfo plugin requires posix_getpwuid() and posix_getgrgid() functions
that are not available by default on CentOS 7. You might need to do:
yum install php-process
QUICK START INSTRUCTIONS
Copy 'config/config-dist.ini' to 'config/config.ini' and edit the
settings in 'config/config.ini' to your liking.
By default PhpWiki is configured to use a dba database. If there
is no dba on your system, you will see an error like this the first
time you try to use PhpWiki:
"Fatal error: Call to undefined function: dba_open() in
phpwiki/lib/DbaDatabase.php on line 32"
To correct this you will have to check the available dba handlers,
install the dba extension or preferably an sql-compatible database
such as MySQL or PostgreSQL and make the necessary configuration
changes to 'lib/config/config.ini'.
INSTRUCTIONS
Below are the instructions for the "out of the box" installation,
which uses DB files. If you are using a relational database like
MySQL, see the INSTALL file for your database in the 'doc/' directory
under the root of your PhpWiki installation.
0. INSTALLATION
Unzip this file into the directory where you want it to live. That's it.
bash$ unzip phpwiki-1.6.2.zip
In the config subdirectory copy 'config-dist.ini' to 'config.ini' and
edit the settings in 'config.ini' to your liking.
1. CONFIGURATION
The first time you run this Wiki it will load a set of basic pages
from the 'pgsrc/' directory. These should be enough to get your Wiki
started.
PhpWiki will create some DBA files in '/tmp'. They contain the pages
of the live site, archived pages, and some additional information.
If you don't want the DBA files to live in '/tmp' you must make sure
the web server can read/write to your chosen location. It's probably
a bad idea to leave it in '/tmp', so change it in 'config/config.ini'.
WARNING: On many systems, files in '/tmp' are subject to periodic
removal. We very strongly advise you to move the files to
another directory.
For example, create a subdirectory called 'pages' in the 'phpwiki'
directory which was made when you untarred PhpWiki. Move the DBA files
there. The files should already have proper rights and owners, as they
were created by the web server. If not, change the permissions
accordingly so your web server can read / write the DBA files. Note
that you must be root to move files created by the web server.
Next you must ensure that the web server can access the 'pages'
directory and can create new files in it. For example, if your web
server runs as user 'nobody', give the web server access like this:
bash$ chown nobody:youraccount pages
bash$ chmod 755 pages
This is necessary so that the server can also create / set the
database lock file (PHP has a built in locking mechanism for DBA file
access). Or if you're really lazy and don't worry much about
security:
bash$ chmod 777 pages
Note: This is insecure. The proper way is to let the directory be
owned by the web servers GUID and give it read and write access.
2. ALLOWING EMBEDDED HTML
PhpWiki ships with this feature disabled by default. According to
CERT, malicious users can embed HTML in your pages that allow pure
evil to happen:
http://www.cert.org/advisories/CA-2000-02.html
Set the ENABLE_RAW_HTML to true in 'config/config.ini' to allow
embedded HTML, but you should NEVER do this if your Wiki is publicly
accessible!
3. ETC
Installing PHP is beyond the scope of this document :-) You should
visit <https://www.php.net/> if you don't have PHP. Note that you
should have the web server configured to allow index.php as the root
document of a directory.
4. PATCHES
Post patches to:
https://sourceforge.net/p/phpwiki/patches/
5. BUGS
Post bugs to:
https://sourceforge.net/p/phpwiki/bugs/
6. SUPPORT
For support from the PhpWiki team and user community post to:
You can join this list at:
http://lists.sourceforge.net/lists/listinfo/phpwiki-talk