Hi guys, I went back to the original installation guide and re-configured the apache part. However when I $ a2ensite tpp-4.6.2 I got the following output: root@liam-Y500:~# a2ensite tpp-4.6.2 ERROR: Site tpp-4.6.2 not properly enabled: /etc/apache2/sites-enabled/tpp-4.6.2 is a real file, not touching it
I'm not sure what this means though. Busy looking into it and will give feedback when I have a clearer picture... On 21 April 2013 22:49, Jimmy Eng <jke...@gmail.com> wrote: > Apache2 is a little foreign to me. I've only setup one apache2/TPP server > which I don't have easy access to in order to take a look. See if this > link helps you: > > > http://serverfault.com/questions/135993/how-do-i-change-the-document-root-of-a-linux-apache-server > > > On Sun, Apr 21, 2013 at 1:27 PM, Liam Bell <bell.l...@gmail.com> wrote: > >> Hi Jimmy, >> >> I set SetEnv WEBSERVER_ROOT /var/www in my >> /etc/apache2/sites-available/tpp-4.6.2 >> But when I checked for what my DocumentRoot variable was set to in my >> apache2.conf file but there was no variable for this set in that file. >> Where should this be set? >> >> Thanks for your help so far, I appreciate it. >> >> >> On 21 April 2013 21:48, Jimmy Eng <jke...@gmail.com> wrote: >> >>> Liam, >>> >>> Here's a snippet of what you posted 3 days ago. The entry "SetEvn >>> WEBSERVER_ROOT". Set this to the same thing you have DocumentRoot set as >>> in apache2.conf. >>> >>> >>> > On Thu, Apr 18, 2013 at 2:08 PM, Liam Bell <bell.l...@gmail.com> >>> wrote: >>> >>> And triple checked the paths that were set in the >>> /etc/apache2/sites-available/tpp-4.6.2: >>> <VirtualHost *:80> >>> >>> # directory to store data for web browser viewing >>> Alias /tpp/data "/usr/local/tpp/data" >>> <Directory "/usr/local/tpp/data"> >>> AllowOverride None >>> Options Indexes +FollowSymLinks Includes >>> Order allow,deny >>> Allow from all >>> </Directory> >>> >>> # directory for tpp's html resources (css, js, images, etc) >>> Alias /tpp/html "/usr/local/tpp/html" >>> <Directory "/usr/local/tpp/html"> >>> AllowOverride None >>> Options Includes Indexes FollowSymLinks MultiViews >>> Order allow,deny >>> Allow from all >>> </Directory> >>> >>> # directory for tpp's schema resources >>> <Directory "/usr/local/tpp/schema"> >>> AllowOverride None >>> Options Includes Indexes FollowSymLinks MultiViews >>> Order allow,deny >>> Allow from all >>> </Directory> >>> >>> # directory for tpp's executable files >>> ScriptAlias /tpp/cgi-bin "/usr/local/tpp/cgi-bin" >>> <Directory "/usr/local/tpp/cgi-bin"> >>> #AllowOverride AuthConfig Limit >>> AllowOverride All >>> Options Indexes +FollowSymLinks MultiViews ExecCGI >>> +Includes >>> AddHandler default-handler .jpg .png .css .ico .gif >>> AddHandler cgi-script .cgi .pl >>> Order allow,deny >>> Allow from all >>> SetEnv WEBSERVER_ROOT /usr/local/ >>> *Is it possible the above line should read /usr/local/tpp/ ???* >>> #SetEnv WEBSERVER_ROOT /var/www >>> </Directory> >>> >>> # Enables Lorikeet spectrum display program to work for linux >>> Alias /ISB /usr/local/tpp >>> </VirtualHost> >>> >>> >>> >>> On Sun, Apr 21, 2013 at 12:35 PM, Liam Bell <bell.l...@gmail.com> wrote: >>> >>>> Where can I find what my WEBSERVER_ROOT variable has been set to? Which >>>> configuration file is it in? >>>> >>>> >>>> On 21 April 2013 21:25, Jimmy Eng <jke...@gmail.com> wrote: >>>> >>>>> Liam. >>>>> >>>>> Your ServerRoot should probably still be "/etc/apache2". ServerRoot >>>>> is the root of the directory tree where your apache config files are kept. >>>>> What I was referring to was your DocumentRoot which is what your >>>>> WEBSERVER_ROOT environment variable should be set to. This DocumentRoot >>>>> is >>>>> the root directory where you serve your documents (i.e. index.html). >>>>> >>>>> >>>>> On Sun, Apr 21, 2013 at 12:04 PM, Liam Bell <bell.l...@gmail.com>wrote: >>>>> >>>>>> Hi Jimmy, >>>>>> >>>>>> I looked up the WEBSERVER_ROOT environment variable in my >>>>>> /etc/apache2/apche2.conf file. >>>>>> >>>>>> I think the relevant section is this: >>>>>> # Global configuration >>>>>> # >>>>>> >>>>>> # >>>>>> # ServerRoot: The top of the directory tree under which the server's >>>>>> # configuration, error, and log files are kept. >>>>>> # >>>>>> # NOTE! If you intend to place this on an NFS (or otherwise network) >>>>>> # mounted filesystem then please read the LockFile documentation >>>>>> (available >>>>>> # at <URL: >>>>>> http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>); >>>>>> # you will save yourself a lot of trouble. >>>>>> # >>>>>> # Do NOT add a slash at the end of the directory path. >>>>>> # >>>>>> #ServerRoot "/etc/apache2" >>>>>> >>>>>> To which I edited so that, >>>>>> ServerRoot "/var/www" >>>>>> >>>>>> The index.html file you mentioned is located at /var/www/index.html >>>>>> >>>>>> I then restarted apache and got the following: >>>>>> liam@liam-Y500:~$ sudo /etc/init.d/apache2 restart >>>>>> [sudo] password for liam: >>>>>> apache2: Syntax error on line 240 of /etc/apache2/apache2.conf: >>>>>> Include directory '/var/www/mods-enabled' not found >>>>>> Action 'configtest' failed. >>>>>> The Apache error log may have more information. >>>>>> ...fail! >>>>>> >>>>>> What is going wrong? If I go to localhost in a web browser I still >>>>>> get "It works!". >>>>>> >>>>>> >>>>>> On 21 April 2013 20:48, Jimmy Eng <jke...@gmail.com> wrote: >>>>>> >>>>>>> Liam, >>>>>>> >>>>>>> At this point, perl is not the issue for you; our problem is >>>>>>> definitely with your apache config. The WEBSERVER_ROOT environment >>>>>>> variable should point to your webserver's document root i.e. the >>>>>>> directory >>>>>>> that contains the index.html file that says "It Works!". Is it possibly >>>>>>> /var/www/html? I can't imagine it being really /usr/local/ as you have >>>>>>> in >>>>>>> your apache2 config file for TPP below. One step at a time so fix that >>>>>>> first, restart apache, and try and to access >>>>>>> http://localhost/tpp/cgi-bin/tpp_gui.pl. If the page doesn't open, >>>>>>> what is the error message in your apache error log file? >>>>>>> >>>>>>> # directory for tpp's executable files >>>>>>> ScriptAlias /tpp/cgi-bin "/usr/local/tpp/cgi-bin" >>>>>>> <Directory "/usr/local/tpp/cgi-bin"> >>>>>>> #AllowOverride AuthConfig Limit >>>>>>> AllowOverride All >>>>>>> Options Indexes +FollowSymLinks MultiViews ExecCGI >>>>>>> +Includes >>>>>>> AddHandler default-handler .jpg .png .css .ico .gif >>>>>>> AddHandler cgi-script .cgi .pl >>>>>>> Order allow,deny >>>>>>> Allow from all >>>>>>> SetEnv WEBSERVER_ROOT /usr/local/ >>>>>>> *Is it possible the above line should read /usr/local/tpp/ ???* >>>>>>> #SetEnv WEBSERVER_ROOT /var/www >>>>>>> </Directory> >>>>>>> >>>>>>> - Jimmy >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, Apr 21, 2013 at 10:44 AM, Liam Bell <bell.l...@gmail.com>wrote: >>>>>>> >>>>>>>> Nope - no dice... >>>>>>>> >>>>>>>> Changed the PERL_LIB_CORE= /usr/lib/perl/15.4.2/CORE in the >>>>>>>> makefile.conf.incl file before re-running the compiling/building. >>>>>>>> >>>>>>>> Ran through the rest fo the steps from >>>>>>>> http://tools.proteomecenter.org/wiki/index.php?title=TPP_4.5.2:_Installing_on_Ubuntu_10.04.3 >>>>>>>> as >>>>>>>> I have done successfully before. >>>>>>>> >>>>>>>> The server is working still (localhost => It works!) but I can't >>>>>>>> load up http://localhost/tpp/cgi-bin/tpp_gui.pl - still getting "The >>>>>>>> requested URL /tpp/cgi-bin/tpp_gui.pl was not found on this >>>>>>>> server." >>>>>>>> >>>>>>>> Any other ideas? >>>>>>>> >>>>>>> -- >>>>>>> You received this message because you are subscribed to a topic in >>>>>>> the Google Groups "spctools-discuss" group. >>>>>>> To unsubscribe from this topic, visit >>>>>>> https://groups.google.com/d/topic/spctools-discuss/pzyzzSmoBxY/unsubscribe?hl=en >>>>>>> . >>>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>>> spctools-discuss+unsubscr...@googlegroups.com. >>>>>>> To post to this group, send email to >>>>>>> spctools-discuss@googlegroups.com. >>>>>>> Visit this group at >>>>>>> http://groups.google.com/group/spctools-discuss?hl=en. >>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "spctools-discuss" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to spctools-discuss+unsubscr...@googlegroups.com. >>>>>> >>>>>> To post to this group, send email to >>>>>> spctools-discuss@googlegroups.com. >>>>>> Visit this group at >>>>>> http://groups.google.com/group/spctools-discuss?hl=en. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to a topic in the >>>>> Google Groups "spctools-discuss" group. >>>>> To unsubscribe from this topic, visit >>>>> https://groups.google.com/d/topic/spctools-discuss/pzyzzSmoBxY/unsubscribe?hl=en >>>>> . >>>>> To unsubscribe from this group and all its topics, send an email to >>>>> spctools-discuss+unsubscr...@googlegroups.com. >>>>> To post to this group, send email to spctools-discuss@googlegroups.com >>>>> . >>>>> Visit this group at >>>>> http://groups.google.com/group/spctools-discuss?hl=en. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>>> >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "spctools-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to spctools-discuss+unsubscr...@googlegroups.com. >>>> To post to this group, send email to spctools-discuss@googlegroups.com. >>>> Visit this group at >>>> http://groups.google.com/group/spctools-discuss?hl=en. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "spctools-discuss" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/spctools-discuss/pzyzzSmoBxY/unsubscribe?hl=en >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> spctools-discuss+unsubscr...@googlegroups.com. >>> To post to this group, send email to spctools-discuss@googlegroups.com. >>> Visit this group at >>> http://groups.google.com/group/spctools-discuss?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "spctools-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to spctools-discuss+unsubscr...@googlegroups.com. >> To post to this group, send email to spctools-discuss@googlegroups.com. >> Visit this group at http://groups.google.com/group/spctools-discuss?hl=en >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "spctools-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/spctools-discuss/pzyzzSmoBxY/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > spctools-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to spctools-discuss@googlegroups.com. > Visit this group at http://groups.google.com/group/spctools-discuss?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "spctools-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to spctools-discuss+unsubscr...@googlegroups.com. To post to this group, send email to spctools-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/spctools-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.