Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The command apachectl -t failed #1034

Open
rehankausarDev opened this issue Jan 2, 2023 · 0 comments
Open

The command apachectl -t failed #1034

rehankausarDev opened this issue Jan 2, 2023 · 0 comments

Comments

@rehankausarDev
Copy link

We are building a SaaS system where every customer will have access to our system. As soon as the system opens a new account, a subdomain will be created for the customer.
Now to add this subdomain to the apache vhost I need to run the command "apachectl -t" and "apachectl graceful" on the user running the script.
Apache can load the new vhost configuration. But the user running the script does not have permission to run the command "apachectl -t". All that the user needs is permission to run these two commands to load the configuration and register the subdomain.

"The command \"apachectl -t\" failed.\n\nExit Code: 1(General error)\n\nWorking directory: /home/systemhubs/public_html\n\nOutput:\n================\n\n\nError Output:\n================\nhttpd: Could not open configuration file /etc/apache2/conf/httpd.conf: Permission denied\n"
could you please let me know how I can solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant