ThaiSEOBoard.com

Host and Domain => Host & Domain (general) => ข้อความที่เริ่มโดย: Hello Kitty ที่ 03 กุมภาพันธ์ 2011, 18:42:06



หัวข้อ: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: Hello Kitty ที่ 03 กุมภาพันธ์ 2011, 18:42:06
คือจะ Install สคริป อ่ะ มัน เปลี่ยน Url เอง เฉยเลย งงมากเลย

คือจะ Install สคริปใส่ โดเมน xxx.com เวลาเปิดหน้า xxx.com จะเห็นเป็นหน้าปกติ  แต่เวลาจะ Install ต้องพิมพ์ xxx.com/install.php   พอพิมพ์ xxx.com/install.php  มันจะเด้งไปหน้า Url hxxp://xxx.com:2222
เองเลยอ่ะ ทำให้ Install ไม่ได้เลย เด้งไปหน้า DirectAdmin Login  ตลอด จะแก้ไขยังไงดีคะ

ช่วยทีจ้า  :P :P


หัวข้อ: Re: เซียน VPS ช่วยด้วยคะ
เริ่มหัวข้อโดย: khondee99 ที่ 03 กุมภาพันธ์ 2011, 18:46:20
Upload ผิด Folder หรือป่าว


หัวข้อ: Re: เซียน VPS ช่วยด้วยคะ
เริ่มหัวข้อโดย: Hello Kitty ที่ 03 กุมภาพันธ์ 2011, 18:50:14
เค้าอัพใส่ Folder ไหนกันเหรอ งง อ่ะ เพิ่งเคยใช้  :P :P


หัวข้อ: Re: เซียน VPS ช่วยด้วยคะ
เริ่มหัวข้อโดย: Hello Kitty ที่ 03 กุมภาพันธ์ 2011, 18:52:28
/home/admin/domains/xxx.com

แบบนี้หรือเปล่า


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: rawat2543 ที่ 03 กุมภาพันธ์ 2011, 18:55:25
public_html


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: ~~~เทพ Google Ad ~~~ ที่ 03 กุมภาพันธ์ 2011, 18:56:58
/home/user/doamins/xxx.com/public_html ถ้าแอัพถูกและเป็นให้ลองเช็ค .htaccess ดูครับ


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: Hello Kitty ที่ 03 กุมภาพันธ์ 2011, 19:05:57
/domains/xxx.com/public_html อัพมาตรงนี้แล้วอ่ะ Install ไม่ได้อยู่ดี  :P :P


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: Tanut007 ที่ 03 กุมภาพันธ์ 2011, 19:07:41
มันขึ้นว่าอะไรครับ


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: Hello Kitty ที่ 03 กุมภาพันธ์ 2011, 19:08:46
มันขึ้นว่าอะไรครับ

  พอพิมพ์ xxx.com/install.php  มันจะเด้งไปหน้า Url hxxp://xxx.com:2222

แต่ถ้าพิมพ์ xxx.com หน้าเว็บจะเปิดได้ปกติ อ่ะ


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: ~~~เทพ Google Ad ~~~ ที่ 03 กุมภาพันธ์ 2011, 19:09:32
/domains/xxx.com/public_html อัพมาตรงนี้แล้วอ่ะ Install ไม่ได้อยู่ดี  :P :P
เช็ค .htaccess ในแอคเค้าหรือยังครับถ้ายังไม่ได้ ถ้าเป็น VPS ลองลง Apache ใหม่


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: Tanut007 ที่ 03 กุมภาพันธ์ 2011, 19:14:00
ส่งรายละเอียดเว็บมาทาง PM ผมที เผื่อช่วยได้


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: Hello Kitty ที่ 03 กุมภาพันธ์ 2011, 20:21:11
 :P :P


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: tenzamak ที่ 03 กุมภาพันธ์ 2011, 20:35:58
.htaccess ดูอันนี้ครับมีอะไรหรือป่าว

อีกอย่างคือ ../config.php
พวกไฟล์ที่เขียนไว้แบบนี้ ผมเคยเจอ มันไปดึง :2222 Directadmin
ให้แก้เป็น path ตรง


หัวข้อ: Re: เซียน VPS ช่วยด้วยค่ะ
เริ่มหัวข้อโดย: Tanut007 ที่ 03 กุมภาพันธ์ 2011, 20:53:52
ผมดูแล้วโคตรงงเลย

ในไฟล์ติดตั้ง

โค๊ด:
<?php
include_once(
"DBclass.php");

$db = new DBclass;
$db->install_form();
?>

.htaccess

โค๊ด:
Options +FollowSymlinks All -Indexes

<IfModule mod_rewrite.c>
  RewriteEngine on

  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # adapt and uncomment the following:
  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment and adapt the following:
  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /

#RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
#RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

  # Rewrite URLs of the form 'x' to the form 'detail.php?keyword=x'.
  #RewriteRule ^/config /config
  RewriteRule ^buy/(.*) redirect.php?keyword=$1
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ detail.php?keyword=$1 [L,QSA]
</IfModule>
<Files get.php>

</Files>
ErrorDocument 404 /index.php