Solved

No permission to run php file on /dev/ ttyACM0 device

Posted on 2010-11-26
4
1,228 Views
Last Modified: 2012-05-10
Hi All,

I am having difficulties executing php file through apache on to /dev/ ttyACM0 device, example (http//localhost/myphp.php).

The file suppose to send text message through /dev/ttyACM0. But i get permission denied.  Through Terminal I can execute php using (php myphp.php), it will run without problem.

I gave chmod 777 to /dev/ ttyACM0. And chown apache user on /dev/ ttyACM0, but still permission denied.

It seems to me permission restricted on apache to run /dev/ ttyACM0.

How can i solve this ?

thanks
0
Comment
Question by:rawandnet
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
dsmile earned 250 total points
ID: 34217955
Pls attach your httpd.conf here so we can all take a look
0
 
LVL 8

Assisted Solution

by:Zado
Zado earned 250 total points
ID: 34218153
Try to give chmod 777 to your root folder and apply it to all subfolders/files (usually you have this option in ftp clients)
0
 

Author Comment

by:rawandnet
ID: 34224232
Sorry for the delay replay

dsmile: Httpd.conf file has default setting, do I need to make any changes under httpd.conf file, see below for httpd configuration. I am getting to a point to run httpd as root user, which isn’t secure.

Zado: there is one configuration file and that is conlaed /etc/gnokiirc, I have give chmod 777 on that file still nothing. And I don’t have ftp on my server.

httpd.conf
(((((((((((((
ServerRoot "/etc/httpd"

PidFile run/httpd.pid

#Listen 12.34.56.78:80
Listen 80

Include conf.d/*.conf

endedStatus On

User apache
Group apache

ServerAdmin root@localhost

UseCanonicalName Off

DocumentRoot "/var/www/html"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_userdir.c>
    UserDir disable
</IfModule>

DirectoryIndex index.html index.html.var
AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

TypesConfig /etc/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off

ErrorLog logs/error_log

tomLog logs/access_log combined


ServerSignature On

Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"


<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddDefaultCharset UTF-8

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>
</IfModule>
</IfModule>

)))))))




0
 

Author Closing Comment

by:rawandnet
ID: 34225121
thanks guys i fixed it, it was to do with program i installed. not apache.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error Message during CentOS 7 Minimal Install 3 33
get domain with php 7 19
how to use a function in heredoc 5 21
PHP: Insert Data into MySQL 5 0
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

14 Experts available now in Live!

Get 1:1 Help Now