[Koha-devel] Fwd: Koha Development Setup: Can't access both admin and OPAC sites

Tomas Cohen Arazi tomascohen at gmail.com
Tue Sep 26 20:52:59 CEST 2017


Hi, Emmanuel.

I suggest you try KohaDevBox: https://github.com/digibib/kohadevbox

My recommended steps:
1- Get everything the source code
$ mkdir -p ~/git
$ cd ~/git
$ git clone git://git.koha-community.org/koha.git koha
$ git clone https://github.com/digibib/kohadevbox.git kohadevbox
$ echo "export SYNC_REPO=~/git/koha" >> ~/.bashrc
$ cd kohadevbox
$ cp vars/user.yml.sample vars/user.yml
[Use your favourite editor to set git_email, git_full_name, bz_user and
bz_password]
2- Install VirtualBox, Ansible and Vagrant
3- Open a new terminal (only to make sure ENV contains SYNC_REPO)
4- Run:
$ set | grep SYNC_REPO
[expected result is you see SYNC_REPO=~/git/koha]
$ cd ~/git/kohadevbox
$ SKIP_WEBINSTALLER=1 CREATE_ADMIN_USER=1 vagrant up

Once it finishes, you can access Koha using this addresses:
OPAC:
http://localhost:8080
Intranet:
http://localhost:8081

The default user/pass is koha/koha respectively. Can be changed on
vars/user.yml

To work on the source code, use your favourite IDE/Editor to access
~/git/koha.

To access the virtual machine running the dev env, you need to:

$ cd ~/git/kohadevbox
$ vagrant ssh

Everytime you change the source code (specially .pm and .pl files) you
should run (whithin the dev box):

k$ restart_all

Enjoy!


El vie., 22 sept. 2017 a las 21:30, Emmanuel Chukwu (<
emmanuel.chukwu at gmail.com>) escribió:

>
> Hello everyone,
> Please  I am having a challenge with the development setup of Koha. I am
> new to Koha but had successfully installed the non-development version of
> Koha and everything worked out fine. Now I am having some challenges with
> the development setup using the instructions at
> https://wiki.koha-community.org/wiki/Debian_Jessie_development_setup to
> setup Koha for development on Debian Jessie.
>
> Here are some of my configurations:
>
> *Listening Ports*
>
> Listen 127.0.1.1:80
>
> Listen 127.0.1.1:8080    #my admin site is on this port
>
> Listen 127.0.1.1:8081   #my OPAC site is here
>
>
> Granting Access to the Installation Directory
>
> I added the following configuration inside both the *OPAC * site (
> 127.0.1.1:8081) and the *Intranet* site (127.0.1.1:8081) *VirtualHost* elements
> in the */var/koha/koha-dev/etc/koha-httpd.conf* file:
>
> <Directory "/var/koha">
>     Require all granted
> </Directory>
>
> Say the IP address of the koha development server is 192.168.1.70
> After following through the instructions, I tried accessing the admin site
> through another machine on the network, by typing 192.168.1.70:8080 on
> the browser but the site could not be reached. The same issue with the OPAC
> site on 192.168.1.70:8081.
> But I could access 192.168.1.70:80 which returns the Apache2 Debian
> Default Page. I could also ping the host 192.168.1.70
>
> Please I need help on what I possibly didn't do right.
>
> Thanks.
>
> On Mon, Sep 18, 2017 at 11:24 PM, <
> koha-devel-owner at lists.koha-community.org> wrote:
>
>> The results of your email command are provided below. Attached is your
>> original message.
>>
>> - Results:
>>     Ignoring non-text/plain MIME parts
>>
>> - Unprocessed:
>>     My name is Emmanuel Chukwu. I am from Nigeria and I would like to
>>     contribute to the development of Koha and also utilize is improving
>> the
>>     automation of libraries in Nigeria.
>>     It is great to be among you wonderful people.
>>     On Mon, Sep 18, 2017 at 11:16 PM, <
>>     koha-devel-request at lists.koha-community.org> wrote:
>>     > Welcome to the Koha-devel at lists.koha-community.org mailing list!
>> Nau
>>     > Mai, Haere Mai ki te whanau Koha. Hello and Welcome to the Koha
>>     > Community.
>>     >
>>     > This is just a brief email to help you make the most of the
>> community,
>>     > and the community make the most of you.
>>     >
>>     > The best thing you can do to start is to introduce yourself. A brief
>>     > email to this mailing list saying who you are and what you want to
>> do
>>     > is a great way to do that.
>>     >
>>     > This is the general discussion list for librarians and others
>>     > interested in the Koha FOSS (free & open-source software) LMS/ILS
>>     > (library management system/integrated library system) and related
>>     > activities. It is a companion to other email lists (see
>>     > <http://lists.koha-community.org/>) that discuss future
>> development or
>>
>> - Ignored:
>>     > aspects of the application.
>>     >
>>     > Before posting to the list, it's always good to read/search through
>>     > the mailing list archive <http://dir.gmane.org/gmane.comp.misc.koha
>> >
>>     > and the manual and FAQs <http://koha-community.org/documentation>
>> for
>>     > answers to your questions.
>>     >
>>     > Please feel free to use this list for announcements, questions and
>>     > discussions on relevant topics, and please try to keep it positive
>> and
>>     > polite. Pro-free-software LMS/ILS news is welcome. Debating
>>     > definitions of “free” is not.
>>     >
>>     > Please send plain text emails and if you opt for the digest, change
>>     > the subject line when you reply (as described at the top of the
>>     > digest). In general, try to keep subject lines accurate and try to
>>     > write the sort of message that you'd be happy if it appeared on the
>>     > letters page of a national newspaper or magazine. Other useful
>>     > netiquette guidelines can be found in Internet RFC 1855
>>     > <http://tools.ietf.org/rfc/rfc1855.txt>.
>>     >
>>     > Emails from non-subscribers (and other emails held for review) will
>>     > usually be sent to this list in a batch once a day.
>>     >
>>     > Websites and bloggers may find the gmane archive
>>     > <http://dir.gmane.org/gmane.comp.misc.koha> more useful for
>> linking,
>>     > because its comment system is open to all.
>>     >
>>     > Some other useful sites to keep an eye on are included below:
>>     >
>>     > - Koha project home page <http://www.koha-community.org> - Here you
>>     > will find links to other Koha websites and announcements of interest
>>     > to the Koha community.
>>     >
>>     > - Koha Bugs <http://bugs.koha-community.org> - Here you will find
>>     > enhancement projects as well as bugs
>>     >
>>     > - Koha Developer Wiki <http://wiki.koha-community.org/doku.php> -
>>     > information about the development process and RFCs (Request for
>>     > Comments)
>>     >
>>     > - Koha Git Repository <http://git.koha-community.org/> - patches
>> and
>>     > enhancements to Koha from the community
>>     >
>>     > - Koha Documentation <http://www.koha-community.org/documentation>
>>     >
>>     > We look forward to meeting you and working with you.
>>     >
>>     > To post to this list, send your email to:
>>     >
>>     >   koha-devel at lists.koha-community.org
>>     >
>>     > General information about the mailing list is at:
>>     >
>>     >
>> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>>     >
>>     > If you ever want to unsubscribe or change your options (eg, switch
>> to
>>     > or from digest mode, change your password, etc.), visit your
>>     > subscription page at:
>>     >
>>     >   http://lists.koha-community.org/cgi-bin/mailman/options/
>>     > koha-devel/emmanuel.chukwu%40gmail.com
>>     >
>>     >
>>     > You can also make such adjustments via email by sending a message
>> to:
>>     >
>>     >   Koha-devel-request at lists.koha-community.org
>>     >
>>     > with the word `help' in the subject or body (don't include the
>>     > quotes), and you will get back a message with instructions.
>>     >
>>     > You must know your password to change your options (including
>> changing
>>     > the password, itself) or to unsubscribe.  It is:
>>     >
>>     >   etahemek
>>     >
>>     > Normally, Mailman will remind you of your lists.koha-community.org
>>     > mailing list passwords once every month, although you can disable
>> this
>>     > if you prefer.  This reminder will also include instructions on how
>> to
>>     > unsubscribe or change your account options.  There is also a button
>> on
>>     > your options page that will email your current password to you.
>>     >
>>
>> - Done.
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Emmanuel Chukwu <emmanuel.chukwu at gmail.com>
>> To: koha-devel-request at lists.koha-community.org
>> Cc:
>> Bcc:
>> Date: Mon, 18 Sep 2017 23:24:13 +0100
>> Subject: Re: Welcome to the "Koha-devel" mailing list
>> Hi Everyone,
>> My name is Emmanuel Chukwu. I am from Nigeria and I would like to
>> contribute to the development of Koha and also utilize is improving the
>> automation of libraries in Nigeria.
>> It is great to be among you wonderful people.
>>
>> On Mon, Sep 18, 2017 at 11:16 PM, <
>> koha-devel-request at lists.koha-community.org> wrote:
>>
>>> Welcome to the Koha-devel at lists.koha-community.org mailing list! Nau
>>> Mai, Haere Mai ki te whanau Koha. Hello and Welcome to the Koha
>>> Community.
>>>
>>> This is just a brief email to help you make the most of the community,
>>> and the community make the most of you.
>>>
>>> The best thing you can do to start is to introduce yourself. A brief
>>> email to this mailing list saying who you are and what you want to do
>>> is a great way to do that.
>>>
>>> This is the general discussion list for librarians and others
>>> interested in the Koha FOSS (free & open-source software) LMS/ILS
>>> (library management system/integrated library system) and related
>>> activities. It is a companion to other email lists (see
>>> <http://lists.koha-community.org/>) that discuss future development or
>>> aspects of the application.
>>>
>>> Before posting to the list, it's always good to read/search through
>>> the mailing list archive <http://dir.gmane.org/gmane.comp.misc.koha>
>>> and the manual and FAQs <http://koha-community.org/documentation> for
>>> answers to your questions.
>>>
>>> Please feel free to use this list for announcements, questions and
>>> discussions on relevant topics, and please try to keep it positive and
>>> polite. Pro-free-software LMS/ILS news is welcome. Debating
>>> definitions of “free” is not.
>>>
>>> Please send plain text emails and if you opt for the digest, change
>>> the subject line when you reply (as described at the top of the
>>> digest). In general, try to keep subject lines accurate and try to
>>> write the sort of message that you'd be happy if it appeared on the
>>> letters page of a national newspaper or magazine. Other useful
>>> netiquette guidelines can be found in Internet RFC 1855
>>> <http://tools.ietf.org/rfc/rfc1855.txt>.
>>>
>>> Emails from non-subscribers (and other emails held for review) will
>>> usually be sent to this list in a batch once a day.
>>>
>>> Websites and bloggers may find the gmane archive
>>> <http://dir.gmane.org/gmane.comp.misc.koha> more useful for linking,
>>> because its comment system is open to all.
>>>
>>> Some other useful sites to keep an eye on are included below:
>>>
>>> - Koha project home page <http://www.koha-community.org> - Here you
>>> will find links to other Koha websites and announcements of interest
>>> to the Koha community.
>>>
>>> - Koha Bugs <http://bugs.koha-community.org> - Here you will find
>>> enhancement projects as well as bugs
>>>
>>> - Koha Developer Wiki <http://wiki.koha-community.org/doku.php> -
>>> information about the development process and RFCs (Request for
>>> Comments)
>>>
>>> - Koha Git Repository <http://git.koha-community.org/> - patches and
>>> enhancements to Koha from the community
>>>
>>> - Koha Documentation <http://www.koha-community.org/documentation>
>>>
>>> We look forward to meeting you and working with you.
>>>
>>> To post to this list, send your email to:
>>>
>>>   koha-devel at lists.koha-community.org
>>>
>>> General information about the mailing list is at:
>>>
>>>   http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>>>
>>> If you ever want to unsubscribe or change your options (eg, switch to
>>> or from digest mode, change your password, etc.), visit your
>>> subscription page at:
>>>
>>>
>>> http://lists.koha-community.org/cgi-bin/mailman/options/koha-devel/emmanuel.chukwu%40gmail.com
>>>
>>>
>>> You can also make such adjustments via email by sending a message to:
>>>
>>>   Koha-devel-request at lists.koha-community.org
>>>
>>> with the word `help' in the subject or body (don't include the
>>> quotes), and you will get back a message with instructions.
>>>
>>> You must know your password to change your options (including changing
>>> the password, itself) or to unsubscribe.  It is:
>>>
>>>   etahemek
>>>
>>> Normally, Mailman will remind you of your lists.koha-community.org
>>> mailing list passwords once every month, although you can disable this
>>> if you prefer.  This reminder will also include instructions on how to
>>> unsubscribe or change your account options.  There is also a button on
>>> your options page that will email your current password to you.
>>>
>>
>>
>>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/

-- 
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20170926/c8bea999/attachment-0001.html>


More information about the Koha-devel mailing list