<p>ok i solved the problem by following the answer to this question here:</p>

<p><a href="https://craftcms.stackexchange.com/questions/4661/fastcgi-error-when-accessing-a-local-development-site-using-mamp-pro">FastCGI error when accessing a local development site using MAMP Pro</a></p>

<p>even though the ajax call didn't generate an apache error at the moment it was called, it must have been something to do with fastcgi in general, cos the answer to that question worked for me! </p>

<p>i have never had this problem before, and i have heaps of other local sites which also do file/image uploading. so strange. and uploading of other file types (eg pdf) into the assets area worked no problem! doesn't make sense. but as a developer, sometimes you just accept the mystery of it all...</p>

<h3>UPDATE</h3>

<p>the problem started rearing it's ugly head again, even though i hadn't touched the <code>httpd.conf</code> edit i did to fix it. so i just deactivated the fastcgi module on the MAMP Pro dashboard. et voila, we're back in business....</p>

CC BY-SA 3.0
2015-07-23T17:29:39.830Z
Ahh, nice catch.  Got to be some weird MAMP bug, I suspect.
Brad Bell
CC BY-SA 3.0
2015-11-25T13:35:58.883Z
Great find. Such a random error. You saved me hours of troubleshooting. Many thanks!
Ian Young
CC BY-SA 3.0
2015-07-23T09:49:43.910Z
2016-04-14T01:22:33.323Z
2017-04-13T12:50:59.930Z
bhu Boue vidya
<p>Just giving Craft CMS a test drive. Setup a local site using MAMP Pro. Got the basic site up and running ok, admin as well. Then i wanted to try out image assets, so I created an Asset Source for images, local folder. Created my "images" folder under the public dir, and specified "images/" as the file system path for my asset source. Added an image transform.</p>

<p>Then I try and upload an image, and it fails, with the ajax call "/index.php/admin/actions/assets/uploadFile" returning a 500 error. I tried checking the log files but there are no error messages relating to this failed ajax call.</p>

<p>Any ideas what I am doing wrong? Thanks!</p>

CC BY-SA 3.0
2015-07-23T06:02:19.207Z
If you don't see the underlying error message in `craft/storage/runtime/logs`, try checking Apache's error log files.  Maybe it's a permissions issue on the `images` folder?
Brad Bell
CC BY-SA 3.0
2015-07-23T06:18:16.250Z
true! i should've checked before posting. but unfortunately nothing in the apache error log (/Applications/MAMP/logs/apache_error.log). then tried all sorts of permissions on the images directory: 700, 770, 777, 775, 755, and none of them worked. on other local dev sites where i upload image files 755 has worked (with apache running as exactly the same user etc). running out of options...
bhu Boue vidya
CC BY-SA 3.0
2015-07-23T06:18:52.613Z
am i right in thinking i can use a relative path for the asset source ("images/") if that dir exists underneath the public dir?
bhu Boue vidya
CC BY-SA 3.0
2015-07-23T06:19:40.827Z
Yeah, that should be fine.  Maybe try changing it to an absolute path just to rule things out?
Brad Bell
CC BY-SA 3.0
2015-07-23T06:22:10.860Z
yeh, did that but to no avail :(
bhu Boue vidya
CC BY-SA 3.0
2015-07-23T06:23:35.743Z
If you try the upload with your browser's inspector's network tab open, then check the response for the AJAX call where the upload occurs, does it return anything useful?
Brad Bell
CC BY-SA 3.0
2015-07-23T06:56:13.557Z
Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/26144/discussion-between-bhu-boue-vidya-and-brad-bell).
bhu Boue vidya
<assets>
Getting a "500 Internal Server Error" when uploading an image asset
# Getting a "500 Internal Server Error" when uploading an image asset

(Asked by: username_0 on 2015-07-23)

Just giving Craft CMS a test drive. Setup a local site using MAMP Pro. Got the basic site up and running ok, admin as well. Then i wanted to try out image assets, so I created an Asset Source for images, local folder. Created my "images" folder under the public dir, and specified "images/" as the file system path for my asset source. Added an image transform.

Then I try and upload an image, and it fails, with the ajax call "/index.php/admin/actions/assets/uploadFile" returning a 500 error. I tried checking the log files but there are no error messages relating to this failed ajax call.

Any ideas what I am doing wrong? Thanks!

**Tags:** assets

> **Comments:**
> **username_1**: If you don't see the underlying error message in `craft/storage/runtime/logs`, try checking Apache's error log files.  Maybe it's a permissions issue on the `images` folder?  
> **username_0**: true! i should've checked before posting. but unfortunately nothing in the apache error log (/Applications/MAMP/logs/apache_error.log). then tried all sorts of permissions on the images directory: 700, 770, 777, 775, 755, and none of them worked. on other local dev sites where i upload image files 755 has worked (with apache running as exactly the same user etc). running out of options...  
> **username_0**: am i right in thinking i can use a relative path for the asset source ("images/") if that dir exists underneath the public dir?  
> **username_1**: Yeah, that should be fine.  Maybe try changing it to an absolute path just to rule things out?  
> **username_0**: yeh, did that but to no avail :(  
> **username_1**: If you try the upload with your browser's inspector's network tab open, then check the response for the AJAX call where the upload occurs, does it return anything useful?  
> **username_0**: Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/26144/discussion-between-bhu-boue-vidya-and-brad-bell).  

---

## 1 answers

### Answer by username_0 on 2015-07-23. Score: 6 | Accepted answer

ok i solved the problem by following the answer to this question here:

[FastCGI error when accessing a local development site using MAMP Pro](https://craftcms.stackexchange.com/questions/4661/fastcgi-error-when-accessing-a-local-development-site-using-mamp-pro)

even though the ajax call didn't generate an apache error at the moment it was called, it must have been something to do with fastcgi in general, cos the answer to that question worked for me!

i have never had this problem before, and i have heaps of other local sites which also do file/image uploading. so strange. and uploading of other file types (eg pdf) into the assets area worked no problem! doesn't make sense. but as a developer, sometimes you just accept the mystery of it all...

### UPDATE

the problem started rearing it's ugly head again, even though i hadn't touched the `httpd.conf` edit i did to fix it. so i just deactivated the fastcgi module on the MAMP Pro dashboard. et voila, we're back in business....

> **Comments:**
> **username_1**: Ahh, nice catch.  Got to be some weird MAMP bug, I suspect.  
> **username_2**: Great find. Such a random error. You saved me hours of troubleshooting. Many thanks!  

---

