apache - PHP doesn't work on virtual host in EC2 + ubuntu + apache2 -
php doesn't work.
development environment below.
- ec2 server
- apache/2.4.7
- php 5.5.9-1ubuntu4.9
if set documentroot /var/www/html
, php works well.
on other hand if set /home/ubuntu/public_html
, php doesn't work, html works.
$ vi /etc/apache2/sites-available/000-default.conf
serveradmin webmaster@localhost documentroot /home/ubuntu/public_html errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/access.log combined
i resolved below method.
sudo vi /etc/apache2/mods-enabled/php5.conf
▼before
php_admin_flag engine off
▼change
php_admin_flag engine on
Comments
Post a Comment