Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Not Bugs
Author Message
webservant
Worker
Worker



Joined: Feb 26, 2006
Posts: 206
Location: Springfield, MA

PostPosted: Tue Mar 13, 2007 8:28 pm Reply with quote

I tried upgrading my site and ran into security code issues Only registered users can see links on this board! Get registered or login!. So, I decided to test my server using a clean install of RN21 - to see what if anything shook out. Everything was good through the Configure Base RavenNuke step.

When I first go to /admin.php, I get an INSTALLATION directory warning. So, I went into rnconfig.php and set the check variable to FALSE along with the NukeSentinel check.

I closed my browser and went back to /admin.php and got a blank page. So, I set config.php to display_errors = TRUE.

I closed my broswer and went back to /admin.php and I get the following error message:

Fatal error: Call to undefined function: html_entity_decode() in /home/doulos/public_html/mainfile.php on line 1058

When I look up html_entity_decode(), I found it is part of php, but the info page lists it as (PHP 4 >= 4.3.0, PHP 5). phpinfo() tells me I am running 4.2.2. The HowToInstall requirements state I need 4.1 or greater. Do I actually need 4.3.0 or greater?? If so, does this also explain the weirdness in the previous post?

_________________
Awaiting His Shout
Webservant - GraciousCall.org
Romans 8:28-39 
View user's profile Send private message Visit poster's website AIM Address
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Mar 13, 2007 9:54 pm Reply with quote

Hmmm I see indeed that RavenNuke includes this function, but since PHP doesn't support it until 4.3.0, it won't work

I haven't tried any of the alternatives suggested on this site, but here are some
http://us2.php.net/manual/en/function.html-entity-decode.php

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Mar 13, 2007 10:30 pm Reply with quote

I would strongly recommend that you upgrade your PHP installation to the latest 4.x.x release. You will run into more issues otherwise.
 
View user's profile Send private message
webservant







PostPosted: Thu Mar 15, 2007 8:31 pm Reply with quote

Well, I upgraded my development server.

RedHat 9 --> CentOS 3.8
PHP 4.2.2 --> PHP 4.3.2

All is working now with the fresh install. Moving back to upgrading my development site, and the issues documented in the other thread.

With this in mind, may I suggest a change to HowToInstall/requirements.php:
Quote:
PHP - version 4.1 or later is recommended

should be changed to:
Quote:
PHP - version 4.3 or later is required


Thanks for the speedy responses and good advice!
BTW - RN2.10 is AWESOME!! (as usual).

Wave
 
Raven







PostPosted: Thu Mar 15, 2007 9:17 pm Reply with quote

You really should be using 4.4.6 Smile
 
webservant







PostPosted: Fri Mar 16, 2007 4:50 am Reply with quote

Well, I'm getting there. I'm actually burning the iso images for CentOS 4.4 as I write this. There doesn't seem to be a safe on-the-wire upgrade from CentOS 3 --> 4. This will get me to PHP 4.3.9. Then, I'm not sure what I'll do. My hosting company is currently iPowerWeb, and they supply 4.4.1. I don't want to surpass their version because then my development machine may mask issues that I'll experience on my production server.
 
Raven







PostPosted: Fri Mar 16, 2007 6:04 am Reply with quote

I understand. Your hosting company need to upgrade as 4.4.1 is quite old and you are missing some critical updates.
 
khaled_dxb
Regular
Regular



Joined: Jan 15, 2007
Posts: 66

PostPosted: Tue Apr 03, 2007 2:01 pm Reply with quote

Hi,

I'm also getting a fatal error, however it's this one:

Code:
Fatal error: Call to undefined function: mysql_connect() in /var/www/raven/INSTALLATION/setup.php on line 258


php4-mysql is installed but phpinfo says
Code:
'--without-mysql' 
towards the end of that first line "Configure Command"

I'up until i figured it was the mysql_connect statement - all i kept getting was blank pages!!!

The version of PHP stated by phpinfo is 4.3.10-19

But surely a function as old as mysql_connect() should still work??

Thanks
 
View user's profile Send private message
khaled_dxb







PostPosted: Tue Apr 03, 2007 2:03 pm Reply with quote

Oh, one other thing, 4.3.10-19 is the most recent version available with the stable release of Debian 3.1r5 - i'm not sure how to install packages not available in the list using dselect or aptitude (but i'm working on that part).
 
Raven







PostPosted: Tue Apr 03, 2007 2:10 pm Reply with quote

--without-mysql means just that. You do not have access to MySQL commands from PHP. This is a host issue.
 
khaled_dxb







PostPosted: Tue Apr 03, 2007 2:16 pm Reply with quote

i figured as much - in previous installs of debian that i did, this never happened so now i'm not sure how to take this --without mysql off ?! do i need to compile it myself - is that difficult or complicated? i've never compiled it from scratch before... n00b city i know Neutral

can i change something in an ini file?
 
Raven







PostPosted: Tue Apr 03, 2007 2:26 pm Reply with quote

It will have to be recompiled --with-mysql. That's really odd for them not to activate that. It isn't difficult to compile your own, but Debian may have (probably has) it's own special options/configuration scheme. I'd have to think you can find your answers in their forums or possibly even in their documentation.
 
khaled_dxb







PostPosted: Tue Apr 03, 2007 2:37 pm Reply with quote

Ok, did some searching (googling) and found that in the /etc/php4/apache2/php.ini file there is a line that says:
Code:
;extension=mysql.so 
(line 536) and it is commented out, however the last line in the same file is
Code:
extension=mysql.so
but it is NOT commented out.

I removed the comment from line 536, restarted apache2 and it started working now... it seems that it didnt like that line to be the last line of the file?

One thing that is very strange is that phpinfo STILL says --without mysql.

Thing is that phpmyadmin was working perfectly even before i made any changes!! i will go scour their forums to see if i can gather more info.

Thanks for your replies mate.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Not Bugs

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©