From: Szilard B. <sz...@in...> - 2001-04-19 20:56:31
|
Hi, After installing phpwiki and using it the first time I got the following error message: Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/bokros/pub/phpwiki/lib/mysql.php on line 34 WikiFatalError Cannot establish connection to database, giving up. MySQL error: Now the mysql.sock is not in tmp, it is in /var/lib/mysql/ Where is the problem: at php, at mysql at apache or something in phpwiki???? Where should I set the path for the sock? Thanks if any answer Szilard |
From: Bernhard K. <ber...@mn...> - 2004-09-01 08:26:56
|
Hi, all around after installing phpwiki with mysql I got to start it. However it looks still a little strange: /usr/share/phpwiki/lib/Template.php:23: Warning[2]: fread(): supplied argument is not a valid stream resource /usr/share/phpwiki/lib/Template.php:24: Warning[2]: fclose(): supplied argument is not a valid stream resource PageGroupTestFour von MIME-Datei /usr/share/phpwiki//pgsrc/PageGroupTestFour neue Seite - in der Datenbank gespeichert als Version 1. FullTextSearch von MIME-Datei /usr/share/phpwiki//pgsrc/FullTextSearch neue Seite - in der Datenbank gespeichert als Version 1. WabiSabi von MIME-Datei /usr/share/phpwiki//pgsrc/WabiSabi neue Seite - in der Datenbank gespeichert als Version 1. CommentPlugin von MIME-Datei /usr/share/phpwiki//pgsrc/CommentPlugin neue Seite - in der Datenbank gespeichert als Version 1. GoodStyle von MIME-Datei /usr/share/phpwiki//pgsrc/GoodStyle neue Seite - in der Datenbank gespeichert als Version 1. and further entries. Please could you point me to the error! mnewiki is the supposed name of the wiki and mnewiki is also the mysql database name. when I klick e.g. the PageGroupTestFour entry I get http://localhost/mnewiki/mnewiki?pagename=PageGroupTestFour and not found, which is correct since the URL should be localhost/mnewiki/?pagename=PageGroupTestFour. In index.php the only place of mnewiki is 'dsn' => 'mysql://mnewikiuser:secret@localhost/mnewiki', where mnewiki is the name of the mysql table while mnewiki is also the subdirectory with index.php. changing the subdirectory name mnewiki to wiki results in: /usr/share/phpwiki/lib/Template.php:23: Warning[2]: fread(): supplied argument is not a valid stream resource /usr/share/phpwiki/lib/Template.php:24: Warning[2]: fclose(): supplied argument is not a valid stream resource /usr/share/phpwiki/lib/Template.php:23: Warning[2]: fread(): supplied argument is not a valid stream resource /usr/share/phpwiki/lib/Template.php:24: Warning[2]: fclose(): supplied argument is not a valid stream resource /usr/share/phpwiki/lib/Theme.php:195: Notice[1024]: templates/browse.tmpl: not found /usr/share/phpwiki/lib/Theme.php:195: Notice[1024]: templates/html.tmpl: not found the Pages as in the above examples are no longer shown. Please help. Bernhard |
From: Bernhard K. <ber...@mn...> - 2004-09-01 09:19:24
|
On Wed, 01 Sep 2004 10:26:51 +0200, Bernhard Kleine wrote: > Hi, all around > > after installing phpwiki with mysql I got to start it. However it looks > still a little strange: sorry I left out some information debian sarge with apache2, php4, libapache2-mod-php or like phpmyadmin (working properly), and mysql all from debian mirrors. last version in testing/sarge apache 2.0.50 php 4.3.4 phpwiki 1.3.7 mysql 3.23.56 Bernhard |
From: Matthew P. <mp...@he...> - 2004-09-01 10:08:30
|
On Wed, Sep 01, 2004 at 10:26:51AM +0200, Bernhard Kleine wrote: > after installing phpwiki with mysql I got to start it. However it looks > still a little strange: >=20 > /usr/share/phpwiki/lib/Template.php:23: Warning[2]: fread(): supplied arg= ument is not a valid stream resource >=20 > /usr/share/phpwiki/lib/Template.php:24: Warning[2]: fclose(): supplied ar= gument is not a valid stream resource >=20 > PageGroupTestFour > von MIME-Datei /usr/share/phpwiki//pgsrc/PageGroupTestFour neue Seite= - in der Datenbank gespeichert als Version 1. > FullTextSearch > von MIME-Datei /usr/share/phpwiki//pgsrc/FullTextSearch neue Seite - = in der Datenbank gespeichert als Version 1. > WabiSabi > von MIME-Datei /usr/share/phpwiki//pgsrc/WabiSabi neue Seite - in der= Datenbank gespeichert als Version 1. > CommentPlugin > von MIME-Datei /usr/share/phpwiki//pgsrc/CommentPlugin neue Seite - i= n der Datenbank gespeichert als Version 1. > GoodStyle > von MIME-Datei /usr/share/phpwiki//pgsrc/GoodStyle neue Seite - in de= r Datenbank gespeichert als Version 1. >=20 > and further entries. Please could you point me to the error! >=20 > mnewiki is the supposed name of the wiki and mnewiki is also the mysql > database name. when I klick e.g. the PageGroupTestFour entry I get=20 >=20 > http://localhost/mnewiki/mnewiki?pagename=3DPageGroupTestFour >=20 > and not found, which is correct since the URL should be > localhost/mnewiki/?pagename=3DPageGroupTestFour. > > sorry I left out some information > > debian sarge with apache2, php4, libapache2-mod-php or like > phpmyadmin (working properly), and mysql=20 > > all from debian mirrors. last version in testing/sarge=20 >=20 > apache 2.0.50 > php 4.3.4 > phpwiki 1.3.7 > mysql 3.23.56 Did you install PHPWiki from the Debian package, and if so, which debian revision was it? Not that any of them have exhibited this sort of problem, but it's nice to know. What other modifications did you make to the installation in order to make it produce hyperlinks containing pagename? I guess it might be an Apache2 artifact, but the default install isn't supposed to do that -- the links should be localhost/mnewiki/PageGroupTestFour. - Matt |