You can test whether PHP interacts properly with the Apache web server on csdb
by following the steps below:
csdb
, then change to directory html
.
/usr/local/bin/pico
to create a file named
myPHPtest.php
(note that the file extension must be ".php"
(instead of ".htm"
).
<?php echo "Hello World! This is my PHP test!"; ?>
html
.
chmod go+r myPHPtest.php
http://csdb.csc.villanova.edu/~yourusername/myPHPtest.php
Hello World! This is my PHP test!
then
the environment works well for you.
Remember to always save your files and folders in
Files must have read permissions:
Directories must have read and execute permissions:
html
.
chmod go+r myfile.php
chmod go+rx mydirectory