Menu

#191 Import IP Addresses

version 0.8
open
nobody
None
1
2016-03-08
2016-02-22
Anonymous
No

Unable to import IP addresses from .csv file

NOTE: If there is a way to import via mysql, please provide that method

ERRORS
move_uploaded_file(./upload/import.csv): failed to open stream: Permission denied in /var/www/html/phpubnets/import-subnet/import-verify.php on line 22

move_uploaded_file(): Unable to move '/tmp/phpVEJOeh' to './upload/import.csv' in /var/www/html/phpipaets/import-subnet/import-verify.php on line 22

I have verified the web server runs as user: apache

[root@ipam import-subnet]# grep -A 5  user /etc/httpd/conf/httpd.conf
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache
Group apache

I have verified apache is group and has read,write,exectue permissions
[root@ipam import-subnet]# ls -lhd /var/www/html/phpipam/
drwxrwxr-x. 11 root apache 4.0K Feb 21 15:09 /var/www/html/phpipam/

[root@ipam import-subnet]# ls -lhd /var/www/html/phpipam/app/subnets/import-subnet/upload/
drwxrwxr-x. 2 root apache 22 Feb 21 10:37 /var/www/html/phpipam/app/subnets/import-subnet/upload/

Discussion

  • Miha Petkovsek

    Miha Petkovsek - 2016-02-22

    Chmod upload dir to 777.

     
  • Anonymous

    Anonymous - 2016-02-23
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2016-03-08
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel