[14:36] <mrblack> hi ppl can i please have some help getting cgi to work on my apache server
[14:38] <mrblack> iv added the scriptalias to the virtualhost file(unsure if that was right) and added the options and restarted, anyways navigating to http://blah.com/cgi-bin/test.pl i keep getting url not found. have i missed something?
[14:50] <mrblack> been googling and alot of examples said it goes in httpd.conf? but the file looks like the virtualhost file. is the apache.conf the httpd.conf ubuntu equivilent. im a little lost
[14:51] <leftyfb> mrblack: pastebin the output of:   ls -l /etc/apache2/conf-enabled/
[14:52] <mrblack> mrblack@ubuntu-server:/var/www/lazarus/cgi-bin$ ls -l /etc/apache2/conf-enabled
[14:52] <mrblack> total 0
[14:52] <mrblack> lrwxrwxrwx 1 root root 30 Jan 21 08:10 charset.conf -> ../conf-available/charset.conf
[14:52] <mrblack> lrwxrwxrwx 1 root root 40 Jan 21 08:48 javascript-common.conf -> ../conf-available/javascript-common.conf
[14:52] <mrblack> lrwxrwxrwx 1 root root 44 Jan 21 08:10 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
[14:52] <mrblack> lrwxrwxrwx 1 root root 46 Jan 21 08:10 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
[14:52] <leftyfb> !paste | mrblack 
[14:53] <leftyfb> wait till the "quiet" times out for your nick, then use pastebin
[14:55] <mrblack> https://dpaste.com/85J6STWTX
[14:55] <mrblack> sorry didnt know about the paste thing
[15:03] <mrblack> ok this serve-cgi-bin.conf looks familiar, should i remove the scriptalias i put in my virutal host file and put it here and restart?
[15:03] <leftyfb> mrblack: ok, now pastebin the output of ls -l /etc/apache2/sites-enables/   and your virtualhost file
[15:03] <mrblack> okies just a min
[15:05] <mrblack> https://dpaste.com/3KFSVJSP9
[15:06] <leftyfb> ok, now the lazarus.conf
[15:06] <mrblack> https://dpaste.com/CH977FW8Q
[15:07] <mrblack> thanks so much for your help. 
[15:09] <leftyfb> mrblack: can you stick a basic .html in /var/www/lazarus/cgi-bin/ and does lazarus.com/cgi-bin/basic.html work?
[15:09] <mrblack> ill check
[15:11] <mrblack> says not found again like the script
[15:11] <mrblack> got any clues?
[15:11] <leftyfb> sounds like a permission issue
[15:11] <leftyfb> as in, the www-data user doesn't have access to /var/www/lazarus/cgi-bin
[15:12] <mrblack> yeah i was actually having trouble reading the externel css today figured i stuffed up the syntax and put it back in the main html file
[15:13] <mrblack> so do i chown everything to www-data
[15:13] <mrblack> i dont know this system very well. or im getting to old lol
[15:14] <leftyfb> www-data.www-data would be best, yes
[15:16] <mrblack> so just to clarify chown -R wwww-data /var/www/lazarus/* ?
[15:18] <leftyfb> using sudo, yes
[15:21] <mrblack> still isnt working sadly
[15:22] <mrblack> sudo chown -R www-data.www-data /var/www/lazarus/*
[15:49] <mrblack> fuck sakes i followed a guide and now iv messed up the permissions in the folder. can i have help setting /var/www the way it was and removing myself from www-data please
[16:33] <armadefuego1> mrblack. maybe we can help?
[16:33] <armadefuego1> The password would be needed. we might be able to get permissions workable, maybe not the _way it was_
[16:36] <mrblack> just got it all back the way it was and used the ubuntu doc and made my folder writable for the webmasters... i still havent got cgi working
[16:36] <armadefuego1> ( i won't need the password, but you will)
[16:36] <mrblack> not sure you can ssh to my box unless i fuck with my router
[16:36] <mrblack> is that what you mean?
[16:37] <mrblack> oh ok didnt read the part ill need it
[16:37] <mrblack> ok im ready
[16:45] <mrblack> dont know how much i have in me tonight, its nearly 4am. so annoyed i just wanted to practice scipting and im stuckk doing this
[16:50] <mrblack> its all good buddy, thanks everyone for the help. ill come back later today and check in for some help
[17:47] <mrblack> not sure anyone was here, but i fixed my problem, i had to add ServerAlias /cgi-bin/ /var/www/lazarus/cgi-bin/ where as before i had it typed ServerAlias cgi-bin /var/www/lazarus/cgi-bin
[17:47] <mrblack> very happy thanks all.