Posts

Showing posts from March 10, 2019

Problems with apache and php project

Image
0 So I've got this weird problem, I am trying to host a php codeigniter project but I can only access my index page all the other pages give me a 404 error I want it on port 81 so in ports.conf I have added Listen 81 (No problems there but I'm going to give all the configs I have changed so you have some sort of overview) Apache2.conf Alias "/foo" "/var/www/foo <Directory /var/www/foo> Options Indexes FollowSymLinks ExecCGI AllowOverride All AddHandler cgi-script .php Require all granted </Directory> foo.conf <VirtualHost *:81> ServerAdmin webmaster@localhost DocumentRoot /var/www/team28 ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> So the problem now is I ca

Conservation of Mass and Energy

Image
2 $begingroup$ I was thinking about some physics (relativity in particular), when it suddenly occurred to me that all my life I had been balancing chemical equations assuming conservation of mass, but I was disregarding energy! For example, consider combustion: $$rm CH_4 + 2O_2 to 2H_2O + CO_2 + {Energy}$$ However, since energy was released, some mass should have been converted to energy right? Why is the equation reflecting a balance in mass? special-relativity conservation-laws mass-energy physical-chemistry share | cite | improve this question edited 1 hour ago rob ♦ 41.2k 9 74 169