Hi, I was messing around trying to get Wordpress to install on my Ubuntu 8.10 VM and I've hit a problem. For a while I switched my web server root to a folder I created in my Documents folder (by editing the "default" file in /etc/apache2/sites-available . Also, I've added the line "AddType application/x-httpd-php.html" to the verry bottom of the file /etc/apache2/apache2.conf . Now however, when I try to restart apache I get the error:
Syntax error on line 282 of /etc/apache2/apache2.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
Could anyone help with this? When I try to test wordpress by going to http://localhost/127.0.0.1/wordpress (is this right?) Firefox says it can't connect to the server at localhost. I'm guessing this is because I've changed around the web server root and haven't restarted apache due to the error noted above, but I don't know how to fix this...
NB: This is the tutorial I used for all this.
Thanks, -ZipOn
You needWhich tells apache to associate the .php extension with the x-httpd-php type.Code:AddType application/x-httpd-php .php
Thanks for that John, after adding that line to the file it still didn't work. Then I realised I wasn't using sudo when restarting Apache, so I tried that and everything now appears to be working as it should. Thanks again.
-ZipOn
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks