WordPress setup

  1. Setup direct updates omitting FTP
  2. define('FS_METHOD','direct');

    Change owner

  3. chown -Rv apache:apache /var/www/wordpress/
  4. Correct permissions for directories and files
  5. find /var/www/wordpress/ -type f -exec chmod 644 {} \;
    find /var/www/wordpress/ -type d -exec chmod 755 {} \;

    Selinux

  6. chcon -t httpd_sys_rw_content_t /var/www/wordpress/ -R
    setbool -P httpd_can_sendmail=1

     

No Comments Wordpress

Use ZF2 classes in your app

<?php

ini_set('include_path', '/usr/local/zendsvr6/share/ZendFramework2/library');

require_once 'Zend/Loader/StandardAutoloader.php';

$loader = new Zend\Loader\StandardAutoloader(array('autoregister_zf' => true));
$loader->register();

References:

https://zend18.zendesk.com/hc/en-us/articles/222086648-Use-Framework-s-SMTP-Transport-instead-of-mail-on-IBM-i

No Comments PHP, Zend

Intro to Vagrant

vagrant package --base="Apigility - CentOS 7.4" --output=7CentPHPiAPI.box
$ vagrant ssh-config
$ vi ~/.ssh/config

Check for SSH keys on both places.

References:

https://stackoverflow.com/questions/22922891/vagrant-ssh-authentication-failure

No Comments Uncategorized