Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2478  / 3 Years ago, tue, october 19, 2021, 10:12:20

I recently installed Ubuntu and I'm a php developer. And I'm trying to use Ubuntu for this purpose.



I already installed mysql-server and phpmyadmin and I can already access the localhost. And also If I create some file and write for example echo 'hello';, I'm getting this echo when I access the document that I create.



But I'm trying to access a folder of a website that I developed in windows, and first gave me an error about permissions I changed the permissions, but now I still have problems, when I try to access my website folder I get a blank page.



Do you know why this can be happening?


More From » 14.04

 Answers
5

Install



sudo apt-get install apache2 mysql-client mysql-server php5 phpmyadmin libapache2-mod-php5


You will be asked to input a password by mysql. Make one up.






Configuration



Edit /etc/hosts



sudo nano /etc/hosts


Add



127.0.0.2     Yourwebsitename


Edit /etc/apache2/apache2.conf



sudo nano /etc/apache2/apache2.conf


then add the following:



<VirtualHost 127.0.0.2>
DocumentRoot /var/www/YourWebsiteFolderName/
ServerName Yourwebsitename
</VirtualHost>

[#22908] Thursday, October 21, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rialhirt

Total Points: 422
Total Questions: 113
Total Answers: 120

Location: France
Member since Sun, May 15, 2022
2 Years ago
;