1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Dedicated IP for a domain

Discussion in 'Plesk for Linux - 8.x and Older' started by puro1212, Jul 19, 2005.

  1. puro1212

    puro1212 Guest

    0
     
    I assigned a dedicated IP to one of my domain account. But when I try to see my files with Internet Explorer with the IP address (e.g. http://216.55.168.68/index.php), the files can't be located (i.e. 404 error). Any clue?

    Thanks

    Scott
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    I know you did not set your domain name as the default for the IP address, if you browse to just the IP you get the default Plesk page... This is not done by default.

    In the control panel,

    go to Server - IP Addresses

    in the 'Hosting' column, click on the number zero on the IP address line

    select your domain name

    click on 'Set as Default'
     
  3. puro1212

    puro1212 Guest

    0
     
    Thanks. :)


     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Ok, so that problem is resolved, but now it looks like you may be having an open_basedir problem:

    Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/yourdomain.com/httpdocs/shop/index.php on line 13

    or maybe a path error in a config file for the application.

    include_path='.:/usr/share/pear'

    My eyes are not so good, but is that a period and colon before the /usr/...

    Check your /home/httpd/vhosts/yourdomain.com/conf/vhosts.conf file. If you (hopefully) have a statement for php_admin_flag open_basedir ... statement, check it for typos.

    This is what I would normally put in for an osCommerce type site:

    <Directory /home/httpd/vhosts/yourdomain.com/httpdocs>
    php_admin_flag engine on
    php_admin_value register_globals 1
    php_admin_value safe_mode 0
    php_admin_value open_basedir /home/httpd/vhosts/yourdomain.com/httpdocs:/tmp:/usr/share/pear
    </Directory>
    1=on, 0=off (had to do this with current PHP on RH), if the numbers don't work, then use on and off. Also if you are doing an SSL site, then change the 'httpdocs' to 'httpsdocs' in the lines above.
     
Loading...