1 |
Mick wrote: |
2 |
> 2010/9/1 Aniruddha<mailingdotlist@×××××.com>: |
3 |
> |
4 |
>> On Tuesday 31 August 2010 20:30:55 Mick wrote: |
5 |
>> |
6 |
>>>> But this is apparently not the proper way, because after |
7 |
>>>> restarting the server, apache does not show my web-page |
8 |
>>>> reporting there is no such a database. I checked it with |
9 |
>>>> phpmyadmin, and really, there is absolutely no database |
10 |
>>>> in mysql! |
11 |
>>>> |
12 |
>>>> I quickly restored backup version which I have done just |
13 |
>>>> before trying mysql-update, so my web-site is up and running. |
14 |
>>>> Now I would like to update mysql the right way, I but do not |
15 |
>>>> know how to do it... |
16 |
>>>> |
17 |
>>> Hi Jarry, |
18 |
>>> |
19 |
>>> Some years ago I ran into some similar problem, I can't recall exactly |
20 |
>>> what. Lost in folklore (wiki?) were some instructions to first stop mysql |
21 |
>>> before you update it and I have been following them since. |
22 |
>>> |
23 |
>>> I stop apach& mysql, run the update, dispatch-conf and then restart them |
24 |
>>> both. Haven't had problems since. |
25 |
>>> |
26 |
>>> There may be a better way for doing this - in which case others who know |
27 |
>>> better will hopefully chime in. |
28 |
>>> |
29 |
>> I'm curious as well. Imo it shouldn't be necessary to stop mysql server for |
30 |
>> each update. |
31 |
>> |
32 |
> Actually, this problem may be more sinister ... a bug? |
33 |
> |
34 |
> I also updated to the latest stable and as soon as I tried to restart |
35 |
> apache I got: |
36 |
> ========================================= |
37 |
> # /etc/init.d/apache2 start |
38 |
> * apache2 has detected an error in your setup: |
39 |
> apache2: Syntax error on line 155 of /etc/apache2/httpd.conf: Syntax error on |
40 |
> line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load |
41 |
> /usr/lib/apache2/modules/libphp5.so into server: libmysqlclient.so.15: cannot |
42 |
> open shared object file: No such file or directory |
43 |
> ========================================= |
44 |
> |
45 |
> What the ... ? |
46 |
> |
47 |
> Line 155 of my /etc/apache2/httpd.conf says: |
48 |
> |
49 |
> Include /etc/apache2/modules.d/*.conf |
50 |
> |
51 |
> Line 4 of /etc/apache2/modules.d/70_mod_php5.conf, says: |
52 |
> |
53 |
> LoadModule php5_module modules/libphp5.so |
54 |
> |
55 |
> Also, I seem to have modules/libphp5.so and is world readable: |
56 |
> |
57 |
> $ ls -la /usr/lib/apache2/modules/libphp5.so |
58 |
> -rw-r--r-- 1 root root 5720576 Aug 13 20:09 /usr/lib/apache2/modules/libphp5.so |
59 |
> |
60 |
> |
61 |
> I am downgrading now before a lynch mob arrives, but has anyone else |
62 |
> run into this problem? |
63 |
> |
64 |
> PS. I'm running www-servers/apache-2.2.16 |
65 |
> |
66 |
|
67 |
I'm no expert on this package so take this with a grain of salt. Mine |
68 |
just updated and portage said to run "emerge @preserved-rebuild" which I |
69 |
did. Thing is, one of the packages failed to emerge so here I sit. The |
70 |
error says something is missing which is the same reason the "emerge |
71 |
@preserved-rebuild" won't finish. |
72 |
|
73 |
So, looks like you need to rebuild some stuff but don't hold your breath |
74 |
on being able to. There is a thread on the forums already if you want |
75 |
to monitor it. |
76 |
|
77 |
http://forums.gentoo.org/viewtopic-t-842671.html |
78 |
|
79 |
Dale |
80 |
|
81 |
:-) :-) |