LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2017, 03:14 AM   #1
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
Apache ,SSl & https


im trying to play with moodle; normally with something built on PHP I just use XAMPP but thought i'd go with LAMPP at /var/www/htdocs this time.

Basically getting a web server up & running is a piece of cake with this still relevant guide:

http://slackware.ponce.cc/blog/2011/...ew-easy-steps/

sorted out mammal to fish requirement for MySQl tables but moodle will not install without web server using https. I can re-direct via .htaccess its just the keys & where they go. Most tutorials start with go to /etc/apche2 folder. There isn't one httpd.conf is at /etc/httpd/httpd.conf


Ponce's guide to LAMPP is nice none nerd simple,clear & concise guide.Anyone got something similar to being able to use https:/localhost/moodle with the web server ? Where the keys go what to edit
 
Old 10-12-2017, 03:34 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
there's nothing concise with managing ssl certificate authorities and certificates, you should read a few docs: a good place to start, IMHO, is the slackwiki

https://www.slackwiki.com/SSL
 
Old 10-12-2017, 11:15 AM   #3
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Would this be a simpler way to set up moodle?

https://wiki.archlinux.org/index.php/moodle
 
Old 10-12-2017, 01:18 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
You might want to try letsencrypt client project.

AFAIK, moodle can work with HTTP protocol, although using HTTPS is more recommended.
 
Old 10-13-2017, 02:12 AM   #5
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
Hi cheers
for replies i'm trying all possibilities the slackwiki didn't quite work but will retry - its going to take some reading up, to see why not

I have found getting a web on live host to get https going is no big since you've got hosting support , cpanel etc Guess that's why never delved past the surface before.

Could of course go to moodle & ask for a hack to use just use http since its only on local to evalaate ; no response on twitter so far.

The arch tgz didn't offer any advantages over the zip package; sine issue is MySQl Antelope to Barracude & getting web server to use https, SSL

I'm prepared to try letsencrypt even with an extensive deps list - but have you got somewhere on a blog a low learning curve ,not on how to use build scripts nor how to install sbopkg packages but an over view of its & outs of using it. IS it going to know that the web server I want it to work with is Apache at /var/www/htdocs & stick public & private keys in the right place etc
 
Old 10-14-2017, 03:18 AM   #6
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
Also just noticed another error :

php_extension xmlrpc
should be installed and enabled for best results

The xmlrpc extension is needed for hub communication, and useful for web services and Moodle networking
 
Old 10-14-2017, 09:23 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
That's included in Slackware Current, but not yet in stable so you need to rebuilt PHP for that module to be installed
 
Old 10-15-2017, 09:03 AM   #8
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
Had a go at re-build


I got build script from : http://slackware.uk/salix/i486/slack.../source/n/php/

I put line
–with-xmlrpc=shared \

in section of php.SlackBuild :

CFLAGS=”$SLKCFLAGS” \
./configure \
–prefix=/usr \

......

ran & it came up with line 79 alpine.SlackBuild missing

Then downloaded alpine from http://slackware.uk/salix/i486/slack...urce/n/alpine/ at same level as php slackbuild dir

it built but moodle still moaning :
php_extension xmlrpc
should be installed and enabled for best results

The xmlrpc extension is needed for hub communication, and useful for web services and Moodle networking





bash-4.3$ php -v
PHP 5.6.23 (cli) (built: Oct 15 2017 13:09:38)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
 
Old 10-18-2017, 05:38 AM   #9
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
had another go at rebuild using suggestion by Alien :

http://bear.alienbase.nl/mirrors/sla.../source/n/php/

got php PHP 5.6.31 (cli) (built: Oct 17 2017 14:30:39) ok

looked phpinfo modules

can see xmlrpc Dan Libby

bit of research

edited config.php

from
$CFG->dbtype = 'mysqli';

to

$CFG->dbtype='mariadb';

its done the trick
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache : require ssl-certificate to access https-server jonaskellens Linux - Newbie 13 12-22-2012 03:57 PM
[SOLVED] Apache: http and https (ssl) no access eRJe Linux - Server 7 09-30-2010 04:39 PM
Sharing https 443 port for apache ssl and ssh server nx5000 Linux - Software 8 09-02-2009 06:19 AM
Apache 2 / SSL and virtual host under GNU/Linux Debian Etch - http and https scls19fr Linux - Server 0 10-09-2008 10:11 AM
Totaly new to SSL via apache (i want https to work) bpk Linux - Newbie 2 06-14-2004 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration