지금 apache2.conf 파일에 /와 /usr/share, /var/www가 Directory로 선언 되어있습니다.
제가 가지고 있는 프로젝트 디렉토리 구조는 /var/www/html/company/wordpress 이런 구조인데요.
제가 뭘 잘못 건드렸는지 company 아래에 있는 index는 브라우저에서 잘 읽어오는데
그밑에 있는 wordpress 는 index.php 에 있는 코드내용만을 화면에 뿌려줍니다 그냥 텍스트로요.
그래서 아파치 2를 다시 설치하고 Directory랑 루트 디렉토리에 해당하는 애들을 chmod와 chown으로 다 조정 해봤는데 제맘대로
안되는 것 같습니다;;
apache2.conf 설정 상태입니다.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
sites-available에 000-default 설정입니다.
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
어디를 손봐야 할까요 ㅠ
워드프레스 접근시에 나오는 출력입니다.
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );