Solved

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

Posted on 2010-11-26
4
1,227 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks guys i fixed it, it was to do with program i installed. not apache.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

744 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

17 Experts available now in Live!

Get 1:1 Help Now