Solved

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

Posted on 2010-11-26
4
1,239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

717 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