Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 71718  / 3 Years ago, tue, november 23, 2021, 10:10:29

I followed the instruction here to configure a PHP development environment. First:



sudo tasksel install lamp-server


It succeeded, and It works! is outputted in http://localhost/. Then:



sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite


An error happened here:



cp: cannot stat ‘/etc/apache2/sites-available/default’: No such file or directory


I'm using Ubuntu 13.10. I searched the web but didn't get anything that looked promising. Can anyone point me in the right direction?



EDIT:



 $ ls /etc/apache2/sites-available
000-default.conf default-ssl.conf

More From » apache2

 Answers
0

The tutorial you are using is based on an older version of Ubuntu.



13.10 ships a newer apache configuration, where the file you are looking for is named /etc/apache2/sites-available/000-default.conf.



Note the .conf at the end, which is now required for apache to pick up on the files. So make sure the config you are creating for your site also has .conf as its extension.


[#28120] Wednesday, November 24, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emuralm

Total Points: 290
Total Questions: 111
Total Answers: 117

Location: China
Member since Thu, Sep 1, 2022
2 Years ago
;