This Repository is part of an Assignment of the course EE610 at EE Department, IIT Bombay.
The main goal of this is to make a small image editor tool.
This Code can perform the following tasks:
AJAX, POST, GET, CGI
There is nothing to get scared about these terms, they are just some fancy names.
You can refer this page for a basic introduction and working examples.
You can refer this page for more information.
You can refer this pgae for more information.
You can refer this page for more information.
I have tested this code in xubuntu 16.04 and ubuntu 16.04, but i am 99% sure that this will work in all ubuntu machines..
Following are the steps to be followed for using this code on a fresh machine
sudo apt install apache2
cd /var/www/html
git clone https://github.com/TummanapallyAnuraag/EE610_GUI.git gui
sudo a2enmod cgi
sudo service apache2 restart
<Directory "/var/www/html/gui">
AllowOverride All
</Directory>
sudo service apache2 restart
Check the CGI script working by going to http://localhost/gui/scripts/hello.py
But if you face any problems while any of the steps, you can debug them with help of next step
LogLevel debug
You can see the debug information in /var/log/apache2/error.log
This command comes in handy at times..
tail -f /var/log/apache2/error.log
Web Help: look in StackOverflow
Worst case scenario: You can always drop a mail to me. You can find my details here
a) Check if the folder images has 777 permissions. If not you can do so by using
sudo chmod -R 777 images/
The -R is used for recursion (folder within folder scenario)
Also change the owner to www-data
sudo chown -R www-data:www-data images/
b) The image upload size must be more than the permissible limit.
You can check and change this permissible limit in /etc/php/7.0/apache2/php.ini