in this post everything was going well but after the line :Step Three — Install PHP PHP is the component of our setup that will process code to display dynamic content. It can run scripts, connect to our MySQL databases to get information, and hand the processed content over to our web server to display.
We can once again leverage the apt system to install our components. We’re going to include some helper packages as well:
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
after that when i used :sudo nano /etc/apache2/mods-enabled/dir.conf it took me to a blank page but actually the page needed to contain some texts : <IfModule mod_dir.c> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule>
buy for mine its empty and when i entered the code in that page it say there isnt such file exist what should i do ?
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!
That is odd. You can also drop the DirectoryIndex directive and contents directly into your apache configuration file for the individual virtualhost by adding it inside the <VirtualHost> block in /etc/apache2/sites-enabled/default
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.