Setup apache server for labelme

I need to run a apache server locally in order to use the program labelme. However I'm not able to do it.

There is a description saying that I need to place my folder containing "index.html" inside /var/www/html.

However I need to run the website located in the local folder ~/libs/labelme.

I also followed this instruction from similar askubuntu-question. But it doesn't work for me. The browser just displays nothing when I try to reach that project-page.

I'm a novice in apache, so I don't even know if the problem lies with the way I configured apache or if the problem comes from labelme.

Any help would be appreciated

1

2 Answers

Found some better documented version of the labelme code with better documentation. These is the full list of options that one needs to make the apache server run correctly (modify /etc/apache2/apache2.conf)

 <Directory "/var/www/LabelMeAnnotationTool"> Options Indexes FollowSymLinks MultiViews Includes ExecCGI AddHandler cgi-script .cgi AllowOverride all Require all granted AddType text/html .shtml AddOutputFilter INCLUDES .shtml DirectoryIndex index.shtml </Directory>
cd /etc/apache2/sites-available/
nano 000-default.conf

search for DocumentRoot /var/www/html (ctrl+w type /var/www/html)

replace /var/www/html with /home/labelme move lableme to /home/ directory

save the file 000-default.conf (ctrl+x and the y > enter)

edit /etc/apache2/apache2.conf file

add below lines after:

<Directory /home/labelme/> Options Indexes FollowSymLinks AllowOverride None Require all granted
</Directory>

restart apache2 web server:

service apache2 restart

And enter below URL into your browser

or

OR

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like