Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: k_graham on May 15, 2013, 01:28:32 AM
-
Is there a Wiki Contrib for SME8 ?
Thanks,
Ken
-
Did you look in the contribs area?
http://wiki.contribs.org/Category:Contrib
http://wiki.contribs.org/Mediawiki
Tony
-
Did you look in the contribs area?
http://wiki.contribs.org/Category:Contrib
http://wiki.contribs.org/Mediawiki
Tony
Yes but using it as stated, the contrib was not found.
I did find some info on another contrib suggesting after yum to include --enablerepo=sme7contribs
Doing that allowed the contrib to download it seemed complete. But after reboot when entering
http://myservername/wiki I received a 500 error.
Thanks,
Ken
-
I am not at home at the moment but I have this installed on SME8 so will install on a test system and post back my results later this evening/tomorrow morning.
Tony
-
http://myservername/wiki I received a 500 error.
error 500 means an internal error, then take a look into httpd logs for errors
-
I have just checked my home server and I have it installed. I will do another install in the morning on my test system and write up a simple how to in the morning. It does not look like I actually used the contrib.
-
I have just checked my home server and I have it installed. I will do another install in the morning on my test system and write up a simple how to in the morning. It does not look like I actually used the contrib.
Thank you,
We have a collection of files pdf's , doc files and spreadsheets to run our small business with things from accounting to our MSDS Safety Data sheets . I was thinking if I could create a Intranet with a Table of Contents of current items, we might be able to improve documentation as a whole using and converting to a Wiki.
Ken
-
OK Sorry it has taken so long but this has been a mission.
I finally have mediawiki working.
Please follow the following instructions and you should end up with a working wiki.
If you still have smeserver-mediawiki installed please remove it with yum remove smeserver-mediawiki and then run the unistall.sh script.
Download and install
http://wiki.contribs.org/SME_Site_Maker
Run SME_Site_Maker
[root@lab-server ~]# smesm
----------------------------------------------------------------
| SME Site Maker Script |
| |
| This script is designed to help you when create a new web site |
| under /opt directory. If you want to create a site under an |
| ibay, do not use this script. The main purpose is to automate |
| the time consuming (and sometimes confusing) process of |
| installing an application to the /opt directory. |
| |
| If you do not use SMESiteMaker you must create the dir, conf |
| files, and DB configs manually from the command line. |
| |
| With SMESiteMaker, you only have to answer the questions in |
| the wizard. |
| |
| WARNING: Never use white spaces in names or directories! |
| |
| If you feel confortable with the above then press enter, if |
| not press Ctrl+C to abort the configuration script. |
| |
----------------------------------------------------------------
Press enter to continue
------------------------------------------
Please enter the directory name where you
want to add your site files.
The directory is created under /opt dir.
------------------------------------------
Enter dir name: mediawiki
------------------------------------------------
Please enter an alias name to access your site.
Example: http://your-domain/alias
If you do not provide a name, then alias will
be: (mediawiki).
------------------------------------------------
[Alias Name] - (mediawiki):
------------------------------------------------
Do you want to use and force SSL at your site?
This is used to force secure http (https).
------------------------------------------------
[Y/N] - (N):
------------------------------------------------
Do you want to allow directory index?
With this directive, you can see the contents of
your site if no index file is available.
------------------------------------------------
[Y/N] - (N):
------------------------------------------------
Do you want to set AllowOverride to All?
With this directive, apache can process .htaccess
files in your site dir.
------------------------------------------------
[Y/N] - (Y):
------------------------------------------------
Do you want to execute PHP scripts?
------------------------------------------------
[Y/N] - (Y):
------------------------------------------------
Do you want to set allow_url_fopen directive?
With this directive, your php scripts can access
and execute remote files. Turn it only if you
know what you are doing.
------------------------------------------------
[Y/N] - (N):
------------------------------------------------
If you have eaccelerator, do you want to enabled
for this directory?
------------------------------------------------
[Y/N] - (Y):
------------------------------------------------
Do you want to allow register_globals directive?
Turn it only if you know what you are doing.
------------------------------------------------
[Y/N] - (N):
------------------------------------------------
Do you want to modify open_basedir restriction?
Default give php access only to local siteroot: (/opt/mediawiki)
Use with care, this is a security risk
------------------------------------------------
[Y/N] - (N):
------------------------------------------------
Do you want to execute CGI scripts?
------------------------------------------------
[Y/N] - (Y): CREATE YOUR DB HERE
------------------------------------------------
Do you want to configure a MySQL Database?
------------------------------------------------
[Y/N] - (N):
------------------------------------------------
Please enter a name for this configuration.
------------------------------------------------
Configuration name: mediawiki
------------------------------------------------
Please wait....
------------------------------------------------
Restarting httpd-e-smith [ OK ]
=====================================================
Congratulations! You have configured the hosting
environment for your site.
Access your site at http://your_domain/mediawiki
and read your site configuration.
Then you must delete index.html file for security
and copy you site files under /opt/mediawiki.
Press enter to finish
=====================================================
[root@lab-server ~]#
Download New version of Mediawiki from.
http://www.mediawiki.org/wiki/Download
Unzip the files downloaded and copy them into the /opt/mediawiki folder
Go to http://www.mediawiki.org/wiki/Extension:PwAuthPlugin#Download_the_Extension
And create a PwAuthPlugin.php file in the extensions directory
I have to change line 23:
require_once('AuthPlugin.php');
to:
require_once('./includes/AuthPlugin.php');
Go to
http://yourdomain.com/mediawiki/
Follow the instructions to complete the install
Download the LocalSettings.php and place it in /opt/mediawiki
Add
require_once("./extensions/PwAuthPlugin.php");
$wgAuth = new PwAuthPlugin();
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgShowIPinHeader = false; # For non-logged in users
to the bottom of the LocalSettings.php as explained at
http://www.mediawiki.org/wiki/Extension:PwAuthPlugin#Download_the_Extension
Go to http://yourdomain.com/mediawiki and you should be able to log in using your standard SME user account information.
Please report back with any issues or if this works as we will update the wiki with these instructions.
Thanks
Tony
-
ajkeane
It's probably better & easier to manage if you tell people to install web apps to an ibay
Could you also write the article so that it either refers to an ibay install only, or both ibay or /opt
Thanks
-
Janet
With all due respect. What in your post is constructive and offers any assistance with the problem that the poster has?
I am well aware of the different ways to install an application on SME having been doing so for well over 10 years.
As stated above once we have verified that the information I have supplied works I will update the wiki with this information.
I also think that we need to test that image and file uploads work as required. I have as yet only covered off the install and authentication of users against SME.
Regards
Tony
-
ajkeane
What in your post is constructive and offers any assistance with the problem that the poster has?
The advice to use ibays.
There was a push years ago to use /opt but that has caused many to have problems, so I was just asking for the benefit of all, that your instructions referred to ibays also.
Is there a problem I don't know about with making polite requests like that ?
It assists OP with easier management.
-
OK Sorry it has taken so long but this has been a mission.
I finally have mediawiki working.
Please follow the following instructions and you should end up with a working wiki.
If you still have smeserver-mediawiki installed please remove it with yum remove smeserver-mediawiki and then run the unistall.sh script.
Download and install
http://wiki.contribs.org/SME_Site_Maker
Hello Tony;
Thanks for the lesson - There is a issue with downloading the above link however as it does not install on 8. I assume it was because it was in the 7 repositories so used this instead which downloaded it from the 7 repositories.
yum --enablerepo=sme7contribs install smeserver-sitemaker
Regards the ibay vs /opt debate, I am happy to take it whichever way works.
As I want to get it working quickly I expect to put what I have in PDF's like msds sheets, video, and Manuals, into a dedicated ibay anyway and simply link to those in the Wiki, things like document files of instructions and spreadsheets I will see if they can be copied and pasted to Wiki style without a lot of formatting changes, if not they will be linked as pdf's.
I will let you know my progress on installation of Wiki.
Thanks,
Ken
-
Ken
If you follow the instructions in the above post you will have a working wiki. As per the instructions use yum to remove the SME contrib first.
That contrib won't work on SME 8 and the upgrade caused all sorts of issues so in order to get you a working wiki that authenticates against you sme users I have shown you how to complete a new install.
Tony
-
This was done using the reference to sme 7 repositories, I will try again but I did use yum once to try removing before starting.
Following was after I had tried to do it with sme 7 repositories
Okay I printed out your instructions and almost made the mistake of associating the Y/N to the item below instead of above - so went back and marked a big bracket for each instruction starting at top of list.
Also I did not delete the index.html immediately after installing the Sitemaker script but it is required or prevents the MediaWiki welcome screen from showing.
The Following shows a few warnings, was your thought to run a earlier version of MediaWiki?
MediaWiki 1.20.5 installation
Language
Existing wiki
Welcome to MediaWiki!
Connect to database
Upgrade existing installation
Database settings
Name
Options
Install
Complete!
Restart installation
Welcome to MediaWiki!
Environmental checks
Basic checks are performed to see if this environment is suitable for MediaWiki installation. You should provide the results of these checks if you need help during installation.
PHP 5.3.3 is installed.
Warning: you have SQLite 3.3.6, which is lower than minimum required version 3.3.7. SQLite will be unavailable.
Warning: SQLite is compiled without the FTS3 module, search features will be unavailable on this backend.
Warning: Could not find APC, XCache or WinCache.
Object caching is not enabled.
GNU diff3 not found.
Found GD graphics library built-in.
Image thumbnailing will be enabled if you enable uploads.
Using server name "https://10.0.0.1".
Using server URL "https://10.0.0.1/cpwiki".
Warning: The intl PECL extension is not available to handle Unicode normalization, falling back to slow pure-PHP implementation.
If you run a high-traffic site, you should read a little on Unicode normalization.
The environment has been checked. You can install MediaWiki.
___________________________________________-
When configuring MediaWiki
Installation refused when configuring database as root - Must use admin
Warning
Warning: You have selected MyISAM as storage engine for MySQL, which is not recommended for use with MediaWiki, because:
it barely supports concurrency due to table locking
it is more prone to corruption than other engines
the MediaWiki codebase does not always handle MyISAM as it should
If your MySQL installation supports InnoDB, it is highly recommended that you choose that instead. If your MySQL installation does not support InnoDB, maybe it's time for an upgrade.
_______________
Another issue - could not create database - I therefore installed phpmyadmin in order to create the database
I think I got a bit farther but see I was unable to create the table user
errors follow
Install
Including extensions... done
Setting up database... done
Creating tables... A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
CREATE TABLE `user` ( user_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, user_name varchar(255) binary NOT NULL default '', user_real_name varchar(255) binary NOT NULL default '', user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_touched binary(14) NOT NULL default '', user_token binary(32) NOT NULL default '', user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int ) ENGINE=MyISAM, DEFAULT CHARSET=binary
from within function "DatabaseBase::sourceFile( /opt/cpwiki/maintenance/tables.sql )". Database returned error "1142: CREATE command denied to user 'admin'@'localhost' for table 'user' (localhost)".
Backtrace:
#0 /opt/cpwiki/includes/db/Database.php(916): DatabaseBase->reportQueryError('CREATE command ...', 1142, 'CREATE TABLE `u...', 'DatabaseBase::s...', false)
#1 /opt/cpwiki/includes/db/Database.php(3236): DatabaseBase->query('CREATE TABLE `u...', 'DatabaseBase::s...')
#2 /opt/cpwiki/includes/db/Database.php(3148): DatabaseBase->sourceStream(Resource id #84, false, false, 'DatabaseBase::s...')
#3 /opt/cpwiki/includes/installer/DatabaseInstaller.php(185): DatabaseBase->sourceFile('/opt/cpwiki/mai...')
#4 [internal function]: DatabaseInstaller->createTables(Object(MysqlInstaller))
#5 /opt/cpwiki/includes/installer/Installer.php(1454): call_user_func(Array, Object(MysqlInstaller))
#6 /opt/cpwiki/includes/installer/WebInstallerPage.php(1161): Installer->performInstallation(Array, Array)
#7 /opt/cpwiki/includes/installer/WebInstaller.php(269): WebInstaller_Install->execute()
#8 /opt/cpwiki/mw-config/index.php(50): WebInstaller->execute(Array)
#9 /opt/cpwiki/mw-config/index.php(18): wfInstallerMain()
#10 {main}
Sorry I was not successful - Thanks, ajkeane
Ken
Thanks,
Ken
-
Ken
Lets try and deal with creating a db to start with.
I take it that you have phpmyadmin installed and that it is working? can you advise what version you installed?
To create the db can you log into your server via ssh (I use Putty)
Issue the following commands changing the values to suit you needs.
# mysqladmin create (database name)
# mysql mysql
mysql> grant all on (database name).* to (user)@localhost identified by '(password)';
mysql> flush privileges;
mysql> \q
Once we have the DB created we will work on the other stuff.
I did not worry about the errors you got though If you are expecting to have multiple users editing document we could look at enabling InnoDB.
Tony
-
Ken
Lets try and deal with creating a db to start with.
I take it that you have phpmyadmin installed and that it is working? can you advise what version you installed?
To create the db can you log into your server via ssh (I use Putty)
Issue the following commands changing the values to suit you needs.
# mysqladmin create (database name)
# mysql mysql
mysql> grant all on (database name).* to (user)@localhost identified by '(password)';
mysql> flush privileges;
mysql> \q
Once we have the DB created we will work on the other stuff.
I did not worry about the errors you got though If you are expecting to have multiple users editing document we could look at enabling InnoDB.
Tony
Tony, I tried again but 1st let me mention I installed phpMyAdmin 3.5.4 as per the contribs, there was a warning about making sure you had the latest 8 version and I am up to date so went ahead.
I checked again and the 7 version is removed.
Then I followed your instructions but did instead say yes and installed the MySQL database during the SME_Site_Maker install to a different named install.
It states it is working but is subject to the Warnings mentioned earlier including
Warning: SQLite is compiled without the FTS3 module, search features will be unavailable on this backend.
It seems I would suggest a change to include MySQL install during the SME_Site_Maker install
I may also try to correct the 1st installation as per your database suggestion so I could have a test install and the one to actually try to save documentation in.
Thanks
Ken Graham
-
That version of phpmyadmin is the same version that I have installed.
The SQLite error is nothing as you are not using it.
So you now have a working Wiki?
Yes you have two options when it comes to creating the DB create it yourself or do it when running smesm.
You can install as many copies of the wiki as you like just create a new directory and DB using smesm and away you go.
Tony