My website does not work on the server using directadmin

Abdelrahman

New member
Joined
May 2, 2015
Messages
4
Hello ,
it is the first time for me to upload a website written in php language with mysql by codeigniter framework .
so , i uploaded all folders which were on my localhost and working fine on it to the server.
and edited many configuration files.
but it still does not work
for the home page it shows me 500 internal server error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request

and i create a database on phpmyadmin
but when trying to log in it shows that error :

Not Found

The requested URL /phpmyadmin was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

i think that the problem is in the .htaccess files
i do not know what to do
so any illustrative steps for the right way to finish it successfully ?
 
Hello,

Do you own/rent a server with Directadmin or have only an account from a hosting company?

Anyway you should start from reading error logs of Apache/Nginx web-server. Without knowing details from logs hardly can we help you further.
 
Hello,

Do you own/rent a server with Directadmin or have only an account from a hosting company?

Anyway you should start from reading error logs of Apache/Nginx web-server. Without knowing details from logs hardly can we help you further.

yes i rent a server with directadmin
and the homepage now is :

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] 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.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
http://aics-embedded.com/
, i think the problem is with the htaccess file
is this .htaccess file's content is compatible with direct admin :

RewriteEngine on
RewriteCond %{REQUEST_URI} !(\.css|\.js|\.ttf|\.otf|\.eot|\.woff|\.svg|\.png|\.jpg|\.jpeg|\.gif|robots\.txt)$ [NC]
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /aics-embedded/index.php/$1 [L]
?

instead of default htaccess file ?
DirectoryIndex home.html index.html index.php parking-page.html ??
 
also my index.php page is directory is public_html/application/views/index.php

is this a problem or should i put it in public_html ?
 
yes i rent a server with directadmin

my homepage now is :
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] 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.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

is the problem with the .hraccess file ?
my file is :
RewriteEngine on
RewriteCond %{REQUEST_URI} !(\.css|\.js|\.ttf|\.otf|\.eot|\.woff|\.svg|\.png|\.jpg|\.jpeg|\.gif|robots\.txt)$ [NC]
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /aics-embedded.com/index.php/$1 [L]

is this compatible with directadmin ?

the default htaccess file on server was :
DirectoryIndex home.html index.html index.php parking-page.html
and i replaced it with mine
 
Read error logs of Apache/Nginx web-server. Of hire somebody if it's something uncommon for you.

is this compatible with directadmin ?


Test it. Remove it from your .htaccess file temporary and see results.

is this a problem or should i put it in public_html ?


I don't know anything of your application. So I have not answer here. If your application requires it...


Anyway guessing is not what you want from us I'd rather say. So please open error logs and provide its content.
 
Back
Top