Solved

mobileconfig on iphone via php

Posted on 2011-03-17
1
2,652 Views
Last Modified: 2012-08-13
I have a .mobileconfig file , and want to serve it to the iphone via php. I have this in my php file :

header('Content-type: application/x-apple-aspen-config; charset=utf-8');
header('Content-Disposition: attachment; filename="test.mobileconfig"');


my config file is named test.mobileconfig.

I keep getting this error on the iphone:
cannot install profile
safari could not install a profile due to an unknown error

Any ideas?
0
Comment
Question by:sikt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
packetguy earned 50 total points
ID: 35409976
You have to add the "x-apple-aspen-config" MIME type to your apache server httpd.conf file, or, depending on your apache server's configuration you may be able to do locally within the directory containing the .mobileconfig file by creating a .htaccess file. Add the following lines:

<IfModule mod_mime.c>
      AddType application/x-apple-aspen-config .mobileconfig
</IfModule>

This way your .mobileconfig file will be served up with the MIME Content-Type of application/x-apple-aspen-config.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Apple's Mac OS X has become an official member of the malware club. The Flashback Trojan has affected over half million Macs, worldwide. It is behavior that ultimately gets malware onto a person’s computer. Obsolete or out-of-date software helps…
A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …

752 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