My favorites | Sign in
Logo
                
Search
for
Updated Jun 23, 2009 by sproctor
Labels: Phase-Deploy
InstallDoc  

PHP-Calendar Installation Doc

The advice in this installation guide are based on the input received from other users on different systems. If you encounter installation issues that are not mentioned here, please notify us either by updating this page, or sending an email to the mailing list or the maintainer.

Requirements

Installation

Instruction for people that are installing on a web host or some computer other than the one that they are working on are indicated with "remote host only"

Make sure you have fulfilled all of the requirements listed above. Make sure PHP and MySQL server are properly installed and running on your server.

  1. extract the files from the archive (on Linux: tar -zxf php-calendar-x.y.tar.gz)
  2. (Remote server only) Use FTP to connect the server your webpage is stored on and create a new directory where you want to store the calendar (example: 'calendar' for www.mydomain.com/calendar). You can call it whatever you want.
  3. Open up a browser window and navigate to the file install.php in your
  4. calendar folder of your webpage (example:
    http://www.mydomain.com/calendar/install.php)
  5. Follow the directions given by the installer.

Errors

Message: ERROR db:1044: Access denied for user: 'MySQLusername@localhost'

Solution: Make sure you have your MySQL username and password correct in the config.php file. Contact your host or administrator if you don't know what they should are.

Message: ERROR create db:1044: Access denied for user: 'username@localhost' to database 'databasename': CREATE TABLE phpc_events

Solution: You do not have the abilty to create tables. You need to grant permission to create tables on the user that you're using for the calendar.

Message: ERROR Software error Couldn't select database

Solution: Make sure the name of you MySQL database is correct in the config.php file. Contact your host or administrator if you don't know what the database name is. Make sure the SQL_PREFIX is set to 'phpc', or whatever the prefix of your tables is, in the config.php file

Translation

Getting translations working is not automatic yet.

  1. You will need to make sure that you have the locale for the desired language installed. This is very much system dependent. On Debian run 'dpkg-reconfigure locales' as root and select the desired locale.
  2. You will need to generate the messages.mo files for each language. In the LC_MESSAGES directory for each language you will need to run the command 'msgfmt -o messages.mo messages.po'

Comment by sameh_a...@hotmail.com, Jul 31, 2009

Help please I can not connect to db or setup the config.php file

Comment by bozendoka, Jul 31, 2009

I'm installing 2.0 beta 1, downloaded today, 7/31/09. install.php line 163 references a variable named my_admin_passwd, it should be my_adminpasswd.

Comment by bozendoka, Jul 31, 2009

I had this issue in both 1.1 and 2.0 b1; once the install was complete, going to index.php returned a page full of errors similar to this:

PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in M:\Websites\NSJ\phpcal2\includes\setup.php on line 104

I added this towards to top of includes/setup.php: date_default_timezone_set('America/Chicago');

and that fixed it. I'm running this on WinXP Pro/IIS 6.0.

Comment by sameh_a...@hotmail.com, Jul 31, 2009

I’m trying to install php-calendar all what I get is a blank page

http://research.map.gla.ac.uk/resmap/test/php-calendar/install/install.php

any help I will a appreciated

cheers

Comment by bozendoka, Jul 31, 2009

v 2.0 b1: adding a new event results in this error: PHP Notice: Undefined variable: output in M:\Websites\NSJ\phpcal2\includes\html.php on line 124

I'm leaving everything default on the form and typing 'test' in the subject and description fields. The event is created successfully.

Adding $output = ""; to html.php line 103 fixes the problem.

Comment by jamarchi, Jul 31, 2009

Hi I tried to install the calendar but I got this error

Fatal error: Call to a member function errorInfo() on a non-object in /home/publiweb/public_html/calendario/includes/calendar.php on line 55

Can you plese help me

Comment by valberg.larusson, Aug 02, 2009

The problem is an error in the structure of the PDO construct, you can fix it by amending all '... new PDO( ...' commands, see the PDO manual on php.net for instructions. This would be in 4 places in install.php and 1 place in setup.php. I hard coded my credentials into those constructs and got it working. Seems to me the only difference was that my dsn has 'mysql:dbname=xxx;host=xxx' where as his was 'mysql:host=xxx;dbname=xxx'. Either this is important for some servers or possibly, there was a problem with the server reading the config file.

to the developer: it would bea good idea to print out an error message either on the catch or if(!is_object($dbh)) in function db_error() in calendar.php.

Cheers

Comment by bozendoka, Aug 02, 2009

install.php function add_sql_user_db, the call to db_error at line 170 fails with this message: Fatal error: Call to a member function errorInfo() on a non-object in D:\Hosting\2093257\html\nsj\judocal\includes\calendar.php on line 55

From what I can tell $dbh has not been set to an object when that function is called at that point.

Comment by bozendoka, Aug 02, 2009

Would it be possible to add a prerequisite check? It would have saved me a few hours if the installation script had told me that I don't have the PDO PHP drivers installed (it's shared hosting, so I'm SOL).

Comment by sameh_a...@hotmail.com, Aug 03, 2009

I'm geeting this error

Fatal error: Cannot instantiate non-existent class: pdo in /opt/local/apache/htdocs/rande/inacs/php-calendar/install/install.php on line 251

can you help please

Comment by dannylane, Aug 03, 2009

I also get the error: Call to a member function errorInfo() on a non-object on calendar.php line 55

Comment by seth.at.millibit.com, Aug 05, 2009

I cannot locate the config.php file, please help

Comment by rodrigo.samano, Aug 31, 2009

I get the blank screen as well, and for the guy on top the config file i believe is generated by the setup.

Any guidance would be apreciated.

ty.

Comment by pworkshop.com, Sep 05, 2009

Dear ALL, When I have copied all files into my local server(localhost:8080) and made the database & user by myself, but there still shows up a msg as below:

Fatal error: Call to undefined function () in C:\AppServ?\www\calendar\install\install.php on line 246

Would you mind to tell how to fix it? Thx~

Penny

Comment by null29A, Sep 18, 2009

Need help

Warning: require_once(adodb/adodb.inc.php) function.require-once?: failed to open stream: No such file or directory in /var/www/calendar/install.php on line 33

Fatal error: require_once() function.require?: Failed opening required 'adodb/adodb.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/calendar/install.php on line 33

Thanx Torinn

Comment by karp.peter, Sep 20, 2009

I have just tried to install PHP Calendar with the following result: Could not connect to server. 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Backtrace

  1. /homepages/17/d297447319/htdocs/PhpCal?/includes/calendar.php:68 - soft_error
2. /homepages/17/d297447319/htdocs/PhpCal?/install.php:183 - db_error 3. /homepages/17/d297447319/htdocs/PhpCal?/install.php:57 - add_sql_user_db

Can anyone help?

Comment by clairaudiant, Sep 23, 2009

i'm also getting a blank page when i call the install.php script. i assume this could be a permissions related issue. or a code error of some sort. tried modifying permissions for the files within the calendar folder but no luck

Comment by gerko.jansen, Oct 09, 2009

Fatal error: Class 'PDO' not found in /usr/home/websites/pjc/www/project_planner/install/install.php on line 242

Any work around for this problem? I cant seem to install pdo for whatever reason.

Comment by rossina.mejorada, Oct 13, 2009

Hi!! Need help

Warning: require_once(adodb/adodb.inc.php) function.require-once?: failed to open stream: No such file or directory in /var/www/calendar/install.php on line 33

Fatal error: require_once() function.require?: Failed opening required 'adodb/adodb.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/calendar/install.php on line 33

Comment by rossina.mejorada, Oct 13, 2009

It worked, included the adodb library ;)

Comment by pyh.ita.1, Nov 02, 2009

Is there a guide somewhere, just to understand smthing about installation?

Comment by pyh.ita.1, Nov 02, 2009

how many tables have I to create in the DB and what names they must have?

Comment by santoshmaharjan, Nov 08, 2009

Fatal error: Call to undefined function () in D:\wamp\www\phpcalendar\includes\calendar.php on line 60

Any one who knows how to fix this?


Sign in to add a comment
Hosted by Google Code