How to configure add on domain
I recently added a domain using the add on domain feature in cPanel. The add on domain comes up on my browser but the php code is not appearing which makes me think I need to configure some settings or a file for this domain.
The first domain was configured using Word Press and that site is working so I know the server works. The second domain appears in the browser but the php code does not appear. For testing purposes I used a simple php code from W3schools php tutorial and tested it with WAMP server on my local machine but after uploading the file the code no longer works which leads me to believe it is a configuration problem.
This is the php code I used to test with. I omitted the open and close php tags to show this is simple code.
echo "My first PHP script!";
The first domain was configured using Word Press and that site is working so I know the server works. The second domain appears in the browser but the php code does not appear. For testing purposes I used a simple php code from W3schools php tutorial and tested it with WAMP server on my local machine but after uploading the file the code no longer works which leads me to believe it is a configuration problem.
This is the php code I used to test with. I omitted the open and close php tags to show this is simple code.
echo "My first PHP script!";