Re: [OT] Re: installing tutos2
On Sun, May 20, 2007 at 05:37:27PM -0400, Roberto C. Sánchez wrote:
> On Sun, May 20, 2007 at 11:03:49PM +0200, csanyipal wrote:
> >
> > This abowe is in Hungarian.
> I have this on my system:
>
> $ cat /etc/default/locale
> # File generated by update-locale
> LANG=en_US
>
> Perhaps you could try running update-locale on your system and then
> posting the output again?
I edited the /etc/environment file and now I get messages on English,
when reconfigure tutos2:
sudo tail -f /var/log/postgresql/postgresql-7.4-main.log
2007-05-24 22:53:22 LOG: database system was shut down at 2007-05-24
22:53:21 CEST
2007-05-24 22:53:22 LOG: checkpoint record is at 0/9B1058
2007-05-24 22:53:22 LOG: redo record is at 0/9B1058; undo record is at
0/0; shutdown TRUE
2007-05-24 22:53:22 LOG: next transaction ID: 536; next OID: 17142
2007-05-24 22:53:22 LOG: database system is ready
2007-05-24 22:53:22 LOG: incomplete startup packet
2007-05-24 23:05:03 LOG: incomplete startup packet
2007-05-24 23:05:03 LOG: received fast shutdown request
2007-05-24 23:05:03 LOG: shutting down
2007-05-24 23:05:05 LOG: database system is shut down
2007-05-24 23:05:07 LOG: database system was shut down at 2007-05-24
23:05:05 CEST
2007-05-24 23:05:07 LOG: checkpoint record is at 0/9B1098
2007-05-24 23:05:07 LOG: redo record is at 0/9B1098; undo record is at
0/0; shutdown TRUE
2007-05-24 23:05:07 LOG: next transaction ID: 546; next OID: 17142
2007-05-24 23:05:07 LOG: database system is ready
2007-05-24 23:05:08 LOG: incomplete startup packet
Then I do these:
sudo dpkg-reconfigure tutos2
Document `TUTOS' is not installed, cannot remove.
Creating the POSTGRES TUTOS database...
----------------------------
HOST: localhost
PORT: 5432
DBUSER: www-data
DBNAME: tutos
----------------------------
createdb: could not connect to database template1: could not connect to
server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
Database tutos created !
createuser: could not connect to database template1: could not connect
to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
User www-data created !
---------------------------------------------------------------
To enable access to the tutos Database add something like
this to your [postgreshome]/data/pg_hba.conf file
---------------------------------------------------------------
host tutos [IP Addr of localhost] 255.255.255.255 trust
---------------------------------------------------------------
it is recommended to restart the database !
----------------------------------------------------------------
When using the PHP version of TUTOS please
ensure that your php/config.pinc files has the following entries
$tutos[dbname][0] = "tutos";
$tutos[dbhost][0] = "localhost";
$tutos[dbuser][0] = "www-data";
$tutos[dbpasswd][0] = "";
$tutos[dbtype][0] = 1 ;
$tutos[dbalias][0] = "Whatever you want";
$tutos[repository][0] = "the path to the file/document repository";
----------------------------------------------------------------
csanyipal@csanyi-pal:~$ sudo /etc/init.d/postgresql-7.4 restart
Restarting PostgreSQL 7.4 database server: main.
I think it is all OK, except that that I cant open in my browser the
webpage: localhost/tutos/php/admin/scheme.php
My browser wants to run it and not to open it. Why?
--
Regards, Paul Csányi
http://www.freewebs.com/csanyi-pal/index.htm
Reply to: