Hi,
I trying start with cakePHP with this tuto.
http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake1/section2.html
an .. I have two problems:
1. I can't connect to postgreSQL,
this is part from my database.php
class DATABASE_CONFIG {
var $default = array(
'driver' => 'postgres',
'persistent' => false,
'host' => 'localhost',
'login' => 'cake_adm',
'password' => 'test.2010',
'database' => 'cake_db1',
'prefix' => '',
);
}
And info from page:
Your database configuration file is present.
Cake is NOT able to connect to the database.
I have installed php-pgsql, Im using phpPgAdmin to manage my db. I
can login with this login and password, creating table etc. but
cakePHP can't connect , I don't know why
And my 2nd problem :
I using Fedora 13, on this ystem on default med rewrite is enable,
I edit my httpd.conf files and set :
DocumentRoot "/var/www/html"
#
# Each directory to which Apache has access can be configured with
respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
# Options FollowSymLinks
# AllowOverride None
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess
files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
When i execute :
[r...@mir conf]# httpd -M |grep rewrite
httpd: Could not reliably determine the server's fully qualified
domain name, using ::1 for ServerName
rewrite_module (shared)
Syntax OK
I have instaled cakePHP on /var/www/html :
[r...@mir conf]# ls /var/www/html/
app cake index.php index.php~ plugins README test.php~ vendors
My .htaccess file :
[r...@mir conf]# cat /var/www/html/app/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>[r...@x51r conf]#
My PHP version:
[r...@mir conf]# php -v
PHP 5.2.13 (cli) (built: Mar 6 2010 12:40:51)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
I don't know how start, or where I made mistake ?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en