Page 1 of 1

apt-get install errors (for php5-sqlite) - b3 v2.2 bug?

Posted: 12 Nov 2010, 11:33
by theWebalyst
I have some errors during an apt-get and wonder if they are b3 v2.2 bugs.

I had earlier re-imaged b3 to v2.2 and tried "apt-get install php5-sqlite" without success which I decided was probably because I was going ahead before the b3 repositories were in place. So, just now (having seen the v2.2 release announcement) I ran update which successfully updated (four of) my packages, and then re-tried the install of php5-sqlite (see below).

Code: Select all

# apt-get install php5-sqlite
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libclass-trigger-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libsqlite0
The following NEW packages will be installed:
  libsqlite0 php5-sqlite
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 222kB of archives.
After this operation, 594kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://b3.update.excito.org/ upstream_squeeze/main libsqlite0 armel 2.8.17-6 [174kB]
Get:2 http://b3.update.excito.org/ elvin/main php5-sqlite armel 5.3.2-1ex1 [48.1kB]
Fetched 222kB in 1s (185kB/s)
Selecting previously deselected package libsqlite0.
(Reading database ... 38513 files and directories currently installed.)
Unpacking libsqlite0 (from .../libsqlite0_2.8.17-6_armel.deb) ...
Selecting previously deselected package php5-sqlite.
Unpacking php5-sqlite (from .../php5-sqlite_5.3.2-1ex1_armel.deb) ...
Processing triggers for libapache2-mod-php5 ...
dpkg: version '/etc/php5/conf.d' has bad syntax: invalid character in version number
Reloading web server config: apache2apache2: apr_sockaddr_info_get() failed for b3
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
.
Setting up libsqlite0 (2.8.17-6) ...
Setting up php5-sqlite (5.3.2-1ex1) ...
Looking at this it is certainly better than I was getting before and it appears may have successfully installed php5-sqlite. However the errors are worrying so I wonder if this is an excito issue, and also whether or not I need be concerned.

Any help appreciated.

Mark

Re: apt-get install errors (for php5-sqlite) - b3 v2.2 bug?

Posted: 13 Nov 2010, 03:20
by Ubi
as far as I can tell these messages are warnings rather than errors. The servername warning is quite common.

Ubi

Re: apt-get install errors (for php5-sqlite) - b3 v2.2 bug?

Posted: 13 Nov 2010, 09:39
by theWebalyst
Thanks Ubi. Its reassuring to hear that the server name issue is probably ok. I thought that might be so.

I think the line:

Code: Select all

Reloading web server config: apache2apache2: apr_sockaddr_info_get() failed for b3
may indicate a failure in the installation (perhaps as a result of the preceding one about invalid character).

Anyway, whether it is connected with these message or not, it appears that sqlite is not loaded. I even restarted B3 to ensure that the web server was restarted, but running PHP's info() function shows that sqlite is not enabled.

I am assuming that I shouldn't need to do anything else (e.g. edit the php.ini file) to enable the package. It occurs to me that the invalid character error may mean that this and other parts of the installation have not been done by the script, but I have not investigated this yet.

So I remain interested to hear definitively whether or not the errors in my original post are B3 v2.2 bugs?

Thanks,

Mark

Re: apt-get install errors (for php5-sqlite) - b3 v2.2 bug?

Posted: 14 Jan 2011, 11:31
by B3M
I get the same error with php5-pgsql.

“dpkg: version '/etc/php5/conf.d' has bad syntax: invalid character in version number”

phpinfo(); shows that /etc/php5/apache2/conf.d/pdo_pgsql.ini is not parsed.

Update: a simple

Code: Select all

sudo cp /etc/php5/conf.d/* /etc/php5/apache2/conf.d/
fixed the problem for me.