I'm a student. Class worked on a "department website" for the final project. Server is Linux, we run RedHat 6.2, and Apache. I worked at home using a dummy version of things. The term is over, but there was one cgi I didn't get working the way I wanted, so I've been playing with it at home. Yesterday I decided to upgrade to RedHat 7.0 for several reasons. I saved all the files I wanted, off the Linux partition, on the WinC drive, where I could get them back if they got screwed up in the upgrade. Upgrade went smoothly.
Problem one -- I didn't think through that Apache would re-install itself. I went nuts seeing it say it couldn't find my opening HTML's on the server!! I finally realized I had to go back into the configuration file, httpd.conf, and set DocumentRoot back to "/home/httpd/html" and set ServerName to localhost. That got the HTML's showing again, but when the forms call a cgi, it says "Could not find /cgi-bin/response.cgi on this server". I didn't touch any of the code, and the directory structure is the same, /home/httpd/html and /home/httpd/cgi-bin. All the cgi's are plainly there in the cgi-bin. Is there a setting somewhere that I've missed, like the others I had to do?
Problem two -- part of my contribution to the site was to implement a database of local companies that students look through for info at resume time. We set up a database in MySQL to do it. The databse itself survived the upgrade, but trying to connect with "mysql -u root -p" gets "Can't connect to the MySQL Server using 'var/lib/mysql.sock' (111)". I found several references on the web to people having the exact same problem, but no fixes. Apparently the upgrade reinstalled a socket file that didn't work? I don't know much about that stuff. The MySQL.com site didn't seem to have anything I could find for a clue.
Any help?
Felecha
Problem one -- I didn't think through that Apache would re-install itself. I went nuts seeing it say it couldn't find my opening HTML's on the server!! I finally realized I had to go back into the configuration file, httpd.conf, and set DocumentRoot back to "/home/httpd/html" and set ServerName to localhost. That got the HTML's showing again, but when the forms call a cgi, it says "Could not find /cgi-bin/response.cgi on this server". I didn't touch any of the code, and the directory structure is the same, /home/httpd/html and /home/httpd/cgi-bin. All the cgi's are plainly there in the cgi-bin. Is there a setting somewhere that I've missed, like the others I had to do?
Problem two -- part of my contribution to the site was to implement a database of local companies that students look through for info at resume time. We set up a database in MySQL to do it. The databse itself survived the upgrade, but trying to connect with "mysql -u root -p" gets "Can't connect to the MySQL Server using 'var/lib/mysql.sock' (111)". I found several references on the web to people having the exact same problem, but no fixes. Apparently the upgrade reinstalled a socket file that didn't work? I don't know much about that stuff. The MySQL.com site didn't seem to have anything I could find for a clue.
Any help?
Felecha