=== TheCaptain8 is now known as TheCaptain [14:36] hi ppl can i please have some help getting cgi to work on my apache server [14:38] 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] 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] mrblack: pastebin the output of: ls -l /etc/apache2/conf-enabled/ [14:52] mrblack@ubuntu-server:/var/www/lazarus/cgi-bin$ ls -l /etc/apache2/conf-enabled [14:52] total 0 [14:52] lrwxrwxrwx 1 root root 30 Jan 21 08:10 charset.conf -> ../conf-available/charset.conf [14:52] lrwxrwxrwx 1 root root 40 Jan 21 08:48 javascript-common.conf -> ../conf-available/javascript-common.conf [14:52] lrwxrwxrwx 1 root root 44 Jan 21 08:10 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf [14:52] lrwxrwxrwx 1 root root 46 Jan 21 08:10 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf [14:52] !paste | mrblack [14:52] mrblack: For posting multi-line texts into the channel, please use https://dpaste.com | To post !screenshots use https://imgur.com | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. [14:53] wait till the "quiet" times out for your nick, then use pastebin [14:55] https://dpaste.com/85J6STWTX [14:55] sorry didnt know about the paste thing [15:03] 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] mrblack: ok, now pastebin the output of ls -l /etc/apache2/sites-enables/ and your virtualhost file [15:03] okies just a min [15:05] https://dpaste.com/3KFSVJSP9 [15:06] ok, now the lazarus.conf [15:06] https://dpaste.com/CH977FW8Q [15:07] thanks so much for your help. [15:09] mrblack: can you stick a basic .html in /var/www/lazarus/cgi-bin/ and does lazarus.com/cgi-bin/basic.html work? [15:09] ill check [15:11] says not found again like the script [15:11] got any clues? [15:11] sounds like a permission issue [15:11] as in, the www-data user doesn't have access to /var/www/lazarus/cgi-bin [15:12] 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] so do i chown everything to www-data [15:13] i dont know this system very well. or im getting to old lol [15:14] www-data.www-data would be best, yes [15:16] so just to clarify chown -R wwww-data /var/www/lazarus/* ? [15:18] using sudo, yes [15:21] still isnt working sadly [15:22] sudo chown -R www-data.www-data /var/www/lazarus/* [15:49] 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] mrblack. maybe we can help? [16:33] The password would be needed. we might be able to get permissions workable, maybe not the _way it was_ [16:36] 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] ( i won't need the password, but you will) [16:36] not sure you can ssh to my box unless i fuck with my router [16:36] is that what you mean? [16:37] oh ok didnt read the part ill need it [16:37] ok im ready [16:45] 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 === JanC_ is now known as JanC [16:50] its all good buddy, thanks everyone for the help. ill come back later today and check in for some help [17:47] 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] very happy thanks all. === octav1a is now known as Sharktavia