Solved

Internal Server Error when saving document unchanged

Posted on 2015-01-28
5
83 Views
Last Modified: 2015-01-31
I edit a file in filezilla and when I upload it i get:  
Internal Server Error

What could cause this?  The website works perfectly.  I
I open the file locally and make no changes to it
I save it and filezilla saves the unchanged file to the server.
I go to that same url and it's not working.  

Is there anything that might cause this?
0
Comment
Question by:vrosas_03
  • 3
  • 2
5 Comments
 
LVL 2

Assisted Solution

by:Uwe Degenhardt
Uwe Degenhardt earned 500 total points
ID: 40577315
This could be caused by a permission problem.
Did you have a look in the Webserver-Logfile ?
0
 

Author Comment

by:vrosas_03
ID: 40578430
If I change the index.php to index.html it works.

there are php pages on there already though but they only work if they remain on the server.  I can change the name and change it back and they will still work.

I checked the permissions and they are the same for pages that work as for pages that don't.  
What directory would the log file be in?  
Would it be in the site folder in a multisite website.  
Which directory:
var
usr
tmp
sys
srv
sbin
bin
mnt
?
There are other directories it could be in but if you know a common directory where the log file would be located that would help a lot.
0
 
LVL 2

Accepted Solution

by:
Uwe Degenhardt earned 500 total points
ID: 40578518
Check in /etc/httpd/conf/... (CentOS) or in /etc/apache2/sites-enabled/000-default (default) (Debian/Ubuntu)
if you can see any virtualhost giving you the actual physical document-root directory
either in: /var/www/ or /home/... or /srv/www
Most of the times (95%) it is somewhere in these three directory trees.
If you have the DocumentRoot path it should be solvable. If you have no virtualhosts go and check apache2.conf or http.conf
There you can the the webservers document-root as well.
0
 

Author Closing Comment

by:vrosas_03
ID: 40581139
I think it's caused by being the wrong owner.   The files i upload have a different owner than the ones that are there already.
0
 
LVL 2

Expert Comment

by:Uwe Degenhardt
ID: 40581936
Yes. Thank you for your points. Then try to change the umask and/or the standard user of the ftp-user logging in.
Also add the user to the group-file under /etc/group
After that begin with umask 022 and the new ownership delivery in the group and all should be fine.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now