PHP Installation Curl

Source: Internet
Author: User

One. Use the TAB key. Enter a part, press two times tab to see what you should be

Two. Then I will .... But it's jammed.

Three. It is obvious that the source of the software is out of the question. Because apt automatically analyzes the dependencies of a package, it cannot be installed automatically because it cannot find the package that Php-curl depends on. This simple, add software source who won't do it:

Make a xxx.list here and write a sentence in it:

Deb/httpcz.archive.ubuntu.com/ubuntu wily-updates Main

I learned from this website that the source of the software: http://packages.ubuntu.com/wily-updates/all/php-pear/download

Four. The configuration under Ubuntu has always been the same:

1. You can change the program's default master profile by changing it. Add a few words in the inside, and change a few words, just fine.

2. This master profile will often automatically execute a sub-profile under a folder

3. You can put the sub-configuration file where you want to put it, and then ln-s desfile sourcefile link to the secondary configuration folder. It is important to note that links do not chain empty, or the program restarts, the initial configuration, you will encounter a bug, unable to start.

Here, for example, add the sentence at the end of the main configuration file/etc/apt/source.list. deb/httpcz.archive.ubuntu.com/ubuntu wily-updates Main is also possible.

For another example, look at the directory structure of ETC/PHP5. To ask me how I generated it, look at my little work: Shell tree directory, just 20 lines of shell code can be implemented.

When configuring the module, you can configure it in php.ini (php.ini several? Which one, with phpinfo () can be viewed). This php.ini is the main configuration file. The secondary configuration file is Mods-available, and the module inside is a sentence Extension=*.so

Php5├─mods-available│├─mcrypt.ini│├─readline.ini│├─curl.ini│├─opcache.ini│├─mysql.ini│├─pdo.ini│├─mysqli.ini│ ├─pdo_mysql.ini│├─gd.ini│└─json.ini├─cgi│├─php.ini│└─conf.d│   ├─20-gd.ini│   ├─10-pdo.ini│   ├─05-opcache.ini│   ├─20-mysql.ini│   ├─20-mysqli.ini│   ├─20-pdo_mysql.ini│   ├─20-readline.ini│   ├─20-curl.ini│   └─20-json.ini├─cli│├─php.ini│└─conf.d│   ├─20-gd.ini│   ├─10-pdo.ini│   ├─05-opcache.ini│   ├─20-mysql.ini│   ├─20-mysqli.ini│   ├─20-pdo_mysql.ini│   ├─20-readline.ini│   ├─20-curl.ini│   └─20-json.ini└─apache2  ├─php.ini  └─conf.d    ├─20-gd.ini    ├─10-pdo.ini    ├─05-opcache.ini    ├─20-mysql.ini    ├─20-mysqli.ini    ├─20-pdo_mysql.ini    ├─20-readline.ini    ├─20-curl.ini    └─20-json.ini

It is better to create a new file in the sub-configuration folder, clearer, and easily deleted.

=====================

Five. Remember the following process:

Add a software source (which is the process above)

Update source, i.e. let apt Package Manager re-establish dependency graph, let apt read config file: sudo apt-get update

This allows you to install the software and upgrade the software: sudo apt-get upgrade

Apt-get remove xxxx is the uninstall package, do not delete the package so Lai's package, do not delete the configuration file (when you unload the Shigeyasu, also follow the original configuration)

Apt-get remove XXXX--purge Remove the package and completely remove all configuration

Apt-get autoremove xxxx Delete package and its dependencies

Apt-get clean Delete files downloaded at/tmp under install package

Apt-get Update Software source

Apt-get Upgrade Update Software

Software Source: In fact, Ubuntu maintains multiple lists on the web, each of which has a list of available resources. The URL of this list is constant, but the content on the URL is changed, so you should update the package supported on the list by Apt-get update.

Six. Change the configuration and don't forget to restart

I'm using Apache, so I'm going to restart this server: service apache2 restart

Many software read settings are only in the software startup period, so it is reasonable to restart.

However, some software will have to be restarted after a period of memory leaks, which should not be done.

PHP Installation Curl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.