Hello, I'm a begier with Ubuntu. On my Cloud Server i installed Ubuntu 14.04, php5,lamp... installed Joomla website and everything was OK until i reboot the VPS. Now my website looks like this
www.deltasoft.solutions
Only plain text. I don't know if it has something with privileges to execute .php? I tried a ton of things but nothing worked. Please help
SOLVED!
For starters we need to enable this module using following command:
| sudo a2enmod userdir |
| sudo nano /etc/apache2/mods-enabled/userdir.conf |
| <IfModule mod_userdir.c> UserDir public_html UserDir disabled root <Directory /home/*/public_html> # Apache >= 2.4: # Apache >= 2.4: |
| sudo nano /etc/apache2/mods-available/php5.conf |
| <IfModule mod_php5.c> <FilesMatch ".ph(p3?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch ".phps$"> SetHandler application/x-httpd-php-source </FilesMatch> # To re-enable php in user directories comment the following lines # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it # prevents .htaccess files from disabling it. #<IfModule mod_userdir.c> # <Directory /home/*/public_html> # php_admin_value engine Off # </Directory> #</IfModule> </IfModule> |
| sudo service apache2 restart mkdir /home/$USER/public_html |
برچسب:
نویسنده: استخدام کار