=== TheCaptain8 is now known as TheCaptain | ||
mrblack | hi ppl can i please have some help getting cgi to work on my apache server | 14:36 |
---|---|---|
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:38 |
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:50 |
leftyfb | mrblack: pastebin the output of: ls -l /etc/apache2/conf-enabled/ | 14:51 |
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:52 |
ubottu | 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:52 |
leftyfb | wait till the "quiet" times out for your nick, then use pastebin | 14:53 |
mrblack | https://dpaste.com/85J6STWTX | 14:55 |
mrblack | sorry didnt know about the paste thing | 14:55 |
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:03 |
mrblack | https://dpaste.com/3KFSVJSP9 | 15:05 |
leftyfb | ok, now the lazarus.conf | 15:06 |
mrblack | https://dpaste.com/CH977FW8Q | 15:06 |
mrblack | thanks so much for your help. | 15:07 |
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:09 |
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:11 |
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:12 |
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:13 |
leftyfb | www-data.www-data would be best, yes | 15:14 |
mrblack | so just to clarify chown -R wwww-data /var/www/lazarus/* ? | 15:16 |
leftyfb | using sudo, yes | 15:18 |
mrblack | still isnt working sadly | 15:21 |
mrblack | sudo chown -R www-data.www-data /var/www/lazarus/* | 15:22 |
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 | 15:49 |
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:33 |
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:36 |
mrblack | oh ok didnt read the part ill need it | 16:37 |
mrblack | ok im ready | 16:37 |
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:45 |
=== JanC_ is now known as JanC | ||
mrblack | its all good buddy, thanks everyone for the help. ill come back later today and check in for some help | 16:50 |
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. | 17:47 |
=== octav1a is now known as Sharktavia |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!