Would like to start by saying I have no previous experience with SSH commands. Our new server doesn’t offer FTP or cPanel for security reasons.
I successfully installed magento on the server but had an issue which required me to drop the database, and delete the magento files. I used rm -rf * . on the /var/www/ directory to clear it out.
I then untared (? correct term ?) the magento.tar.gz file again using 'tar -zxvf magento.tar.gz' in the directory I want it and the php files aren’t executing. They just return a 500 internal sever error.
I uploaded a phpinfo(); file to test if php is still working and it executes fine and shows me what it should.
I’m not sure why these files aren’t executing but in terminal the phpinfo file I uploaded is showing as green in colour but all of the php files from the tar.gz are black? I’m not sure if this is telling me something.
Did I delete something I should have by using rm -rf *. in the /var/www/ folder or is the fact that the magento extracted files are displaying as black in terminal while a php file I uploaded manually is displaying as green telling me something? Did I not untar them correctly this time?
The black vs green filenames have to do with file permissions. A lot of httpd instances are setup to not serve files unless owned by root, with group access to “apache”.
To find out exactly what the error is on the server, you should look at the Apache error logs (often found at /var/logs/apache/) to see exactly why the server gives you an error.