slim-tools Composer - ./composer install php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php --filename=composer php -r "unlink('composer-setup.php');" - check version: php composer --version - run: php composer install - failed on php.ini Mongo extension - needed to install mongo - adding new namespace to autoload - copied: //need to add this path to the autoload - generate // added "Pages" to composer.json autoload section //- then ran: composer dump-autoload --no-scripts E.g. namespace Pages; NPM ( not seeing a node-modules folder ... may have to install the datepicker, etc manually - do it inside the "public" folder - npm install jquery-ui-droppable-iframe - npm install angularjs-datetime-picker - vulnerabilities found - run: "npm init " to create default package.json .. - - "npm audit fix" to attempt to fix these ) - npm install - need to install node and npm - curl -sL https://rpm.nodesource.com/setup_10.x | bash - - yum install -y nodejs Mongo - yum -y update - yum -y install gcc php-pear php-devel - pecl install mongodb - Error: "make" command not found - try: yum install build-essential - build-essentials not found - trying; yum groupinstall 'Development Tools' - this may install too much - try: yum install gcc gcc-c++ make - pecl install mongodb NOW WORKS!! - Build process completed successfully Installing '/usr/lib64/php/modules/mongodb.so' install ok: channel://pecl.php.net/mongodb-1.8.0 configuration option "php_ini" is not set to php.ini location You should add "extension=mongodb.so" to php.ini Wkhtmltopdf: I have the windows exe ... need to install on CentOs - I got the rpm (package manager) file from wkhtmltopdf.org - yum localinstall sample_file.rpm - "whereis wkhtmltopdf" - installed in /usr/local/bin/wkhtmltopdf GS - gs: command not found - yum install ghostscript Doctrine - I updated some entities, and may need to clear the entity cache - http://www.slimframework.com/docs/v3/cookbook/database-doctrine.html - php vendor/bin/doctrine orm:clear-cache:metadata - worked!! - set group of these to apache - Contracts/ContactFieldsEntityTrait.php - logs/ - var/ - public/files GIT - yum install git/ - .gitignore - /vendor/ #/pages/auth/ /misc/ /var/ /files/ **/node_modules/ /logs/* !/logs/README.md # Backup entities generated with doctrine:generate:entities command # - I'm removing this from the "ignore" because I added a base "Entity" class that all the entities extend #**/Entity/*~ - Setup - git init - edit the .gitignore - git add . - git commit - Created the slim-tools repo in bitbucket - from code: git remote add origin git@bitbucket.org:waynsley/slim-tools.git - uses the "ssh" url rather than the "https" url, because the https url will require login everytime you commit - if the url is already set to "https", we can update the url to use the ssh version - also ... it seems like we'll need a "key" with ssh - https uses username and password - git push -u origin master - may get error: git@bitbucket.org: Permission denied (publickey). - see: https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html - generate key: $ ssh-keygen - Add the key to the ssh-agent: $ ssh-add /root/.ssh/id_rsa - Add the public key to your Atlassian Account settings: - click user-icon -> settings -> ssh -> keys .. add public key - worked!! now successfully pushed Sendmail - tried: - php -r 'mail("waynsley@gmail.com", "test hostwinds smtp", "my test content");' - error: /usr/sbin/sendmail: No such file or directory - and: - yum install telnet - telnet localhost 25 ... telnet to smtp server? - yum install sendmail - sent php mail above ... - log: vi /var/log/maillog - Connection refused by [127.0.0.1] - may need to add options to : /etc/mail/sendmail.mc (hmmm... maybe don't edit this file) - also see: /etc/mail/sendmail.cf - MAYBE need to add entries to: /etc/mail/local-host-names ... ?? - see: https://pepipost.com/tutorials/install-sendmail-server-centos-7/