At this point you might want to edit the ini file to customise it for your needs. The second line is optional and makes a link to the ini file in /etc (you can find it at /etc/php.ini). Sudo cp php.ini-production /usr/local/lib/php.ini To copy your chosen file, do the following (from the source directory). The latter display many more errors and warnings and should (for security reasons) only be used in a development environment, as its name suggests. There are two supplied versions, one for production systems and one for development systems. The first step is to copy the PHP configuration file (php.ini) from the source distribution to where it will be read on Apache startup. The path is set to the prefix used in configure (Linux equivalent. Note: PHP_BINDIR is a value set on compile time. It's then just a matter of installing the files. This (depending on how fast your machine is) will take some time and will end up with the phrase Build complete. Once that bit is done, it's time to do the actual compiling and linking. Make sure you have added all the libraries described above (with apt-get). If you do get errors, it is most likely to be due to missing libraries. This should complete without errors and finishes with an obvious copyright notice in a box. #Install A2enmod Fedora fullTo get the full list of possibilities you can do. If you have special requirements you may need others. The minimum for Moodle 2 (and 1.9) is as follows. It also specified all the optional modules that will be compiled in. This digs around your system and creates specific make files based on your particular configuration. The next step is to run the 'configure' program. Place this in a suitable location in (probably) your home folder and unpack the file. The latest version can be downloaded from At the time of writing, this was 7.2.10 but new versions come out quite regularly. If you have not compiled anything from source before this can be fixed by a single command. Ubuntu does not have all the compilers, linkers and libraries you need in a standard installation. A Google search involving your Ubuntu version, the function and the word 'library' or 'development' will often turn up the correct package name. You may need to include other libraries if you add further options to your PHP build. Note that the above includes the clients for both the MySQL and PostgreSQL databases. Ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so Ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so You may also need to create the following symbolic links as root on Linux: If you would like a challenge, all of these can be downloaded as source packages and built from scratch but it is much easier to use the packaged versions. This aspect is what makes building PHP from source tricky. Many of these require development libraries to be available on the system before PHP is compiled. Moodle requires a significant number of optional PHP modules. The -dev package is required in order to build PHP. #Install A2enmod Fedora installTo install the package version, it's just Compiling from source is simple but you end up (using default settings) with a directory structure that is completely different from the Ubuntu packaged version. You can either install Apache from the Ubuntu packages (recommended) or compile it from source. If you already have PHP installed (as a package) you will need to remove it first: It is assumed that you will have a basic install of Ubuntu (10.04 in this case) without (specifically) PHP installed and possibly no Apache web server either.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |