Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 05:24 am EST

Geeklog Forums

Another Installation attempt failure


Status: offline

samzuni

Forum User
Newbie
Registered: 10/26/04
Posts: 2
determined
While attempting to install Geeklog 1.3.9sr2, I get the following error indications:

Warning: You have register_globals = Off in your php.ini. However, Geeklog requires register_globals to be on. Before you continue, please set it to on and restart your web server.

In /etc/php.ini, I turn register_globals on, restart httpd, but still get the same error message. Is the install.php brain dead? Or something simple you didn’t mention in the docs?

In the php.ini file is this info:

; - register_globals = On [Security, Performance]
; Global variables are no longer registered for input data (POST, GET, cookies,
; environment and other server variables). Instead of using $foo, you must use
; you can use $_REQUEST["foo"] (includes any variable that arrives through the
; request, namely, POST, GET and cookie variables), or use one of the specific
; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
; on where the input originates. Also, you can look at the
; import_request_variables() function.
; Note that register_globals is going to be deprecated (i.e., turned off by
; default) in the next version of PHP, because it often leads to security bugs.
; Read http://php.net/manual/en/security.registerglobals.php for further
; information.

I tried both of these with the same results:
register_globals = On [same format as other selected switches]
- register_globals = On [deleting just the semicolon in case the dash was important]

Do you intend to modify Geeklog to keep up with the PHP trend? So anyway I continue in the hope it is an error in the script that only refuses to recognize the switch. On the third page, I then get the below error, and that’s all she wrote !! Same indication as an earlier poster placed here in the forum (14 Oct ?)

Fatal error: Call to undefined function: mysql_connect() in /var/www/weblog/system/databases/mysql.class.php on line 108

Any ideas what I am missing, or what is broken? This is not in the troubleshooting symptoms of the documentation. BTW, WinZip is not a factor.
Running Linux 2.6.8.x, Apache 2.0.51, PHP 4.3.8, MySQL server 3.23.58
Thanks for any helpful advice.
Sam.
 Quote

Status: offline

JohnVanVliet

Forum User
Full Member
Registered: 10/09/03
Posts: 161
check down on line 380 of the php.ini
Text Formatted Code
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = on
 

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
In other words: In the php.ini, lines that begin with a semicolon are comments.

bye, Dirk
 Quote

Status: offline

samzuni

Forum User
Newbie
Registered: 10/26/04
Posts: 2
Yes, I know the semicolon is a comment. The previous referred to the options being prepended with a dash, where the following options in later sections were not. The inconsistency apparently confused me.
BTW I love the cute little emoticons...
 Quote

All times are EST. The time is now 05:24 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content