File permissions question

file-permissionspermissions

I just switched my site's server from Windows to Linux, and am finally able to control file permissions from my ftp. So, seeing that all permissions were 705 by default (and not wanting just anyone to have permission to execute), I went and changed everything to 744.

Now, gif and jpg links don't work, pdf download links don't work, php links don't load, and mov files don't play. Conversely, all html files work perfectly. Setting things back doesn't seem to help. Even setting to 777 gets me nowhere.

Any ideas on what might be going wrong? I've been googling file permissions all day (solved that problem with the Windows-Linux switch, which has bred a new problem), and I don't think anything I can find has escaped my attention.

The site: absis-minas.com

Go easy on a n00b. I took up learning php out of interest, and wound up delving into server management issues due to a very simple line of code not working the way it was supposed to.

Thanks!

Best Answer

If you set everything to 777 then right off the bat, you know that something else is up.

That being said, standard permissions for your files and folders should be : - for folders : rwxr-xr-x (755) - for most files rwr--r-- (644)

In your case, since you've just migrated your site over to a new server, you'll want to verify your web server configurations and folder paths. Specifically, your web browser ought to be able to execute your php files. If suexec is used, then file ownership should be investigated as well .. log files /var/log/apache2/error.log or the like as well as the suexec log will provide information.

Since you're moving from Windows to Linux, you may also want to ensure that all of your paths work and are referred to in the same case ... I'd also go through your index page and verify whether all the paths actually exist ... for instance, this gives a 404 / not found : Further