Current time: 12-27-2024, 09:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
strange happenings...
Author Message
ncoop23 Offline


Posts: 3
Joined: May 2008
Reputation: 0
Post: #1
strange happenings...
My dns is messed up so I have to use my ip to fet to the server for now but thats another problem. right now when I dial the IP in I get this

<?php
/**
* ispCP ω (OMEGA) a Virtual Hosting Control System
*
* @copyright 2001-2006 by moleSoftware GmbH
* @copyright 2006-2008 by ispCP | http://isp-control.net
* @version SVN: $ID$
* @link http://isp-control.net
* @author ispCP Team
*
* @license
* This program is free software; you can redistribute it and/or modify it under
* the terms of the MPL General Public License as published by the Free Software
* Foundation; either version 1.1 of the License, or (at your option) any later
* version.
* You should have received a copy of the MPL Mozilla Public License along with
* this program; if not, write to the Open Source Initiative (OSI)
* http://opensource.org | osi@opensource.org
*/

require 'include/ispcp-lib.php';

if (isset($_GET['logout'])) {
unset_user_login_data();
}

do_session_timeout();

init_login();

if (isset($_POST['uname']) && isset($_POST['upass']) && !empty($_POST['uname']) && !empty($_POST['upass'])) {

$uname = encode_idna($_POST['uname']);

check_input(trim($_POST['uname']));
check_input(trim($_POST['upass']));

if (register_user($uname, $_POST['upass'])) {
redirect_to_level_page();
}

header('Location: index.php');
exit();
}

if (check_user_login()) {
if (!redirect_to_level_page()) {
unset_user_login_data();
}
}

shall_user_wait();

if (isset($_SESSION['user_theme'])) {
$theme_color = $_SESSION['user_theme'];
} else {
$theme_color = $cfg['USER_INITIAL_THEME'];
}

$tpl = new pTemplate();

if ($cfg['MAINTENANCEMODE'] && !isset($_GET['admin'])) {

$tpl->define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/maintenancemode.tpl');

$tpl->assign(
array(
'TR_PAGE_TITLE' => tr('ispCP Omega a Virtual Hosting Control System'),
'THEME_COLOR_PATH' => $cfg['LOGIN_TEMPLATE_PATH'],
'THEME_CHARSET' => tr('encoding'),
'TR_MESSAGE' => nl2br($cfg['MAINTENANCEMODE_MESSAGE']),
'TR_ADMINLOGIN' => tr('Administrator login')
)
);

} else {

$tpl->define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/index.tpl');

$tpl->assign(
array(
'TR_MAIN_INDEX_PAGE_TITLE' => tr('ispCP Omega a Virtual Hosting Control System'),
'THEME_COLOR_PATH' => $cfg['LOGIN_TEMPLATE_PATH'],
'THEME_CHARSET' => tr('encoding'),
'TR_LOGIN' => tr('Login'),
'TR_USERNAME' => tr('Username'),
'TR_PASSWORD' => tr('Password'),
'TR_LOGIN_INFO' => tr('Please enter your login information'),
// @todo: make this configurable by ispcp-lib
'TR_SSL_LINK' => isset($_SERVER['HTTPS']) ? 'http://'.htmlentities($_SERVER['HTTP_HOST']) : 'https://'.htmlentities($_SERVER['HTTP_HOST']),
'TR_SSL_IMAGE' => isset($_SERVER['HTTPS']) ? 'lock.png' : 'unlock.png',
'TR_SSL_DESCRIPTION' => !isset($_SERVER['HTTPS']) ? tr('Secure Connection') : tr('Normal Connection')
)
);

}

if ($cfg['LOSTPASSWORD']) {
$tpl->assign('TR_LOSTPW', tr('Lost password'));
} else {
$tpl->assign('TR_LOSTPW', '');
}

gen_page_message($tpl);

$tpl->parse('PAGE', 'page');
$tpl->prnt();

if ($cfg['DUMP_GUI_DEBUG'])
dump_gui_debug();

?>

Any ideas on how I can fix that?
05-14-2008 02:42 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: strange happenings...
PHP not parsed.
05-14-2008 05:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ncoop23 Offline


Posts: 3
Joined: May 2008
Reputation: 0
Post: #3
RE: strange happenings...
ok so how do I parse php?
05-15-2008 05:47 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #4
RE: strange happenings...
Make sure you have php installed.

Check your apache config (/etc/conf.d/apache2, /etc/sysconfig/httpd, where ever it is on your distro), and make sure you have -D PHP5 turned on.

Alternatively you could use -D FASTCGI or -D FCGID if you want to use either of those instead of mod_php...


If you need more detail, please let us know your distro and how you want to run php (mod_php, fastcgi, fcgid).

Hope that helps.
05-15-2008 06:00 AM
Find all posts by this user Quote this message in a reply
ncoop23 Offline


Posts: 3
Joined: May 2008
Reputation: 0
Post: #5
RE: strange happenings...
ok so I have apache2.2 and cannot start php5 how would I downgrade apache?

Starting web server (apache2)...apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: API module structure `php5_module' in file /usr/lib/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
05-15-2008 07:42 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)