~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions 
      already in universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
    it is your first install then you need to "make install" as well)
280
280
 
281
281
13. cd ../php-5.x.y
282
 
14. cp php.ini-dist /usr/local/lib/php.ini
 
282
 
 
283
14. The PHP distribution provides two sample php.ini files, you can use them
 
284
    by
 
285
      cp php.ini-development /usr/local/lib/php.ini
 
286
    or
 
287
      cp php.ini-production  /usr/local/lib/php.ini
 
288
 
 
289
    If you choose one of these php.ini files be certain to read the list
 
290
    of changes within, as they affect how PHP behaves.
283
291
 
284
292
15. You can edit /usr/local/lib/php.ini file to set PHP options.
285
293
    Edit your httpd.conf or srm.conf file and add:
451
459
 
452
460
13. Setup your php.ini
453
461
 
454
 
    cp php.ini-dist /usr/local/lib/php.ini
 
462
    The PHP distribution provides two sample php.ini files, you can use them
 
463
    by
 
464
      cp php.ini-development /usr/local/lib/php.ini
 
465
    or
 
466
      cp php.ini-production  /usr/local/lib/php.ini
 
467
 
 
468
    If you choose one of these php.ini files be certain to read the list
 
469
    of changes within, as they affect how PHP behaves.
455
470
 
456
471
    You may edit your .ini file to set PHP options.  If you prefer having
457
472
    php.ini in another location, use --with-config-file-path=/some/path in
458
473
    step 10.
459
474
 
460
 
    If you instead choose php.ini-recommended, be certain to read the list
461
 
    of changes within, as they affect how PHP behaves.
462
 
 
463
475
14. Edit your httpd.conf to load the PHP module.  The path on the right hand
464
476
    side of the LoadModule statement must point to the path of the PHP
465
477
    module on your system.  The make install from above may have already
858
870
   Example 2-6. OpenBSD Package Install Example
859
871
# pkg_add php4-core-4.3.8.tgz
860
872
# /usr/local/sbin/phpxs -s
861
 
# cp /usr/local/share/doc/php4/php.ini-recommended /var/www/conf/php.ini
 
873
# cp /usr/local/share/doc/php4/php.ini-development /var/www/conf/php.ini
862
874
  (add in mysql)
863
875
# pkg_add php4-mysql-4.3.8.tgz
864
876
# /usr/local/sbin/phpxs -a mysql
1242
1254
       back to the root of the Apache source directory and run the above
1243
1255
       configure command again. That'll bring the link table up to date.
1244
1256
       Run make and make install again.
1245
 
    7. Copy and rename the php.ini-dist file to your bin directory from
1246
 
       your PHP 4 source directory: cp php.ini-dist /usr/local/bin/php.ini
1247
 
       or (if your don't have a local directory) cp php.ini-dist
1248
 
       /usr/bin/php.ini.
 
1257
    7. Copy and rename the php.ini-development or php.ini-production file to
 
1258
       your bin directory from your PHP 4 source directory:
 
1259
       cp php.ini-development /usr/local/bin/php.ini or (if your don't have a
 
1260
       local directory) cp php.ini-development /usr/bin/php.ini.
1249
1261
     __________________________________________________________________
1250
1262
 
1251
1263
Compiling for MacOS X Client
1735
1747
   example, set it with something like:
1736
1748
   --with-config-file-path=/etc
1737
1749
 
1738
 
   And then you would copy php.ini-dist from the distribution to
1739
 
   /etc/php.ini and edit it to make any local changes you want.
 
1750
   And then you would copy php.ini-development or php.ini-production from the
 
1751
   distribution to /etc/php.ini and edit it to make any local changes you want.
1740
1752
   --with-config-file-scan-dir=PATH
1741
1753
 
1742
1754
   On Windows the default path for the php.ini file is the Windows