Skip to content

Commit

Permalink
Merge pull request #3 from amarjeetkapoor1/odtphp
Browse files Browse the repository at this point in the history
script to setup certificate
  • Loading branch information
amarjeetkapoor1 committed Mar 30, 2016
2 parents 405d75b + 3968805 commit eb4837b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 36 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified CGS/odt/cert/README.md
100644 → 100755
Empty file.
Empty file modified CGS/odt/design/design1.odt
100644 → 100755
Empty file.
Empty file modified CGS/odt/design/design4.odt
100644 → 100755
Empty file.
Empty file modified CGS/uploads/csv/data/README.md
100644 → 100755
Empty file.
Empty file modified CGS/uploads/manual/cropped/README.md
100644 → 100755
Empty file.
45 changes: 9 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,25 @@ INSTALLATION/SETUP
This application is a portable application used to Generate Certificate for single candidate providing his/her details along with image,
As well as for Batch/Number of candidates by simply providing the CSV format file (containing details of every candidate) along with candidate images in a compressed (tar.gz or zip) folder.

Requirements
Requirements(automatically installed during setup)
------------
1. Apache web server


$ sudo apt-get install apache2 (if not installed)

2. php interpreter


$ sudo apt-get install php5 (if not installed)

2. Clone the project by using following command in terminal:

$ git clone https://github.com/GreatDevelopers/Certificate.git

Then move to the odtphp branch using the following command from terminal:

$ git checkout odtphp

In case Git is not installed then Install git using below command:

$ sudo apt-get install git

3. Change the permission of odtphp folder and its sub-directories to drwxrwxrwx


$ sudo chmod -R 777 /var/www/Certificate

4. Install the unoconv web service using the following command from the terminal:
3. unoconv
4. python3-uno

$ sudo apt-get update

$ sudo apt-get install unoconv

You can also install the dependencies if required like
Setup
-----
cd ../path/to/certificate/
sudo ./install.sh

$ sudo apt-get install python3-uno

Congratulations! You have successfully set it up.

Go to http://localhost/odtphp/CGS
Go to http://localhost/Certificate/CGS/

OR

http://localhost/~username/odtphp/CGS (if Usermode is enabled in apache configuration)
http://localhost/~username/Certificate/CGS/(if Usermode is enabled in apache configuration)

If you got an error like Abort pclzip.lib.php : Missing zlib extensions

Expand Down
8 changes: 8 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apt-get install apache2
apt-get install php5
apt-get install unoconv
apt-get install python3-uno
cp -rf ../Certificate/ /var/www/
cd /var/www
chown -R $USER:www-data /var/www/Certificate
chmod -R 755 /var/www/Certificate

0 comments on commit eb4837b

Please sign in to comment.