简体   繁体   中英

<filename>.php trouble in mac os x yosemite

I am new to php, apache and mac os x.

In "httpd.conf" I have removed the "#" and have typed the command to restart the Apache server.

How do I make sure that PHP is in fact enabled?

I have a file called "h.php" containing:

<?php phpinfo(); ?>

"h.php" is stored in "sites" (lowercase "s") on the root ("/sites").

What do I have to do to make my php files show the information they are supposed to and not the source code?

Thanks

通过将“ h.php”移动到“ / library / webserver / documents”并通过“ localhost / h.php”进行访问来解决

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM