GithubHelp home page GithubHelp logo

padcms-backend's Introduction

PadCMS backend

Requirements

  • Apache 2.x web server
  • PHP 5.3 with the following extensions:
    • PHP Data Objects (PDO) with MySQL and SQLite drivers
    • GD library of image functions
    • ZIP extension
    • ImageMagick is a native php extension to create and modify images using the ImageMagick API
    • [POSIX] (http://php.net/posix) This module contains an interface to those functions defined in the IEEE 1003.1 (POSIX.1) standards document which are not accessible through other means.
    • [PCNTL] (http://php.net/pcntl) Process Control support in PHP implements the Unix style of process creation, program execution, signal handling and process termination.
  • MySQL 5.x with the MyISAM storage engine
  • SQLite 3.x
  • [ImageMagick] (http://www.imagemagick.org/script/index.php) 6.7.x software suite to create, edit, compose, or convert bitmap images
  • PHING 2.4 - for configuration wizard and database deployment
  • PHPUnit 3.5 (or 3.6 with DbUnit 1.0.0) - optional

Installation

  • Install all required packages

      sudo apt-get install unzip git apache2 mysql-server php5 sqlite3 php5-mysql php5-sqlite php5-imagick php-apc php-pear php5-dev imagemagick optipng
    
  • Install PadCMSdraw util

    • Compile from sources

            mkdir /tmp/padcmsdraw && cd /tmp/padcmsdraw
            git clone git://github.com/padcms/padcms-draw.git .
            wget http://mupdf.googlecode.com/files/mupdf-thirdparty-2012-04-23.zip
            unzip mupdf-thirdparty-2012-04-23.zip
            make && sudo make install
      
    • Install from package

      • i386

                  mkdir /tmp/padcmsdraw && cd /tmp/padcmsdraw
                  wget http://dev.padcms.net/attachments/102/padcmsdraw_1.0-1_i386.deb
                  dpkg -i padcmsdraw_1.0-1_i386.deb
        
      • x64

                  mkdir /tmp/padcmsdraw && cd /tmp/padcmsdraw
                  wget http://dev.padcms.net/attachments/103/padcmsdraw_1.0-1_amd64.deb
                  dpkg -i padcmsdraw_1.0-1_amd64.deb
        
  • Install needed packages from PEAR

      sudo pear config-set auto_discover 1
      sudo pear upgrade-all
      sudo pear install --alldeps pear.phing.info/phing
      sudo pear install pear.phpunit.de/DbUnit-1.0.0
    
  • Create databases

      mysql -u root -proot -e 'create database padcms; create database padcms_test;'
    
  • Clone the latest stable release of PadCMS backend

      sudo mkdir /var/www/padcms
      sudo chown username:usergroup /var/www/padcms
      git clone git://github.com/padcms/PadCMS-backend.git /var/www/padcms/htdocs
      cd /var/www/padcms/htdocs
    
  • Prepare Apache virtual host

      sudo cp vhost.conf.sample /etc/apache2/sites-available/padcms
      sudo a2ensite padcms
      sudo a2enmod rewrite
      sudo apache2ctl restart
    
  • Bind host 'padcms.loc' to the 127.0.0.1 IP in /etc/hosts file

      sudo nano /etc/hosts
    

add to the end of file

    127.0.0.1    padcms.loc
  • Run phing configuration wizard in the padcms folder. You will be guided through few questions about system configuration. You can use default values or set specific. After configuration, the script will create a folders for temporary files and resources.

      phing init
    
  • Run build task to create the necessary tables in databases

      ./padcms build
      APPLICATION_ENV=test ./padcms build
    
  • Run the task manager daemon, it will run in the background after first run

      ./padcms manager
    
  • Add the PadCMS background tasks manager as cron job - we recommend to run task manager every 15 minutes to check whether the background process is not dead.

      */15 * * * * /var/www/padcms/htdocs/padcms manager > /dev/null 2>&1
    
  • Run tests (optional)

      ./padcms phpunitall
    
  • To access the backend as superuser open http://padcms.loc in you browser and use credentials:

      Login: admin
      Password: password
    

We strongly recommend to change password asap

padcms-backend's People

Contributors

arifken avatar padcms avatar pprishchepa avatar vladimir-doroshenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

padcms-backend's Issues

Shared hosting

This doesn't appear to work on standard shared hosting accounts.

There is no main index file and no php installed, its a shame because i would be interested in testing this out.

'padcms_test.term_entity' doesn't exist

Hi.

I've got latest version of the project and followed installation instructions (from README) to the letter.

When running test I get 5 errors all complaining about a non-existent table:

Base table or view not found: 1146 Table 'padcms_test.term_entity' doesn't exist

Is the database structure outdated?

Стандартный пароль

Привет, наверное не нашел. Какой стандартный пароль после установки backend'а ? Вероятно, можно изменить в sql.

Unknown column "type" in field list

I went through the "getting started" guide to install the backend http://dev.padcms.net/projects/padcms-bo/wiki/Install, which is pretty good (thanks).

All went well, I had to add the following instruction before running "sudo pear upgrade-all":

sudo apt-get install libpcre3-dev

I then started the User Guide, and it's not working for me. I tried adding a new application, and I get the following error:

"Database Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'type' in 'field list'"

I'm not yet familiar with the zend framework; what do I need to change to get this to work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.