Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2009
    Location
    rules.php
    Posts
    111

    chmod / copy / mkdir using php

    Hello,

    I get the below error while trying to create a domain on cpanel using php.

    ========================
    Warning: chmod() [function.chmod]: Operation not permitted in test.php on line 149

    Warning: copy(rating.php) [function.copy]: failed to open stream: Permission denied in functions.php on line 3552

    Warning: copy(productdetails_april30.php) [function.copy]: failed to open stream: Permission denied in functions.php on line 3552
    ========================

    Is there any module missing to allow chmod function via php ?

    Any help would be appreciable..

  2. #2
    Join Date
    Jun 2009
    Location
    Kochi,India
    Posts
    179
    Have you got php-suexec enabled on your server?
    Ezeelogin -
    The ultimate multiple server administration software.
    *Parallel shell *rm -rf protection *SSH logging*automated password changes*encrypted storage*
    AdMod.com -Delivering innovative web hosting solutions

  3. #3
    Sorry, didn't read the OP properly, my bad
    Last edited by Ore Stone Radio; 09-13-2009 at 08:59 AM.

  4. #4
    Join Date
    Mar 2009
    Location
    Gods Own Country
    Posts
    681
    are you sure you are using the WHM api to create domain?

  5. #5
    Join Date
    Aug 2009
    Location
    rules.php
    Posts
    111
    Quote Originally Posted by fabin View Post
    are you sure you are using the WHM api to create domain?
    Hi Fabin,

    Yes, we are using WHM api for creating domains.

    Thanks

  6. #6
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    565
    Quote Originally Posted by supportproTech View Post
    Hi Fabin,

    Yes, we are using WHM api for creating domains.

    Thanks
    You may want to have a cPanel technical analyst take a look at this with you: http://tickets.cPanel.net/submit
    David Grega
    cPanel Technical Product Specialist

  7. #7
    Join Date
    Aug 2009
    Location
    rules.php
    Posts
    111
    Hello,

    Thanks for all responses.

    The issue has been fixed after doing a easy apache + dom xml + php 4. It was previously on php5.

Similar Threads

  1. chmod 700 binaries like ls, cp, mkdir ?
    By barleduc in forum Hosting Security and Technology
    Replies: 7
    Last Post: 04-19-2006, 08:07 AM
  2. Chmod + Mkdir
    By slice16 in forum Web Design and Content
    Replies: 2
    Last Post: 02-21-2005, 11:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •