Solved

mobileconfig on iphone via php

Posted on 2011-03-17
1
2,553 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
1 Comment
 
LVL 11

Accepted Solution

by:
packetguy earned 50 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

12 Experts available now in Live!

Get 1:1 Help Now