충혈된 제눈좀 쉬게 해주세요(페도라 코어3에서 제로보드 설치)

wire101의 이미지

정확한 설치 상태를 알아야
정확한 원인을 알수 있다는 어느분의 말에따라

현재 페도라 코어 3 설치후 yum update

커널 2.6.10-1.741_FC3smp
apche httpd-2.0.52-3.1.src.rpm
php php-4.3.10-3.2.src.rpm
mysql mysql-3.23.58-14.src.rpm

파티션은 " / " "swp" " /home" 3개

quota "/home" 파티션 사용중

useradd -G wwwuser webuser1 -d /home/www/webuser1 -s /bin/ftponly
mkdir /home/www/webuser1/html
chown webuser1.webuser1 /home/www/webuser1/html
chmod 755 /home/www/webuser1/html

webuser1으로 ftp 접속 후 제로보드 업로드
chmod 707 ./bbs

제로보드 설치후 chmod 701 ./bbs

http://홈주소 <== 접속되지만 제로보드 무 반음

chmod 707 ./bbs

http://홈주소 <== index 접속 후 제로보드 반응
http://홈주소/bbs ==> 파일 내용이 다보임

제로보드 4.1 pl6

httpd.conf에서는 virtualhost
document root /home/www/webuser1/html

기타 설정한것들
방화벽:포트 20, 21, 22, 53, 80, 443, 3306, 번 허용 eth0 허용
selinux 에서 SELINUX=disabled

/etc/php.ini에서
session.bug_compat_42 = 0

session.bug_compat_42 = 1

register_globals = On 을 Off로
변경후 httpd restart

php 때문인거 같기도 한대 ...
오늘 하루 모니터 뚤어지게 보고 있습니다.
감사합니다. :oops:

/bin/ftponly 파일 만들기
===================================================================
How can I create an account that only allows FTP access and not telnet?
A. Create the account as you normally would in /etc/passwd and /etc/shadow.
Then, for the shell, type something like:
/bin/ftponly
Now, create the file ftponly:
echo 'echo "This account only allows FTP access."' > /bin/ftponly
and allow it to be executable:
chmod a+x /bin/ftponly
to make this "shell" a valid one according to FTP,
append the following line in /etc/shells:
/bin/ftponly
=====================================================================

warpdory의 이미지

그 홈주소 라는 말 대신에.. url 을 알려주시면 더 좋았을텐데.. 라는 생각이 듭니다.

질문내용이 명확하진 않지만, php 가 제대로 안 돌아간다는 내용으로 보이는데요.

일단 php 4.30.. 이면 php4 이고...

아파치 설정파일에..

Quote:
AddType application/x-httpd-php .php .html .php3 .php4 .php5 .htm
AddType application/x-httpd-php-source .phps
LoadModule php4_module modules/libphp4.so

이런 내용이 있는지를 확인해 보세요.
보통 php 파일 내용을 보여주는 경우는 php가 php 로 동작하는 게 아니라 그냥 html 처럼 일종의 텍스트 파일로 작동하기 때문입니다.


---------
귓가에 햇살을 받으며 석양까지 행복한 여행을...
웃으며 떠나갔던 것처럼 미소를 띠고 돌아와 마침내 평안하기를...
- 엘프의 인사, 드래곤 라자, 이영도

즐겁게 놀아보자.

wire101의 이미지

추가)허극 ~
죄송 제 설정 환경만 말하다 보니 질문의 요지가 없내요

문제점
chmod 707 부분에선 분명 됩니다
하지만 파일 내용들이 다 보입니다.

http://홈페이지/bbs
이렇게 치면 bbs 루트의 인덱스를 찾거나 접근할수 없다던지
되어야 하는대 파일들이 다 보입니다 ..

chmod 701 부분에서 안됩니다
홈 의루트 index.html 접근후
제로보드로 갈려면 무반응 입니다.

701로 레드헷 9에서는 잘되었는대

머리가 나쁘면 손발이 고생한다

warpdory의 이미지

퍼미션 이런 건 부수적인 것이고..

일단 제로보드가 안 돈다는 건데요.

기본적으로 제로보드는 php 와 mysql 이 잘 돌면 잘 됩니다.

그 외에는 url 을 잘못 정해줬다든가, 디렉터리를 잘못 해줬다든가 이런 거지요.

일단 php 세팅과 mysql 세팅, 아파치 세팅부터 다시 확인하세요.


---------
귓가에 햇살을 받으며 석양까지 행복한 여행을...
웃으며 떠나갔던 것처럼 미소를 띠고 돌아와 마침내 평안하기를...
- 엘프의 인사, 드래곤 라자, 이영도

즐겁게 놀아보자.

chronon의 이미지

파일 내용이 다 보인다는게 디렉토리의 파일 리스트가 나타난다는 것을 말씀하시는 건가요?

익명 사용자의 이미지

아파치 conf화일에서

<Directory "/var/www/html">
부분
Options Indexes FollowSymLinks

에서 indexes를 제거하세요

7339989b62a014c4ce6e31b3540bc7b5f06455024f22753f6235c935e8e5의 이미지

지금 보니 SRPM으로 설치하신 것 같은데, PHP가 확실히 설치 된 건가요?
phpinfo등으로 먼저 PHP 파일이 작동하는지 확인해보세요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.