Welcome to Geeklog, Anonymous Wednesday, December 04 2024 @ 04:10 am EST

Geeklog Forums

install issues geeklog-1.6.0sr2


Status: offline

jasonjones

Forum User
Newbie
Registered: 06/18/08
Posts: 12
Hi all,

Been looking around for hours on this one...
This is a geeklog/php combined question.

I have tomcat 5.5.2 running with mysql.
I added PHP to tomcat following these directions (with many of my own tweaks) http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/

I was able to get the old phpinfo() test page working.
So I'm all good right, PHP is installed and working/talking with tomcat.
Pretty exciting. Now I'm ready to install geeklog.... then wham!
I see that geeklog makes calls to the $_SERVER array about 70 times.

For some reason tomcat is not giving me server values in the $_SERVER array.
I created a test page and found out the size of the $_SERVER array is 2
The 2 elements in $_SERVER are 'argv' and 'argc'

In php.ini I have almost everything possible turned on.
I have register_globals = On

If anyone know show I could fix the PHP / Tomcat $_SERVER issue, awesome... if not, no big deal, I understand this is a geeklog install forum, not a PHP/Tomcat forum.

My geeklog question is this:
Can I hard code in all the values for $_SERVER['SERVER_INFO_BLA'] that I see throughout geeklog? I assume that hard coding the values in would work, but the fact that these values are not in the $_SERVER array may cause some issues down the road. This may mean that PHP/Tomcat are not as good of friends as I assume. If I do the hard coding, will this work, will I see other issues down the line?

Any ideas?
Shall I scrap my PHP/Tomcat dreams?

I appreciate any input.

Thanks,

jason jones
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I don't know much about Tomcat (other than that it exists), so I can't help you there.

Quote by: jasonjones

Can I hard code in all the values for $_SERVER['SERVER_INFO_BLA'] that I see throughout geeklog?


That may work for some of them but not for things like $_SERVER['DOCUMENT_URI'] which, for example, is used in lib-common.php to figure out the URL of the current script.

Btw, you don't need to enable register_globals. Geeklog itself and most of the plugins are working just fine with it being "off".

bye, Dirk
 Quote

Status: offline

jasonjones

Forum User
Newbie
Registered: 06/18/08
Posts: 12
Dirk,

Thanks for the reply, I appreciate it. It's nice to know that someone is out there listening in case I have a problem. I'm going to do my best to figure out a workaround for the $_SERVER['DOCUMENT_URI'] problem. I want to test some ideas I have out for GL. Before I start spamming this forum with questions, I'd like to try it out myself. I'll let you 'all know if I figure out the Tomcat issue. And I'm sure I'll be back with some 'real' GL questions.

Thanks,

jj
 Quote

Status: offline

jasonjones

Forum User
Newbie
Registered: 06/18/08
Posts: 12
For anyone interested I put apache2.2 in front of tomcat.
Installing PHP in apache2.2 is very easy.
Configuring apache2.2 to font tomcat is also pretty easy.
This solution worked better than trying to configure tomcat to accept php. It's also faster to have apache serve up content instead of tomcat.

Anyway...

I'm able to do a geeklog install, however, I'm having some issues with my site url.
All my links are pointing to my root folder on my web server.

In older versions of geeklog, I could edit the variables below in geeklogHomeDir/config.php

$_CONF['site_url'] and
$_CONF['path_html']

Is there no longer a config.php in geeklog-1.6?
In geeklogHomeDir I see a db-config.php, but no config.php
I searched my filesystem and saw nothing for config.php

I installed geeklog1.4.1 a year and a half ago, and I remember config.php as being the central 'config' file of geeklog.

In geeklog1.6 where is config.php?
Did I get a bad download?
Am I crazy?

How do I make changes to these variables if I can't find the file they are in?!
I appreciate any words of wisdom.

TIA,

JJ
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: jasonjones

In geeklog1.6 where is config.php?


Gone and replaced with the online configuration (see your Admins Block).

There are two config files (db-config.php and siteconfig.php) for the essential configuration. Everything else is done in the admin's Configuration panel and stored in the database.

Changing the paths and URLs afterwards is a bit of a problem now, though. Geeklog 1.6.0 introduced the "Migrate" option in the install script, which helps moving sites from one server to another. As of 1.6.1 (currently under development), you will also be able to "migrate" an existing database in-place. Until then, try one of the two scripts here.

bye, Dirk
 Quote

Status: offline

jasonjones

Forum User
Newbie
Registered: 06/18/08
Posts: 12
Dirk,

Thanks for the speedy response.
I'll check out the online Admins Block.

I'll also try one of the two scripts you provided.
If they don't work, I'll just knock out my DB and start the install over.

I am wondering how my URL and Paths were not set.
On the first page of the install process, I was asked to provide DB info, and also my starting directories... (I'm sure I had that set correctly.) Any idea on why the starting directories didn't take?

Thanks,

JJ
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: jasonjones

I am wondering how my URL and Paths were not set.
On the first page of the install process, I was asked to provide DB info, and also my starting directories... (I'm sure I had that set correctly.) Any idea on why the starting directories didn't take?


I'm not aware of any problems there. It's a simple form and the data is transported using standard GET and POST requests. Could this have something to do with your earlier problems?

bye, Dirk
 Quote

Status: offline

jasonjones

Forum User
Newbie
Registered: 06/18/08
Posts: 12
Dirk,

Sorry to keep bothering you.

As you stated there is no longer a 'config.php' file in GL1.6.
I see now that those values are stored in the 'gl_conf_values' table.

As mentioned earlier, none of my values got stored in the database from screen 1 of the installation.

field 'name' from table 'gl_conf_values':

site_url
site_admin_url
site_name
site_slogan

all have the same value:

s:0:"";

Can I update these values in the database?
I see there are many values that start with
s:someNumber:"someText"

I don't know what to put for 'someNumber'

I can't go to the Admin Block because I can only get to public_html/mygeeklogpage/index.php because I type that URL into the address bar. All links and following form actions forward to a page that is not there because the SITE URL is off.

Can I update the values mentioned above in the DB?
If so, what should I put for the 'someNumber' value?

Again, I don't know why the installation form did not take my values for these variables. It obviously took the values for the database values.

Thanks in advance.

jj
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That's the PHP serialize format. "s" means it's a string, the number is the string length (without the quotes).

It's important that you get that right. But try with the two scripts I pointed you to (above) first - they should do the hard work for you.

bye, Dirk
 Quote

All times are EST. The time is now 04:10 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