I’ve installed the virtual host on my server and is working.
mydomain.com is working perfectly, but, my problem is when I try in mydomain.com/info.php this is no work. if Itry with php:
<?php echo “example text with php!”; ?>
This not work. So . . . I need configure the PHP in my virtual host, someone has a solution for this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi Pablo! <br> <br>Thank you for your prompt response. <br> <br>I installed LAMP previously was running PHP, but stopped working when installing virtual host. <br>Do you know how to configure virtual host in php? something like this: <br> <br><Directory /var/www/vhosts/vhost.com/httpsdocs> <br> <IfModule sapi_apache2.c> <br> php_admin_flag engine on <br> php_admin_flag safe_mode on <br> php_admin_value open_basedir “/var/www/vhosts/vhost.com/httpsdocs:/tmp” <br> </IfModule> <br> <IfModule mod_php5.c> <br> php_admin_flag engine on <br> php_admin_flag safe_mode on <br> php_admin_value open_basedir “/var/www/vhosts/vhost.com/httpsdocs:/tmp” <br> </IfModule> <br> </Directory> <br> <br>where I put it? which is the path that handles digital ocean? <br> <br>
You don’t need these configuration lines. <br> <br>See <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts”>https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts</a>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.