Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-16, 09:54:38

Author Topic: How can I change default page  (Read 7943 times)

0 Members and 1 Guest are viewing this topic.

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
How can I change default page
« on: 2014-05-30, 22:46:14 »
Hi,

How can I change Kloxo default page. I think the page when I enter on the server IP address. Which file need to change ?


To me better understand on page wrote this:

Quote
If you are seeing this page, it means that web has not been configured for this domain on this server.

This could be due to the following causes:
Kloxo has not restarted the web server yet after you added the domain. Please wait for the web server to restart.
 
The domain is pointing to the wrong Kloxo server. Ping the domain and make sure that the IP matches one of the IPaddress seen in admin home -> ipaddresses
 
If you are seeing this page when you try to access an IP like http://192.168.1.1, then that means that the IP has not yet been mapped to a domain. Go to client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain.
 
Once you map an IP to a domain, then you have to make sure that the domain pings back to the same IP. Otherwise, if you try to access the domain, you will get this page. So IP -> domain.com should mean that domain.com pings to the same IP.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How can I change default page
« Reply #1 on: 2014-05-31, 05:06:20 »
You can not access your domain via IP directly except SSL assign certain IP to certain IP.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: How can I change default page
« Reply #2 on: 2014-05-31, 05:34:56 »
/usr/local/lxlabs/kloxo/file/default_index.html

;)
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: How can I change default page
« Reply #3 on: 2014-06-01, 00:04:45 »
/usr/local/lxlabs/kloxo/file/default_index.html

;)

Thanks for your help but it seems that file is not.  I changed it "default_index.html" and "default_index.php" and no change occurred. That means it's other files, if anyone knows ?

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: How can I change default page
« Reply #4 on: 2014-06-01, 02:49:30 »
Oops ;)  that is kloxo official file, forgot KloxoMR uses new directories and copies things to new locations.

Follow these instructions.
SSH:
Code: [Select]
cp /home/kloxo/httpd/default/inc.php /home/kloxo/httpd/default/custom-inc.php
vim /home/kloxo/httpd/default/custom-inc.php

Edit custom-inc.php to what you want, it will not get over written on update.

Be sure to set the owner of the custom-inc.php properly.
Code: [Select]
chown apache:apache /home/kloxo/httpd/default/custom-inc.php
« Last Edit: 2014-06-01, 16:34:48 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline KloxoLittleFish

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +0/-0
    • View Profile
Re: How can I change default page
« Reply #5 on: 2014-06-01, 09:54:17 »
 :-X

Quote
/home/kloxo/httpd/default/index.html
/home/kloxo/httpd/default/index.php

/home/kloxo/httpd/default/custom-inc.php

code in index.php

 
Code: [Select]

<?php
 
if (!file_exists("./custom-index.php")) {

        if (
file_exists("./custom-inc.php")) {
                
// use user-define inc.php -- no override when kloxo update
                
$incfile "./custom-inc.php";
                if (
file_exists("./custom-inc2.php")) {
                        
$incfile2 "./custom-inc2.php";
                }
        }
        else {
                
// use default inc.php
                
$incfile "./inc.php";
                if (
file_exists("./inc2.php")) {
                        
$incfile2 "./inc2.php";
                }
        }
« Last Edit: 2014-06-01, 10:04:53 by KloxoLittleFish »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: How can I change default page
« Reply #6 on: 2014-06-01, 16:37:06 »
Updated, thank you.  ;)
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 205
  • Karma: +0/-0
    • View Profile
Re: How can I change default page
« Reply #7 on: 2014-06-01, 23:10:05 »
Thank for response to both. These are two files:  "/home/kloxo/httpd/default/index.php" and "/home/kloxo/httpd/default/inc.php"

Now everything works great!

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: How can I change default page
« Reply #8 on: 2014-06-02, 00:04:22 »
If you edited them files they will get overwritten on update.  If you follow my instructions that will not happen.
« Last Edit: 2014-06-02, 00:11:23 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.071 seconds with 21 queries.

web stats analysis