enable http PUT for PHP

simonjs

New member
Joined
Feb 18, 2010
Messages
3
I've been trying to get PUT running through DA but so far I've had no success. There's little or no relevant documentation on this. I've realised that I can't just edit the httpd.conf file associated to the user account, there's got to be more config involved somewhere.

What are the steps I should take in Direct Admin to get PUT working? I am a complete novice at this so I really need the help if anyone can.

Thanks
 
What do you mean by PUT? What are you trying to do?
 
To clarify, I want to enable the http PUT REST method for a specific user, but i'm not sure how to go about it.
 
I've moved the thread to the Apache subforum. It appears from your opening post to this thread that you know the code you need, but just don't know where to put it, in DirectAdmin.

If you don't have complete admin/root access to the server then you'll have to contact your hosting company.

If you do have complete admin/root access, then perhaps you can give us an example of the code and how and where you've implement it in Apache if it weren't a DirectAdmin server, and perhaps one of us can help you.

While DirectAdmin generally doesn't get in the way of Apache, it does use template files to create the main and user-level httpd configurations. Sometimes you have to make changes manually and chattr the user-level configuration as immutable to make certain configurations work. These have been discussed previously on these forums. If you know what you want the configuration to look like, but don't know how to make it stick when DirectAdmin wants to change it, then simply change the file manually through the root shell, then chattr the file as immutable.

Jeff
 
Solution

It took me a while to find anything related to this but I've found a solution myself :)

Open "/etc/httpd/conf/httpd.conf" and look for:

<Directory /home/*>
AllowOverride All
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

Then just add PUT (and maybe DELETE if you want) after PROPFIND. Restart httpd by "/sbin/service httpd restart" and voila... your http PUT requests are working :)
 
Back
Top