Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 6817  / 2 Years ago, fri, august 26, 2022, 4:12:11

I installed LAMP using



sudo tasksel install lamp-server


I configured PhpStorm to use /var/www folder as root deployment folder, also specified http://localhost as web-server root url:
enter image description here



When I deploy my index.html page with "helloworld" to my server - page is not found, neither is it in /var/www. Why?


More From » apache2

 Answers
2

This applies to Ubuntu 12.10 (may work with older versions)



First you will need to check that Apache is really using /var/www as the website root:



$ grep DocumentRoot /etc/apache2/sites-enabled/000-default
DocumentRoot <path/to/apache/root_dir>


If the path stated in the output is different, you should change that in PHPStorm.



Also you may not be able to place your php files there because the permissions on that folder. To solve this, jst change the permission of /var/www (or the correct path) to your current user:



sudo chown -R <user>:<user> /var/www


where <user> is your username.


[#34226] Friday, August 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istictroubli

Total Points: 306
Total Questions: 96
Total Answers: 114

Location: Sao Tome and Principe
Member since Wed, Jul 13, 2022
2 Years ago
istictroubli questions
;