This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Apache giving error in
#1
[Not Solved] Apache giving error in
Apache wont start because there is an error in /etc/sentora/configs/apache/httpd-vhosts.conf but this file is generated by Sentora. How to I regenerate the file if I cant start apache? Any ideas?

Sorry the error is in the php_admin_value variable in this file /etc/sentora/configs/apache/httpd-vhosts.conf
Here are the relevant lines in the conf file:
  9 Listen 80
10
11 # Configuration for Sentora control panel.
12 <VirtualHost *:80>
13 ServerAdmin redacted
14 DocumentRoot "/etc/sentora/panel/"
15 ServerName cp.mydomain.com
16 AddType application/x-httpd-php .php7 .php
17 php_admin_value sp.configuration_file "/etc/sentora/configs/php/sp/sentora.rules"

Does anyone know how I can fix this anyway easily?
Reply
Thanks given by:
#2
[Not Solved] RE: Apache giving error in
Version installed/OS.

Can you get apache error logs?
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
[Not Solved] RE: Apache giving error in
The os is Ubuntu 22. I can't start Apache because of this error.
Reply
Thanks given by:
#4
[Not Solved] RE: Apache giving error in
(12-07-2024, 03:30 AM)kevwebbie Wrote: The os is Ubuntu 22. I can't start Apache because of this error.

Sentora v2.0.2 is the current working production release. (php 7)

Sentora will not run on Ubuntu 22 yet since it uses php 8+ by default. We have explained this many times.
You need to install Ubuntu 20.04 and re-install Sentora.

Can you please post what you did to install Sentora on Ubuntu 22?
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#5
[Not Solved] RE: Apache giving error in
Just edit the path in the httpd-vhosts.conf file and make sure the path of sp.configuration_file is correct. If Apache still does not start, you can try running Sentora again from the command line to regenerate the configuration files or double-check the permissions on these files Incredibox game
Reply
Thanks given by:
#6
[Not Solved] RE: Apache giving error in
It looks like the issue is with the php_admin_value directive in your /etc/sentora/configs/apache/httpd-vhosts.conf file, which is preventing Apache from starting. Since this file is auto-generated by Sentora, manually editing it is not recommended as changes may be overwritten.
GeoGuessr
Reply
Thanks given by:
#7
[Not Solved] RE: Apache giving error in
(12-24-2024, 02:20 PM)asher Wrote: Just edit the path in the httpd-vhosts.conf file and make sure the path of sp.configuration_file is correct. If Apache still does not start, you can try running Sentora again from the command line to regenerate the configuration files or double-check the permissions on these files  Geometry Dash Lite

If nothing works, does reinstalling or updating Sentora resolve the issue without affecting websites and data?
Reply
Thanks given by:
#8
[Not Solved] RE: Apache giving error in
(12-06-2024, 03:27 AM)kevwebbie Wrote: Apache wont start because there is an error in /etc/sentora/configs/apache/httpd-vhosts.conf but this file is generated by Sentora. How to I regenerate the file if I cant start apache? Any ideas?

Sorry the error is in the php_admin_value variable in this file /etc/sentora/configs/apache/httpd-vhosts.conf
Here are the relevant lines in the conf file:
  9 Listen 80
10
11 # Configuration for Sentora control panel.
12 <VirtualHost *:80>
13 ServerAdmin redacted
14 DocumentRoot "/etc/sentora/panel/"
15 ServerName cp.mydomain.com
16 AddType application/x-httpd-php .php7 .php block breaker
17 php_admin_value sp.configuration_file "/etc/sentora/configs/php/sp/sentora.rules"
Does anyone know how I can fix this anyway easily?

It sounds like you're facing a common issue with Apache not starting due to a configuration error in the httpd-vhosts.conf file. To resolve this, try the following steps:

Check the error logs: Look at the Apache error log (/var/log/apache2/error.log) for specific error messages that could guide you to the exact problem.

Edit the configuration file: If the issue is with the php_admin_value line, ensure that the path to sentora.rules is correct and accessible. You might want to comment out that line temporarily to see if Apache starts without it.

Regenerate the config file: If you can't start Apache to regenerate the file, you might need to manually create a backup of the current configuration and then restore the default configuration files from the Sentora installation.

Restart Apache: After making changes, try restarting Apache with sudo systemctl restart apache2.

If you're still having issues, please share any error messages from the logs for further assistance. Good luck!
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Dovecot error rsthomas 2 906 12-17-2024, 02:35 PM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)