Php5 en mod (php7-also)

After installing php modules, some are not enabled by default upon installation.

One of those modules is php5-imap and php5-mcrypt is another one.

You have to enable them with php5enmod command.

php5enmod works just like the way a2enmod works for Apache.


 

… php5dismod, just like a2dismod works.

 

  • enabled php modules with…

 

 

php -m” list,

Php Opcache (Php performance Increase – Cache Optimization)

A few words about the OPcache.

OpCode Cache“. “APC” is one of them. “Zend OPcache” is another one; and this Zend OPcache (or OPcache for short) is built into php 5.5, not APC.

The workaround is to disable the OPcache, which is enabled by default. It is a setting in php.ini file.

The question has been raised if disabling the OPcache before installation and enabling it right after would be good enough. While I don’t have a solid answer for that, it should be good enough to keep it disabled during installation and upgrades. I permanately turned it off on my test site.

 

if we can disable the OPcache per site basis. Like disabling it for a DomainCluster  sites and enabling it for others.

Yes,  can do that.

  • Developer can disable OPcache per site basis
  • Developer cannot enable it whenever Developers want it;
  • It should be enabled by default.
  • If developer has disabled it through php.ini file, then you need to revert it back.

Placing below line in your “settings.php” file will disable it.

 

 apache config should

has“AllowOverride All” in order to make the .htaccess method work; which is also a requirement for installing & running other properties.

Php – SecLib – Encryption

 

 

 

Reference : http://phpseclib.sourceforge.net/

Encoding Codes

  • cp1250 (Central Europe)
  • cp1251 (Cyrillic)
  • cp1252 (Western Europe)
  • cp1253 (Greek)
  • cp1254 (Turkish)
  • cp1255 (Hebrew)
  • cp1257 (Baltic)
  • cp1258 (Vietnamese)
  • cp874 (Thai)
  • ISO-8859-1 (Western Europe)
  • ISO-8859-2 (Central Europe)
  • ISO-8859-4 (Baltic)
  • ISO-8859-5 (Cyrillic)
  • ISO-8859-7 (Greek)
  • ISO-8859-9 (Turkish)
  • ISO-8859-11 (Thai)
  • ISO-8859-15 (Western Europe)
  • ISO-8859-16 (Central Europe)
  • KOI8-R (Russian)
  • KOI8-U (Ukrainian)

Example PHP usage

 

PHP xdebug install

First of all install the  php-devel ,   or php56w-devel

 

Laravel installation – Laravel yukleme

Download the laravel package from  GIT .

install it  with composer ,

 

Then  create   project 

Then  give the all of  permissions  to read write  LOGS !!!

 

 

 

Php show errors