Closed Thread
Results 1 to 5 of 5

Thread: Easyapache/ whm/ php problem

  1. #1
    dmgens is offline Newbie
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    Thumbs down Easyapache/ whm/ php problem

    Folks,

    I have a server and have upgraded it to apache2.2 via easyapache now any attempt to access the ./cgi-bin/ directory as in
    <form action=".cgibin/test.php"> causes a 500 http error. If the php script runs out of another directory works fine. So there must be a problem with how apache is handling the /cgi-bin/ directory. Where do I change that? now my cgi_bin is set to 755 and test.php is set to 644. If you need more info just ask and I'll gladly send it. Note this is in a vhosts situation

    Thanks.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    You are not suppose to put php scripts in the CGI-BIN. Those are for CGI applications like Perl CGI or C++ CGI. Also, your form action is incorrect. You have ".cgibin/test.php" and it should not have that leading .

    "cgibin/test.php" should be how it is executed.

  4. #3
    dmgens is offline Newbie
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    Thanks

    Tor:

    Thanks it was actually ./cgi-bin/test.php ( I'M not noted for my typing skills: actual line:
    <form method="post" action="./cgi-bin/test.php">) and if the path was wrong then the error would have been a 404 error. I'm sill trying to get the two servers to match and learn about setting up apache 2. There is too much third party stuff (easyapache, etc,) that I don't understand. Any futher help from anyone is welcomed w/ open arms and warm thoughts. Thanks again Tor, nice to know that the world is listening.

  5. #4
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    Any reason you want to place php files in the cgi-bin though?

  6. #5
    dmgens is offline Newbie
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0
    Tor:

    other than option -Index etc no, I'll come up with some other place to put them, Thanks for your effort: (note: I'm a stubborn old fart, so I like to do things my way)

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. If problem or cout problem?
    By chaoticape in forum C and C++
    Replies: 4
    Last Post: 06-10-2011, 10:29 AM
  2. Have issues using EasyApache (WHM)
    By phpforfun in forum Linux Installation & Configuration
    Replies: 6
    Last Post: 10-12-2010, 04:05 PM
  3. C: Problem with solving problem
    By rakche in forum C and C++
    Replies: 15
    Last Post: 03-28-2010, 01:24 PM
  4. Replies: 0
    Last Post: 04-26-2007, 05:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts