forked from srsree/OurBank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
76 lines (62 loc) · 3.56 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Follow this procedure to run our Application “Ourbank”
Here the Procedure is applicable only to linux Operating System
1.Download the Application from our website (http://ourbank.in/download)
2.Downloaded file may be in tar format or zip format . So extract the file
3.Put that application into /var/www in any name (Here project avail in ourbank) you can rename it as what you like
4.Now you go to https://www.zend.com/en/user/ and create user account
5.After getting login page goto this url http://www.zend.com/en/community/downloads and download the Zend Framework 1.11 full (recommended) [Library file]
6.Extract the downloaded library file
6.put the downloaded file into /var/www/ourbank /library
7.Now copy the zend folder from the downloaded library file and paste it inside the library folder of our application
8.open your phpmyadmin page and create new database and import the downloaded Database and keep in mind what database name you given
9.Now go to application.ini file which is in /var/www/ourbank(your application name)/application/configs/application.ini and give the database name and mysql username , password
10. resources.db.params.username = root (type new user name)
11. resources.db.params.password = root (type password of new username)
12. resources.db.params.dbname = ourbank(your database name)
Now you have to give the read and write permission to that application . There are two ways to give the permission one is manually other one is through Terminal
Manual method :
-> Go to home folder & then /var/www/ & properties by right click the (ourbank) application now you can see permissions as a one of the tab , just click that and chose respective permission mode as given below
-> For owner :
Folder Access : Created and deleted files
File Access : Read and write
-> Now you enable the checkbox which has “Allow executing file
as program”
-> Then click the button which has “Apply Permissions to Enclosed Files”
(note: if not a root user, please use “sudo” before command)
Through Terminal :
Type this command's in terminal
-> cd var/www
-> sudo chmod -R 777 Ourbank(Our Application File name)
-> cd /etc/apache2/sites-enabled/
-> sudo gedit 000-default
After given system password 000-default window will open
On that code you have to change the permission
Replace AllowOverride All instead of AllowOverride none
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
-> /etc/init.d/apache2 restart
-> a2enmod rewrite
-> /etc/init.d/apache2 restart
Now the Application is ready to use ..
go to your browser and type http://localhost/ourbank/public
default username and password is admin admin
and continue to using the application
Windows Installation:
1. Download WAMP from http://www.wampserver.com/en/download.php
2. Install the Setup file, if successful, you should be able to access default WAMP page at http://localhost
3. By Default, WAMP sets webroot as C:/wamp/www, Copy Ourbank Application to the folder
4. Import sql file using phpmyadmin, default mysql access(in WAMP) will be
user: root
nopassword
5. Update application/configs/application.ini with the mysql access
6. Edit php.ini and turn short_tags On
7. In apache.conf, search for '<Directory C:\wamp\www>', check if AllowOverride All is there.
8. Enable mod_rewrite in Apache.
(Steps 6,7,8 can be carried out by right-clicking on WAMP system tray icon)
9. Just for sanity, Restart WAMP services.
10. Browse