RasterShare is an open-source web content management System which is used by the photographers to host their website and blogs. It is a purpose-built, lightweight web content management system. Rastershare is built completely using PHP, HTML, CSS, and Jquery. The main feature of RaterShare is ease of use, hassle-free management of photography blogs and websites.
- Fedora 26 or higher or equivalent
- Xampp 7.16.0 or higher
OR
- PHP 7.1.6 or higher
- Mairadb 10.1.24 or higher
- phpMyAdmin 4.7.4 or higher
- Apache 2.4.27 or higher
- After installing a suitable version of XAMPP on your system which satisfies the specified hardware requirements. Create a new MySQL user and create a databases and grant all access the newuser.
- Download RasterShare by runnning the below given command:
git clone https://github.com/kshithijiyer/RasterShare.git
- Unzip the zip file in your document root folder.
- Now in the db_connection.php file change the parameter as per the ones configured as shown below:
#The host name of the database.
$host="localhost";
#The username of the database.
$username="uname";
#The password of the database.
$password="secret ";
#The database name.
$db_name="rastershare";
#The prefix to be added in front of the table.
$table_prefix="rs_";
#The salt to be added to the password.
$nacl="love the way you lie";
#The default username for admin.
$default_admin="rasteradmin";
- Now call the install.php script by opening the URL
/RasterShare/setup/install.php
in your browser. And note the password for the admin. - To populate the tables created in the database. Run the
cam_add.php
andphones_add.php
by going to their corresponding URL through the browser. You can add more entries by adding more names to cams.txt and phones.txt. - Now delete the setup folder by executing the following commands:
rm –rf *
cd ..
rmdir setup/
- Set the permissions for userdp and images folder by executing the following command:
Chmod 777 userdp
Chmod 777 images
- Now open the URL
hostname/RasterShare/
to see if everything is working properly or not.
Users can be of 2 types in any given RasterShare i.e there are only 2 user roles in a RasterShare System:
- Admin
- User
For more details please refer to the user manual.
Themes can be designed on top of anchors in RasterShare. An Anchor is a specialized PHP script which is used as an API to talk to the database. At a minimum level each theme should have:
- Index.php
- Theme.css
RasterShare has the following anchors:
- Anchor_image - This is used to retrieve one image from the database.
- Anchor_image_all - This is used to retrieve all the images of a particular user.
- Anchor_usermeta - This is used to retrieve metadata about the user form usermeta table.
- Anchor_postdata -This is used to retrieve all the data in a post.
Each anchor has a predefined set of a variables which holds the data for that anchor which are set when some designated functions are called.
For more details please refer to the techincal manual.
- Geany
- Sublime text
- Chromium (For testing:p)
RasterShare is built and distributed under Apache License 2.0.