Installing php extension




















The procedure is very similar to what we already did on Nitrous. You can easily derive installation instructions from this tutorial and apply them to other distros. Immediately after running a new Homestead box, you should be able to do this:.

Now vagrant ssh into the VM, and execute the following commands:. To build extensions from source, we need the PHP dev tools installed on our machine, as well as a compiler that can produce the extension file.

There are two types of extensions you can install: bundled with PHP but not installed by default, and third party extensions. In there, make a downloads folder, and cd into it. From the System Properties window, click on the Advanced tab, and then click on the Environment Variables button at the bottom. Select the Path variable from the System Variables section, and then click on Edit.

Figure 2: Edit System Variable. Figure 4: Handler Mappings. Type the following information into the appropriate text boxes, and then click OK. Figure 5: Add Script Map. In the left panel, click on your server's hostname , and then double-click on the Default Document icon. Enter index. Enter default. Figure 6: PHP information page. It is important to determine which extensions are needed by the applications that will be running and then to limit the installed extensions to only those.

For a typical open-source application installation, for example, the following extensions are installed:. The Php. Below are a number of settings for the Php. Figure 7: Permissions for session folder. Open php. For core extensions, or if you cant find any on pecl. If you have the compiler, then you can at least compile an extension if you have the source. Otherwise you're stuck with trying to locate a binary distribution like me.

This should do it. Otherwise you should probably search for an in-depth guide on manual installation. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 13 years, 2 months ago. Active 4 years ago. Viewed 32k times. Improve this question. Add a comment. Active Oldest Votes.



0コメント