1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

8.1 - 8.2 upgrade: default HTTP Apache test page

Discussion in 'Plesk for Linux - 8.x and Older' started by coldbloodedtv, Dec 28, 2007.

  1. coldbloodedtv

    coldbloodedtv Guest

    0
     
    I just did an upgrade from 8.1 - 8.2 and now none of my domains work on my virtual dedicated server. The default page says to put content in /var/www/http but all of my domains are in the vhost directory. What can I do? I tried doing a fix I found elsewhere on the board but it doesn't help. I hope my domains and php scripts are not broken. Can anyone help?
    www.coldblooded.tv
     
  2. coldbloodedtv

    coldbloodedtv Guest

    0
     
    I ran this command in SSH:
    /usr/local/psa/admin/sbin/websrvmng -a -v
    but it said operation not allowed.
    Any suggestions?
     
  3. faris

    faris Guest

    0
     
    The default place to put files for Apache, if you don't have Plesk or any other control panel type thing, is /var/www which is why the default apache page mentions it. So ignore that. It has nothing to do with anything. It is the default message that Apache displays.

    i.e. your files are supposed to be where they are (e.g. in /var/www/vhosts/whatever or similar).

    You need to be running as root to run websrvmngr -- so if you are not logged in as root you can't run it and that might be what is causing your problem. Use: su -
    to change to root (and enter the password obviously).

    However, another reason why you might see the apache test page is if ALL your domains use index.htm as their index files instead of index.html -- under certain circumstances, after a Plesk update, your httpd.conf file may get overwritten with one that does not include index.htm as as index file. You can check this very easily by entering the full www.domain.com/index.htm rather than just www.domain.com
    If the page is displayed then that's definitely your problem and you'll need to take a look at (for redhat type distros) /etc/httpd/conf/httpd.conf (I think) and search for DirectoryIndex and add index.htm to the end of the line. You'll then need to restart apache with the command: service httpd restart (or similar depending on your distribution).

    I've not figured out why you get the Apache test page in these circumstances - I'd have expected a "page cannot be displayed/file not found" type error. Nevertheless it seems to happen.

    You can also stop all plesk-related services with the command: service psa stopall
    and then restart them with: service psa start
    In case something is just a little confused after your update and needs prodding.

    I'm sure there are other things you can try too but the above would be my first ports of call.

    Faris.
     
  4. coldbloodedtv

    coldbloodedtv Guest

    0
     
    Thankyou so much for taking the time to reply Faris!
    I was logged in as root and still couldn't perform the:
    /usr/local/psa/admin/sbin/websrvmng -a -v

    The weird thing is that after awhile the apache test page went away but then my zend optimizer was broken and my sites aren't working. Something with 8.2 and zend optimizer don't work well together. So I upgraded to 8.2.1 hoping that would help and now that darn apache page is back!!! So aggravating. Any more suggestions? I tried going to the page with /index.htm typed at the end but nothing showed up.
     
  5. coldbloodedtv

    coldbloodedtv Guest

    0
     
    Ok, I got the apache test page to go away by creating a new "bogus" domain name in my plesk control panel. Not sure how this works but saw someone else recommend it on these forums. Then I got the zend to finally work too. Now my dilemma is that I need php 5 in order to upgrade a script package and I keep reading about how there are issues with plesk 8.2.1 and php 5. So what do you recommend? Can I still upgrade or will it cause problems in 8.2.1? I am reluctant to upgrade to plesk 8.3 because I just fixed all these other issues after upgrading to 8.2.
     
  6. faris

    faris Guest

    0
     
    The creation of a new new domain will probably have triggered websrvmng which might be why the problem went away when you did so.

    I'm concerned that you can't run it yourself though. What are its permissions?

    With regards to php, if you are on Centos 4 there's php 5.1.something or 5.0.something in the centosplus repo which you can use. The issue is that php5.2.5 and later don't work properly with plesk (and probably many other control panels -- there's been a big change in the way it handles certain things). Previous versions of php 5 work fine, so the versions in the centosplus repo will work fine too.

    Faris.
     
Loading...