While building the various ports you should accept all default configuration options unless otherwise instructed. Before we proceed, however, we need to add a configuration option so that PHP build includes support for the Apache server. Now proceed with building the port: make install clean. This configuration is suitable for development purposes, but NOT necessarily for production purposes. Enable Apache in rc. You see your web server working by browsing the following URL through your favourite web browser.
Install PHP 5. Once the above packages are installed, copy the production PHP configuration to the default location of php. Run the following command for same.
Run the following command to edit Apache configuration. If you do not have nano installed, you can run pkg install nano. Find the following lines:. Add index. Once the configuration is updated, it should look like:. You can install phpMyAdmin directly by running the following command. The above command will download and install phpMyAdmin. Log in using the root username and password which you have set earlier.
Some formatting updates. Changed procedure to install from Ports Collection rather than build from source tarballs.
Updated for FreeBSD 5. Fixed a couple of grammatical errors. Fixed mistake in command line to make symbolic link for MySQL install. Alternatively you could simply install php70 from packages instead of ports. It would seem that there is some kind of problem with symfony. When I run pkg inf grep symfony, I get pear-channel-symfony Your email address will not be published. Skip to content — The steps in this post were amended to address changes in recent versions of software.
The versions of software discussed in this post are as follows: FreeBSD DirectoryIndex index. Options None. AllowOverride None. Require all granted. ServerName localhost ServerName localhost :
0コメント