Install PHP 5. 3. Lighttpd On Debian (Lenny) With Imap, My. SQL, Sqlite. 3 And Image. Magick Support. This tutorial covers the setup of PHP 5. Lighttpd on Debian (lenny) with imap, mysql, mysqli, sqlite. Image. Magick and mycrypt support.
For this tutorial I will assume you are logged in as root this is not advised. First we need to install the webserver: aptitude install lighttpd. Now we install the packages needed for mysql and mysqli support. You will be promoted to enter a mysql root password - please use a strong password. Next install some packages php needs to compile. Install packages required for imap support. You will be promoted to enter a domain for Kerberos - normal practice is to set this as the domain name of your server in uppercase. First make sure you are in your home directory. Download the php- 5. Once the file is done downloading extract the file into your home directory: tar - xvf php- 5. We are going to add support for Image. Magick. To do this we add the pecl package into the source code so it can be included on compile. Please note Image. Magick can be added after compile and loaded dynamically via the php. For more information on this method see http: //uk. Change directory to the etc directory in your php source directory. You Google and find that there IS an ubuntu launcher as a dev: http:// Install libzip: sudo apt-get install libzip 2). Sudo apt-get install liblua5.1-0 libzip1 libmysqlclient15off. This is where php looks for pecl packages: cd ~/php- 5. Download, extract and rename the Image. Magick package: wget http: //pecl. Change back to the root of the source directory: cd ~/php- 5. We now need to generate a new config file that takes into account the addition of Image. Magick. First remove the old config file: rm configure. Next run the buildconf tool to generate a new config file. You will see some warnings - they can be safely ignored./buildconf - -force. We can now run the configure command./configure - with- mysql=/usr - with- mysqli=/usr/bin/mysql.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2017
Categories |