Register    Login    Forum    Search    FAQ

Board index » Installation and Setup » Installation Script




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Installation Issue on PhreeBook2.1
 Post Posted: Mon Nov 29, 2010 9:21 pm 
Offline

Joined: Mon Nov 29, 2010 9:12 pm
Posts: 1
I am new to PHP. I've installed PHP 5.1 and MySQL 5.1 and copied the PhreeBooksR2.1 folder to apache tomcat webapps folder.

When I execute the URL: http://localhost:8080/PhreeBooksR2.1/index.php getting the following message:

'login' && $module <> 'pw_lost') { // save the page requested to reload when logging back in $_SESSION['pb_cat'] = $_GET['cat']; $_SESSION['pb_module'] = $_GET['module']; $_SESSION['pb_jID'] = $_GET['jID']; $_SESSION['pb_type'] = $_GET['type']; } $cat = 'general'; $module = 'login'; } else { unset($_SESSION['pb_cat']); unset($_SESSION['pb_module']); unset($_SESSION['pb_jID']); unset($_SESSION['pb_type']); } // check to see if it is an ajax request if ($module == 'ajax') { $pre_process_path = DIR_FS_MY_FILES . 'custom/' . $cat . '/ajax/' . $_REQUEST["op"] . '.php'; if (file_exists($pre_process_path)) { require($pre_process_path); die; } $pre_process_path = DIR_FS_MODULES . $cat . '/ajax/' . $_REQUEST["op"] . '.php'; if (file_exists($pre_process_path)) { require($pre_process_path); die; } die; // go no further } //include the custom modfications for this module $custom_html = false; $include_header = false; $include_footer = false; $include_template = 'template_main.php'; // default template to use, can be over-ridden by pre_process //start processing the module, required, pull in custom modules if requested $pre_process_path = DIR_FS_MY_FILES . 'custom/' . $cat . '/pages/' . $module . '/pre_process.php'; if (file_exists($pre_process_path)) { define('DIR_FS_WORKING', DIR_FS_MY_FILES . 'custom/' . $cat . '/'); define('DIR_WS_WORKING', DIR_WS_FULL_PATH . 'my_files/custom/' . $cat . '/'); } else { $pre_process_path = DIR_FS_MODULES . $cat . '/pages/' . $module . '/pre_process.php'; if (file_exists($pre_process_path)) { define('DIR_FS_WORKING', DIR_FS_MODULES . $cat . '/'); define('DIR_WS_WORKING', DIR_WS_FULL_PATH . 'modules/' . $cat . '/'); } else die('No pre_process file, looking for the file: ' . $pre_process_path); } // load the pre_process file require($pre_process_path); // set the template path as defined from the pre-process script, include custom if exists if (file_exists(DIR_FS_MY_FILES . 'custom/' . $cat . '/pages/' . $module . '/' . $include_template)) { $template_path = DIR_FS_MY_FILES . 'custom/' . $cat . '/pages/' . $module . '/' . $include_template; } else { $template_path = DIR_FS_WORKING . 'pages/' . $module . '/' . $include_template; } if (!$custom_html) { ?> > >

What is the issue?

Can somebody help me out how to do installation, Please

Thanks

Jean


Top 
 Profile  
 
 Post subject: Re: Installation Issue on PhreeBook2.1
 Post Posted: Thu Dec 02, 2010 1:11 am 
Offline

Joined: Mon Mar 01, 2010 5:32 am
Posts: 558
Location: Netherlands
The message you are showing is the raw content of the file index.php
This means that you server isn't executing the code.
You need to look into the server setup.

If your not familiar whit tomcat it is difficult to setup.
i had the same problem and switched to xampp

_________________
Rene Kervezee


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 2 posts ] 

Board index » Installation and Setup » Installation Script


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: