New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Internal Server Error

Started by tewfik, July 27, 2018, 07:18:36 PM

Previous topic - Next topic

tewfik

Hello,
Thank you for helping me solve this problem
"
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at info@centos-webpanel.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
"

bullten

What is output of

tail -f /usr/local/apache/logs/error_log

tewfik

thank's

[Fri Jul 27 15:29:54.658057 2018] [:error] [pid 9242:tid 140065036556032] [client 129.45.62.8:13123] SoftException in Application.cpp:569: Directory "/usr/local/apache/htdocs/applicationtest" is writeable by group
[Fri Jul 27 15:29:54.658228 2018] [core:error] [pid 9242:tid 140065036556032] [client 129.45.62.8:13123] End of script output before headers: index.php

Merci

bullten

You need to set directory permission to 0755 and files permission to 0644. You cant have 0777 as any file or directory permission.

chmod 0755 /usr/local/apache/htdocs/applicationtest


tewfik

I changed the permissions to 0755 files on 0644.
i restart apache
always the same message
here are the messages from the logs file

[Fri Jul 27 16:07:44.845634 2018] [:error] [pid 9197:tid 140056694077184] [client 129.45.62.8:13135] SoftException in Application.cpp:569: Directory "/usr/local/apache/htdocs" is writeable by group
[Fri Jul 27 16:07:44.845802 2018] [core:error] [pid 9197:tid 140056694077184] [client 129.45.62.8:13135] End of script output before headers: index.php

bullten

Message has changed

chmod 0755 /usr/local/apache/htdocs

tewfik

Thank you
now I have another problem connecting to the database

tewfik

Une erreur s'est produite lors de la connexion á la base de données
Connection attempt failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

bullten

Are you using root password in your database config file?

tewfik

j'ai plusieurs sous dossier et dans chaque dossier un fichier Index
donc il faut changer l'ensemble des permissions?

bullten

The error above means you are not using root mysql password in your database config file.

cat /etc/.my.cnf

using the command above you will get root login for mysql database.

Locate where is your database configuration file and use the details.

tewfik


I have a subfolder (_lib) for the configuration of the database
currently when I'm doing IP / Folder is / _lib I have the same message

bullten

Do you even know how to install the script? Have you installed the script previously?

May i know what script you are using for installation?

tewfik

we use scriptcase as a development tool, usually it's the following path: http: // ip / dossiertest / _lib / prod / lib / php /? login which gives me the possibility to configure the database

tewfik