OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Install of omp-1.0b

For discussion of ideas, functional requirements, interests regarding the Open Monograph Press.

Moderators: jmacgreg, John

Forum rules
Please feel free to post any questions or start any discussion about OMP here. We'll let you know via this forum when OMP is ready to download and test. You may also want to keep an eye on our OMP page.

Install of omp-1.0b

Postby NLaem » Tue Sep 25, 2012 12:18 pm

Hi,

I have what I think should allow install of omp-1.0b, however, when I run 'php /tools/install.php’ or visit http://our.domain/omp I am not prompted in any way for installation.

Our environment in brief
SUSE Linux Enterprise 11 as VM
PHP 5.4.7 /usr/local/bin/php
PGSQL 9.1 /usr/local/pgsql/9.1
Apache-2.4.3 /usr/local/omp-apache
Upload Store /usr/local/omp-uploads

Thanks for any help.
NLaem
 
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

Re: Install of omp-1.0b

Postby asmecher » Tue Sep 25, 2012 12:41 pm

Hi NLaem,

What do you get when you visited http://your.domain/omp?
When trying the command-line installer, note that you're specifying /tools/install.php -- I'm pretty certain that's not where OMP is located; double-check your path.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Install of omp-1.0b

Postby NLaem » Tue Sep 25, 2012 12:56 pm

from http I get the index directory
Index of /omp
Parent Directory
cache/
classes/
config.TEMPLATE.inc.php
config.inc.php
controllers/
dbscripts/
docs/
favicon.ico
index.php
js/
lib/
locale/
pages/
plugins/
public/
registry/
robots.txt
styles/
templates/
tests/
tools/

Running tools/install.php from /usr/local/omp-apache2/htdocs/omp
NLaem
 
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

Re: Install of omp-1.0b

Postby asmecher » Tue Sep 25, 2012 1:07 pm

Hi NLaem,

Try clicking on the index.php script.

When you tried running "php tools/install.php", what did you get?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Install of omp-1.0b

Postby NLaem » Tue Sep 25, 2012 1:34 pm

Looking at:

http://our.domain/omp
drill to /tools > install.php > click > blank screen (http://our.domain/omp/tools/install.php)

httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module modules/libphp5.so

<IfModule mime_module>
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

Command line from /usr/local/omp-apache2/htdocs/omp
php tools/install.php
or
/usr/local/bin/php tools/install.php
..returns immediately to a prompt ( ps -ef shows no hung process )

drwxr-xr-x 18 user group 4096 2012-09-25 12:06 omp
drwxr-xr-x 2 user group 4096 2012-09-25 12:26 tools
-rwxr-xr-x 1 user group 1146 2012-09-25 08:36 install.php
NLaem
 
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

Re: Install of omp-1.0b

Postby asmecher » Tue Sep 25, 2012 2:18 pm

Hi NLaem,

For tools/install.php, I suspect you're using a CGI-based PHP, which may not work; either use the CLI PHP binary (sometimes php-cli, depending on your server configuration) or focus your efforts on the web-based installation.

For the web-based installation, don't navigate to tools/install.php; that is for command-line only. Just click on the index.php.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Install of omp-1.0b

Postby NLaem » Wed Sep 26, 2012 6:51 am

Hi,

I did some double-checking and found we are PHP CLI, this is our new server
PHP 5.4.7 (cli) (built: Sep 24 2012 11:25:19)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

I ran a simply CLI which ret'd OK
#echo '<?php echo "test\n"; ?>' > test.php rclsb1:~
# php -q test.php
# test

Setup info.php on server which returns full information (attached out put).
Tested by fresh unpack omp-1.0b into htdocs - no change
Tested omp-1.0b to older server that has PHP 5.2.14 (cli) and Apache 2.2.16 - unpacked and accessed via the web - immediately worked.

We cannot use the old server or PHP version (campus security on deprecated version will not be allowed). We are building new server for OMP.

So we know PHP 5.4.7 (64 bit build cli) and Apache 2.4.3 work together independent of omp-1.0b.
We know omp-1.0b will work with older PHP 5.2.14 and Apache 2.2.16, but we cannot back rev to that level.

I wonder what your inclination for back-revving would be. I will start with Apache.
Also I see in most recent install notes you list Postgres => 9.1.5 (we have 9.1.2, will upgrade that). A previous document indicated greater than 7.1 (that must have been a typo).

Thanks for any thoughts - Nancy
Attachments
PHP Version 5.docx
output of info.php via the webserver
(58.71 KiB) Downloaded 116 times
NLaem
 
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

Re: Install of omp-1.0b

Postby asmecher » Wed Sep 26, 2012 8:03 am

Hi Nancy,

Most likely you're hitting bug #7939; otherwise OMP 1.0b should run fine with PHP 5.4.x. Try the patch and see if it improves the command-line installer's behavior.

If you have MySQL, I would recommend using that rather than PostgreSQL. We are targeting both but most of our developers (and most users) use MySQL, so support is likely to be better.

I don't see a report here of what happens when you try to access index.php via the web; is that still not working? If so, what do you see when you try it?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Install of omp-1.0b

Postby NLaem » Wed Sep 26, 2012 8:55 am

Hi,

I had appended index.php to httpd.conf and the page is blank.
DirectoryIndex index.html index.php

I patched ..
patch -p1 --dry-run < 7939.diff
patching file lib/pkp/classes/controllers/grid/GridHandler.inc.php
patch -p1 < 7939.diff
patching file lib/pkp/classes/controllers/grid/GridHandler.inc.php

The OMP installer loads from the web now.

Postgres is my expertise, but I can use Mysql, I will do that.

Looking at the other patches 721-23 I saved as (ie: 721.diff) file from the page links
( Patch for OMP 1.0b at <https://github.com/pkp/pkp-lib/commit/dc8bffd15525ef3842e5a6e260e2b05b6232df4c.diff> )
I get
nancyl@rclsb1:~/OMP> patch -p1 --dry-run < 7921.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/js/controllers/AutocompleteHandler.js b/js/controllers/AutocompleteHandler.js
|index c49abe9..5eefc9b 100644
|--- a/js/controllers/AutocompleteHandler.js
|+++ b/js/controllers/AutocompleteHandler.js
--------------------------
File to patch:
$

Am I doing this wrong?

Thanks for your help - Nancy
NLaem
 
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

Re: Install of omp-1.0b

Postby asmecher » Wed Sep 26, 2012 8:59 am

Hi Nancy,

For patches against the pkp-lib repository, you'll need to go into lib/pkp to apply them.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm

Re: Install of omp-1.0b

Postby NLaem » Wed Sep 26, 2012 9:07 am

Ah right - sorry.
NLaem
 
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

Re: Install of omp-1.0b

Postby bufoni » Fri Sep 28, 2012 5:25 pm

Hi.
I noticed that OMP will not open install page if you do not set the correct security permissions to it's folders.
Regards!
bufoni
 
Posts: 5
Joined: Wed Aug 25, 2010 9:12 pm

Re: Install of omp-1.0b

Postby thanasis » Mon Oct 15, 2012 3:55 am

Hello all,
I recently installed Lamp server in a ubuntu 10.10 system.After following the instractions i run the install.php script from the command line and i got a message for successful installation.
My problem is that when i open <mydomain.com/omp/> all i get is a blank page.The address for some reason looks like that <mydomain.com/omp/index.php/index/login>. I tried to figure out what goes wrong but no luck so far.Any ideas suggestions?

Thanks for your help!
Thanasis
thanasis
 
Posts: 21
Joined: Mon Oct 15, 2012 3:44 am

Re: Install of omp-1.0b

Postby asmecher » Mon Oct 15, 2012 6:57 am

Hi Thanasis,

Please check your error logs, and try applying the recommended patches to see if the issue has already been corrected there. (In the future, please begin a new post rather than replying to an existing one unless the issues are the same. It helps us keep the forums organized.)

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9099
Joined: Wed Aug 10, 2005 12:56 pm


Return to OMP Discussion

Who is online

Users browsing this forum: Bing [Bot] and 0 guests