E
E
Evgeny Solomin2014-08-20 16:52:43
linux
Evgeny Solomin, 2014-08-20 16:52:43

Installing php5 mysqli or source.list?

Good day to all.
My question will be in several parts. I ask you to treat my problem with understanding. I'm in the process of learning.
I installed Ubuntu server 12.10 for specific tasks to deploy a specialized web service.
Now to the point.
So I installed ubuntu server 12.10 in base config I ran apt-get update then apt-get upgrade. The result of the execution of these commands did not lead to success. I thought it was sources.list and tried to find information on how to make this list of servers to which it addresses up to date. As a result, I found the online service repogen.simplylinux.ch and there I formed a list of servers by selecting release 12.04 and ticking the first four blocks presented. After that I uploaded this list to the sources.list on the server and the apt-get update, apt-get upgrade command was successful with small errors with the IGN prefix in some cases, but at least something was updated.
Question number 1
Please tell me if my actions were correct when I performed this procedure? How to properly form this sources.list ?

The next task is to use php5-mysqli instead of php5-mysql. My logic was that in order to use php5-mysqli it must be installed. Next, I write apt-get install php5-mysqli and it gives me the following:
The php5-mysqli package is not available, but is listed in the dependency list of another package.
This may mean that the package is missing, outdated, or available from sources not mentioned in sources.list
However, the following packages may replace it:
* Some packages*
No installation candidate found for package php5-mysqli.

Question No. 2
How can I find out what exactly in one of the indicated places (in sources.list) there is a software package I need to install?

Of course, this may all sound silly to advanced users, but for me it's a dark forest.
+ Minor clarification. In order to use php5-mysqli you need to completely remove php5-mysql ???

Answer the question

In order to leave comments, you need to log in

3 answer(s)
1
1Michael1, 2014-08-20
@penzu

1) there shouldn't be any problems with turnips. the resource generates a normal sources.list, so no need to worry. in some cases, you need to add more repositories. this is done using add-apt-repository...
2) as mentioned above - mysqli is already in the php5-mysql package
in order to see if the extension is (and enabled) in php:
(if the line is displayed - it works)

Z
zorruch, 2014-08-20
@zorruch

I will answer some of the questions:
1) If the installation requires the removal of another package, apt will ask you about it (if the package clearly indicates a conflict with another package)
2) You can search for packages in the repository using apt-cache search <package name>
If the command apt-get upgrade fails, which means you have unmet package dependencies.

S
Sergey, 2014-08-20
Protko @Fesor

The php5-mysql package contains both mysql and mysqli and the PDO driver for mysql.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question