General Setup help

I am using ubuntu 15.10 64bit.
I installed apache2, php5, php5-pear, mysql etc.
I enabled mod rewrite with a2enmod rewrite.
I extracted invoiceplane to /var/www/html/invoice
I set up the .htaccess file so it says /invoice
I restarted apache and I still get a 404 error when I try to go to localhost/setup or localhost/invoice/setup
not sure which one.
What do I do?

Did you set AllowOverride All in your general mod_rewrite configuration?

Also please post the contents of your .htaccess file here.

RewriteEngine on RewriteBase /invoice RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php [L]
Sorry about not getting back to this right away. I was away for a while.

Could you please try again with the latest version of InvoicePlane? The .htaccess features was disabled with this version and should work without any problems now.

It is still not working.
:confused:

You are not able to open the setup from localhost/invoice/index.php/setup???

Thank you!
I was trying /invoice/setup
But now I am stuck here:
./uploads is not writable

./uploads/temp is not writable

./uploads/archive is not writable

./uploads/customer_files is not writable

./application/config/ is not writable

./application/helpers/mpdf/tmp is not writable

./application/helpers/mpdf/ttfontdata is not writable

./application/helpers/mpdf/graph_cache is not writable

./application/logs is not writable

Well you have to make these directories writable by everyone or the webserver.
Please search Google for help as this is very system-specific.

I figured it out.
Thank you!
I had to use this to give apache access to its own files.

chown -R www-data:www-data /var/www