OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Blank screen when installing ojs on Ubuntu 11.10

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Blank screen when installing ojs on Ubuntu 11.10

Postby Tiago » Wed Apr 18, 2012 4:12 pm

Hi guys,

I'm trying to build a website for a scientific journal and OJS seemed like the ideal solution.

So, I set up a server on my ubuntu 11.10 following the instructions available on ojs website (the tutorial was made on ubuntu 9.04, don't know if it is significant).

However when I try access my localhost/ojs all I get is a blank screen, the address changes to the install file but the screen remains blank.

I've tried using ubuntu 10.04, and set up a LAMP server instead of manual installation described in the tutorial, but nothing seems to work.

So, I would very much appreciate any suggestion to overcome this issue. (I don't have many programming skills, so please excuse my ignorance if this is a basic issue).

Regards,

Tiago
Tiago
 
Posts: 1
Joined: Wed Apr 18, 2012 4:00 pm

Re: Blank screen when installing ojs on Ubuntu 11.10

Postby JasonNugent » Thu Apr 19, 2012 11:28 am

Hi Tiago,

Have you looked in your system logs for Apache and PHP to see what the problem is? My first guess is a permissions issue on your cache directory. The web server needs to be able to write files in there, so it (and sub directories) need to be writable by that user.

regards,
Jason
JasonNugent
Site Admin
 
Posts: 872
Joined: Tue Jan 10, 2006 6:20 am

Re: Blank screen when installing ojs on Ubuntu 11.10

Postby pyshen » Fri Apr 20, 2012 7:27 pm

APC is turned off I think this is turned on by default in Ubuntu also make sure php5-intl is not installed
pyshen
 
Posts: 20
Joined: Tue Jan 03, 2012 1:01 pm

Re: Blank screen when installing ojs on Ubuntu 11.10

Postby blstzus » Thu Jul 05, 2012 1:39 am

Hi,
I have the same problem as Tiago. I am using Ubuntu 12.04.
JasonNugent wrote:Hi Tiago,

Have you looked in your system logs for Apache and PHP to see what the problem is? My first guess is a permissions issue on your cache directory. The web server needs to be able to write files in there, so it (and sub directories) need to be writable by that user.

regards,
Jason

Jason, I have checked the apache2 error log, it says:

[Thu Jul 05 16:35:56 2012] [error] [client 127.0.0.1] ojs2 has produced an error\n Message: WARNING: include(): Failed opening '/var/www/ojs/cache/t_compile/%%7D^7DC^7DC17B21%%install.tpl.php' for inclusion (include_path='.:/var/www/ojs/classes:/var/www/ojs/pages:/var/www/ojs/lib/pkp:/var/www/ojs/lib/pkp/classes:/var/www/ojs/lib/pkp/pages:/var/www/ojs/lib/pkp/lib/adodb:/var/www/ojs/lib/pkp/lib/phputf8:/var/www/ojs/lib/pkp/lib/pqp/classes:/var/www/ojs/lib/pkp/lib/smarty:.:/usr/share/php:/usr/share/pear')\n In file: /var/www/ojs/lib/pkp/lib/smarty/Smarty.class.php\n At line: 1256\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.10-1ubuntu3.2\n Apache Version: Apache/2.2.22 (Ubuntu)\n DB Driver: mysql

I can't find the php error log though. I a newbie in linux and ojs.

pyshen wrote:APC is turned off I think this is turned on by default in Ubuntu also make sure php5-intl is not installed

Psyhen,
what is APC? How do I check php5-intl is installed or not?
Thank you.
blstzus
 
Posts: 16
Joined: Mon Apr 26, 2010 12:08 am

Re: Blank screen when installing ojs on Ubuntu 11.10

Postby JasonNugent » Thu Jul 05, 2012 2:54 am

Hi blstzus,

That error message about being unable to include the template is because the permissions on your cache/ directory do not allow your web server to create new templates. That directory needs to be owned (or writable) by the web server. You'd do this with a chmod or chown command, depending on what you wanted to do. I can't give you the exact command to run because I don't know what user your web server software runs as.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 872
Joined: Tue Jan 10, 2006 6:20 am

Re: Blank screen when installing ojs on Ubuntu 11.10

Postby blstzus » Thu Jul 05, 2012 5:47 pm

Hi Jason,
Thanks for your reply.
I am still trying, not in the phase to publish it online yet.
I changed the permission so that everybody can create and delete files :). I worked.
I know it will not be safe to do that. Do you have any tips on what should I set for that? Any where I can search and read for that?
Sorry. I am really new to Linux and OJS.

Thanks a bunch.
-Aiman-
blstzus
 
Posts: 16
Joined: Mon Apr 26, 2010 12:08 am

Re: Blank screen when installing ojs on Ubuntu 11.10

Postby JasonNugent » Fri Jul 06, 2012 3:51 am

Hi Aiman,

In that case, your best bet is to determine who your Apache process runs as (which user). In many cases, it will be a user like 'www' or 'nobody' or 'apache'. Once you know that, you can run the following command (as root):

Code: Select all
chown -R TheUser cache/


Where 'TheUser' is the person the apache process runs as. You can determine who that is by looking at the output of the command 'ps auxww' and looking for your apache or httpd processes. The user name will be in the first column. Ignore any lines beginning with 'root' since that is the parent process which spawns the actual apache processes that handle requests for content.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 872
Joined: Tue Jan 10, 2006 6:20 am

Re: Blank screen when installing ojs on Ubuntu 11.10

Postby francojv » Mon Jun 09, 2014 6:48 am

Since I was on a multiuser linux machine hosted by someone I did not know I did the following (as root - luckily I was granted this privilege):
1. cd .../ojs.../ (the ojs root)
2. chmod -R o+w cache
3. from a browser: hit http://the-host-server/ojs-.../
this redirects to http://the-host-server/ojs.../index.php ... ll/install
4. The install page is NOT blank!!! (hopefully) and stuff is placed into .../ojs.../cache
5. ls -lR .../ojs.../cache
6. look at owner and group ids - using pseudonyms, say these are "ojs-owner" and "ojs-group"
7. chown -R ojs-owner.ojs-group .../ojs.../
8. chmod -R o-w cache (from the ojs root directory)

This will probably work on other unix-like OSes such as OpenBSD but I did not try it.
francojv
 
Posts: 1
Joined: Mon Jun 09, 2014 6:28 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 4 guests