Page 1 of 2

Installing CMS on mobile phone.

Posted: Tue Dec 04, 2007 2:42 pm
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

Re: Installing CMS on mobile phone.

Posted: Tue Dec 04, 2007 3:15 pm
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

Re: Installing CMS on mobile phone.

Posted: Mon Dec 10, 2007 8:08 am
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

Re: Installing CMS on mobile phone.

Posted: Mon Dec 10, 2007 8:29 am
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

Re: Installing CMS on mobile phone.

Posted: Mon Dec 10, 2007 10:59 am
by cyberman
Are sessions on your PAMP activated? It's needed.

A phpinfo() could be very helpful :) ...

Re: Installing CMS on mobile phone.

Posted: Mon Dec 10, 2007 2:34 pm
by jhnwkmn
cyberman wrote: A phpinfo() could be very helpful :) ...
Ok, here it is.

Thanks for all help.

Johan

[Solved] Re: Installing CMS on mobile phone.

Posted: Tue Dec 11, 2007 3:31 pm
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

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

Posted: Tue Dec 11, 2007 5:41 pm
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 ...

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

Posted: Wed Dec 12, 2007 7:40 am
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

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

Posted: Thu Dec 13, 2007 11:48 am
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 :).

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

Posted: Fri Dec 14, 2007 6:20 am
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

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

Posted: Fri Dec 14, 2007 6:17 pm
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.

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

Posted: Sat Dec 15, 2007 8:15 am
by jhnwkmn
cyberman wrote: Ahh - you are a Nokia guy. Am I right?
Yes you are.

Johan

Re: Installing CMS on mobile phone.

Posted: Sat Dec 15, 2007 1:52 pm
by Pierre M.
Johan, are you doing this work in your spare time or because of a Nokia request ?

Pierre

Re: Installing CMS on mobile phone.

Posted: Sat Dec 15, 2007 8:36 pm
by cyberman
Are there any release dates for Pamp?