Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6390565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:33:46+00:00 2026-05-25T03:33:46+00:00

I have symfony task call doNothing and i want to execute it from executing

  • 0

I have symfony task call “doNothing” and i want to execute it from executing shell_exec('/var/www/esm/symfony php symfony doNothing');

by calling to my symfony action

apache error saying permission denied.

i think www-data user dont have permission how could i resolved this?

Edited

error is

sh: /var/www/esm/symfony: permission denied

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:33:46+00:00Added an answer on May 25, 2026 at 3:33 am

    You should look in the directory where your script is.

    Use ls -la to show all files in the folder and their permissions (to execute php script file must have at least x bit assigned to www-data or its group).

    Also all the parent directories up to / MUST have x bit assigned to user/group for apache to be able to change directory to.

    Look. You have Tree structured Files system:

    • /var/www is in /var
    • /var/www/esm is in /var/www
    • /var/www/esm/symfony is in /var/www/esm

    So www-data user should have the ability to Execute (x bit) all of that directories.

    So when in / execute ls -l and look wheter /var has x bit for www-data user or it’s group (drwxrwx—) and it owns this directory. When in /var execute ls -l an so on…

    You can change permissions to 777 for every directory. But DO NOT use -R key. Just change permissions to the directory only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Symfony 2 app outside webroot and I created a symlink from var/www/blog
I have a Symfony 1.2.4 application, taken and modified from the Symfony sandbox application
We have FireSymfony that allows one to view the Symfony, PHP variables in a
I'm building a site using symfony php framework. I have a link in my
On a current project which I'm currently working, i have a symfony task that
I use symfony 1.4.11. I have frontend and backend form. Frontend : <?php {
I have a question - how to add my own task alias in Symfony
I have the following (Symfony 2) PHP Template: <?php $messages = $view['session']->getFlashes(); if (count($messages)
I have created a task in Symfony 1.4 that loads in some CSV files
I have task: <?php require_once(dirname(__FILE__).'/../../config/ProjectConfiguration.class.php'); class GroupCheckTask extends sfBaseTask { protected function configure() {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.