1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I fix this error?

Discussion in 'PHP & Perl' started by Roparadise, Nov 22, 2012.

  1. Roparadise

    Roparadise BANNED BANNED

    Joined:
    May 25, 2011
    Messages:
    786
    Likes Received:
    1,417
    I finally decided to restart my image host after a month of being down. So I went with a linux based vps this time over shared hosting.

    the html page where you view the images at wont come up. I keep getting the following error

    My VPS has the following specs:

    Centos v6.3 x86_64
    Apache 2.2.23
    PHP 5.3.18
    Perl 5.8.8
    Mysql 5.1.65-cll
    kernel version 2.6.32-042stab061.2
     
  2. perma

    perma Newbie

    Joined:
    Dec 23, 2008
    Messages:
    1
    Likes Received:
    0
    There isn't a lot of information to go by but the file "/img-50ae498f6459a.html", which is missing, looks to be a re-written URL. e.g. the physical (virtual? lol) file does not exist on the server, and you know that. It could be that mod_rewrite (Apache module) is not in installed on your server.

    Assuming that is correct, and assuming you are using WHM/cPanel on your VPS, you can re-compile Apache to include the "mod_rewrite" module by running "EasyApache" withing WHM and running through the few steps.
     
  3. Roparadise

    Roparadise BANNED BANNED

    Joined:
    May 25, 2011
    Messages:
    786
    Likes Received:
    1,417
    I dont see the mod_rewrite module when i tried to re-compile apache,but i did see i could upload a apache profile to use. Is there any good place to get a profile with mod_rewrite installed?
     
  4. sam0016

    sam0016 Registered Member

    Joined:
    Feb 7, 2012
    Messages:
    78
    Likes Received:
    15
    It is really easy to add it your self just run

    yum install mod_rewrite

    Then edit the next 2 lines in your httpd.conf

    Change AllowOverride None to AllowOverride All in the directory tags that say <Directory "/var/www/html">

    Then make sure this line is in your httpd.conf and not commented out


    LoadModule rewrite_module modules/mod_rewrite.so

    It should work fine after you restart apache and you have done what I just said.