Installing CMS on mobile phone.

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
jhnwkmn
New Member
New Member
Posts: 8
Joined: Tue Dec 04, 2007 2:15 pm

Installing CMS on mobile phone.

Post by jhnwkmn »

Hi,

I'm working in a project where we are bringing the whole LAMP stack - renamed as PAMP as in Personal AMP - to the mobile phone (Nokia S60 devices to be precise).

Apache is version 2.2.4, MySQL is version 5.0.45 and PHP is version 5.2.2.

We've reached the point that Drupal can be installed pretty much off the shelf and now I'd like to get CMS working as well. So, I've done the following:
  • Downloaded and installed CMS version 1.2.2.
  • Created an empty file config.php.
  • Created an empty database.
  • Turned on error_reporting = E_ALL and display_errors = on in php.ini.
[br]
However, when I now browse to [url=http://.../cmsmadesimple]http://.../cmsmadesimple[/url] I'm correctly redirected to [url=http://.../cmsmadesimple/install/]http://.../cmsmadesimple/install/[/url], but shown a blank page.

So, how do I make cms tell me what the problem is?

Br,
Johan
alby

Re: Installing CMS on mobile phone.

Post by alby »

jhnwkmn wrote: I'm working in a project where we are bringing the whole LAMP stack - renamed as PAMP as in Personal AMP - to the mobile phone (Nokia S60 devices to be precise).

Apache is version 2.2.4, MySQL is version 5.0.45 and PHP is version 5.2.2.
Check apache log and requirement for php: check phpinfo for memory_limit

Alby
jhnwkmn
New Member
New Member
Posts: 8
Joined: Tue Dec 04, 2007 2:15 pm

Re: Installing CMS on mobile phone.

Post by jhnwkmn »

alby wrote: Check apache log and requirement for php: check phpinfo for memory_limit
Nothing is written to error.log and memory_limit is 32M.

Are there any components that CMS depends upon that usually are available by default and in this context might not be?

Johan
Last edited by jhnwkmn on Mon Dec 10, 2007 8:11 am, edited 1 time in total.
alby

Re: Installing CMS on mobile phone.

Post by alby »

jhnwkmn wrote: Nothing is written to error.log and memory_limit is 32M.

Are there any components that CMS depends upon that usually are available by default and in this context might not be?
First page of install is a check variables for your php.ini and permission filesystem.

- Turned on error_reporting = E_ALL and display_errors = on in install/index.php
- Insert break points for debug

Alby
cyberman

Re: Installing CMS on mobile phone.

Post by cyberman »

Are sessions on your PAMP activated? It's needed.

A phpinfo() could be very helpful :) ...
jhnwkmn
New Member
New Member
Posts: 8
Joined: Tue Dec 04, 2007 2:15 pm

Re: Installing CMS on mobile phone.

Post by jhnwkmn »

cyberman wrote: A phpinfo() could be very helpful :) ...
Ok, here it is.

Thanks for all help.

Johan
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

jhnwkmn
New Member
New Member
Posts: 8
Joined: Tue Dec 04, 2007 2:15 pm

[Solved] Re: Installing CMS on mobile phone.

Post by jhnwkmn »

It turned out that it was the call to session_start() in CMSInstaller.run() that failed and having '@' in front of the call appears to prevent the error message from being displayed. When I removed '@' I got the error

Fatal error: session_start() [function.session-start]: Failed to initialize storage module: user (path: c:/tmp) in E:\data\apache\htdocs\cmsmadesimple\install\lib\classes\CMSInstaller.class.php on line 123

that I could work around by putting php_value session.save_handler files in .htaccess in the root. After that the installation proceeded smoothly also with '@'  in place.

Now I bumped into

Fatal error: Call to undefined function token_get_all() in E:\data\apache\htdocs\cmsmadesimple\lib\smarty\internals\core.write_compiled_include.php on line 45

but that's another problem to solve  :)

Johan
cyberman

Re: [Solved] Re: Installing CMS on mobile phone.

Post by cyberman »

jhnwkmn wrote:
Fatal error: Call to undefined function token_get_all() in E:\data\apache\htdocs\cmsmadesimple\lib\smarty\internals\core.write_compiled_include.php on line 45

but that's another problem to solve  :)
CMSms needs tokenizer support too ...
jhnwkmn
New Member
New Member
Posts: 8
Joined: Tue Dec 04, 2007 2:15 pm

Re: [Solved] Re: Installing CMS on mobile phone.

Post by jhnwkmn »

cyberman wrote: CMSms needs tokenizer support too ...
Yes, and I've temporarily worked around that as explained here. That is, I replaced

Code: Select all

$this_varname = ((double)phpversion() >= 5.0) ? '_smarty' : 'this';
with

Code: Select all

$this_varname = ((double)phpversion() >= 5.0 and function_exists(token_get_all)) ? '_smarty' : 'this';
in core.write_compiled_include.php.

Anyway, now CMS Made Simple runs quite nicely on the phone  :)

Johan
cyberman

Re: [Solved] Re: Installing CMS on mobile phone.

Post by cyberman »

jhnwkmn wrote: Anyway, now CMS Made Simple runs quite nicely on the phone  :)
Maybe you can add a little howto on our wiki :).
jhnwkmn
New Member
New Member
Posts: 8
Joined: Tue Dec 04, 2007 2:15 pm

Re: [Solved] Re: Installing CMS on mobile phone.

Post by jhnwkmn »

cyberman wrote: Maybe you can add a little howto on our wiki :).
It's a little premature for that :)

The PAMP stack is not available yet and the goal is to fix it so that CMSMS and other CMSs can be installed following the general instructions without a need for any extra trickery.

Br,
Johan
cyberman

Re: [Solved] Re: Installing CMS on mobile phone.

Post by cyberman »

jhnwkmn wrote: The PAMP stack is not available yet
Ahh - you are a Nokia guy. Am I right?

Read something about pamp in my daily news view.
jhnwkmn
New Member
New Member
Posts: 8
Joined: Tue Dec 04, 2007 2:15 pm

Re: [Solved] Re: Installing CMS on mobile phone.

Post by jhnwkmn »

cyberman wrote: Ahh - you are a Nokia guy. Am I right?
Yes you are.

Johan
Pierre M.

Re: Installing CMS on mobile phone.

Post by Pierre M. »

Johan, are you doing this work in your spare time or because of a Nokia request ?

Pierre
cyberman

Re: Installing CMS on mobile phone.

Post by cyberman »

Are there any release dates for Pamp?
Locked

Return to “[locked] Installation, Setup and Upgrade”