OpenX: Installation process stuck on welcome Page after “Checking system parameters…”

When you do a fresh install of OpenX, it could happen that you’ll get stuck on the welcome page of the installation process. When you click on the “I Agree” Button, nothing happens except for the short “Checking system parameters” popup. But you won’t get to step 2 of the installation.

Openx: Checking system parameters...

After a few hours of debugging I finally found the reason for this problem: The Session data is not being stored. On the server where the problem occurred, the php session.save_path had a wrong configuration.

If you would like to do a test first and check if the Sessions are working on your Server, you can simply upload a php file with the following content to your server and then open it in your browser. If the number stays unchanged after a Page refresh, your Sessions are not working. If the number is going up, everything is fine with your sessions.

//ini_set('session.save_path', '/tmp');
session_start();
if(isset($_SESSION['views']))
    $_SESSION['views'] = $_SESSION['views']+ 1;
else
    $_SESSION['views'] = 1;

echo "views = ". $_SESSION['views'];
echo '

Refresh

';
?>

Solution

If you have access to the php.ini, you should set a correct path in

session.save_path

If you don’t have access to php.ini, you can set the Path also in the init file of OpenX. In my case I place the line where I have already made some other manual modifications:

vi init.php

In this case, I have set the session path to the /tmp directory. It would be better however to create a special directory for php sessions such as /tmp/sessions/ – but only of course, if you have the permission to create new directories on the server 😉

/* replaced by teslina - PHP Strict Standards Fix
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED);
*/
ini_set('session.save_path', '/tmp');
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);
// eof teslina

That’s it! You’ll now be redirected to step 2 of the installation 🙂

openx step 2 registration

 

 

  • cefek
    #1 written by cefek 4 years ago

    MAN, you just saved me from hours and hours of frustration!!! Thanks and keep it up – I am grateful to the extent you don’t even know.

  • debedb
    #2 written by debedb 4 years ago

    Thank you, I was banging my head on the wall for two days! I’ll buy you a beer.

    • Teslina
      #3 written by Teslina 4 years ago

      Glad, I could help 🙂 🙂
      And thank you soooooo much for the beer!!! you made my day!!!! thank you 🙂

  • Steve
    #4 written by Steve 3 years ago

    Thanks, found the comment as top result in Google when I searched for this issue.

    Note: A default installation on CentOS of PHP 5.4 from the Remi Collection has a standard path of /var/lib/php/session/

    The command to execute to resolve this issue is then:

    chmod 1777 /var/lib/php/session

    That’s all. (You might need to add ‘sudo’ in front)

  • Tom
    #5 written by Tom 1 year ago

    Steve, man thanks for that php session tip. I’ve been banging my head against my keyboard for 2 days.. digging through code checking the includes.

    chmod 1777 /var/lib/php/session

    that was the fix
    tom

  • *

    You may use these HTML tags: <a> <abbr> <acronym> <b> <blockquote> <cite> <code> <del> <em> <i> <q> <s> <strike> <strong>

  • Comment Feed for this Post
Go to Top