Error 500 in xampp (possible htaccess?)

Ultraface19

New Member
Apr 10, 2019
9
0
I am trying to install a CMS but when configuring everything I get this error:
- An internal server error has occurred and your request could not be completed. An internal server error has occurred and your request could not be completed. Either the server is overloaded or there has been a failure in executing a CGI program.

I have tried increasing the memory_limit of xampp but it doesn't work,
I have been reading that it could be an error by the htaccess but I cannot find what the error can be, over here I leave the htaccess and I hope someone can help thanks!!

htaccess:
location /submit {
rewrite ^/submit(|/)$ /deprived/submits/submit.php;
}

location /register {
rewrite ^/register-submit(|/)$ /deprived/submits/register_submit.php;
rewrite ^/register(|/)$ /files/index/register.php;
}

location /pictures {
rewrite ^/pictures/(.*)_small.png /pictures/$1.png;
}

location /newfoto {
rewrite ^/newfoto/core/(.+)(|/)$ /newfoto/index.php?id=$1;
}

location /roomenterad {
rewrite ^/roomenterad/(.*)$ /ads.php?mode=client;
}

location /functions {
rewrite ^/functions-all(|/)$ /deprived/funciones/functions.php;
}

location /avatar {
rewrite ^/avatar-generator(|/)$ /deprived/funciones/llamalook.php;
}

location /logout {
rewrite ^/logout(|/)$ /deprived/funciones/logout.php;
}

location /bye {
rewrite ^/bye(|/)$ /deprived/funciones/logout.php;
}

location /loadnames {
rewrite ^/loadnames(|/)$ /deprived/funciones/llamanombre.php;
}

location /loademails {
rewrite ^/loademails(|/)$ /deprived/funciones/llamaemail.php;
}

location /buscador {
rewrite ^/buscador(|/)$ /deprived/funciones/buscador.php;
}

location /habbo {
rewrite ^/habbo-imaging/avatarimage(|/)$ /habbo-imaging/avatar.php;
rewrite ^/habbo-imaging/badge/(.*) /habbo-imaging/badge.php?badge=$1;
rewrite ^/habbo-imaging/head(|/)$ /habbo-imaging/user-badge/head.php;
}

location /game {
rewrite ^/game/c_images/notifications/fig/(..*).png(|/)$ /game/c_images/notifications/user.php?fig=$1;
rewrite ^/game(|/)$ /files/personal/client.php;
}

location = /API/dashboard {
rewrite ^(.*)$ /API/dashboard.php;
}

location = /API/statistics {
rewrite ^(.*)$ /API/statistics.php;
}

location = /API/team {
rewrite ^(.*)$ /API/staff_team.php;
}

location = /API/players {
rewrite ^(.*)$ /API/players.php;
}

location = /API/players/edit {
rewrite ^(.*)$ /API/players_edit.php;
}

location = /API/players/inventory {
rewrite ^(.*)$ /API/players_inventory.php;
}

location = /API/bans {
rewrite ^(.*)$ /API/bans.php;
}

location /API {
rewrite ^/API/bans/page/(.*)$ /API/bans.php?page=$1;
rewrite ^/API/catalog/pages/page/(.*)$ /API/catalog_pages.php?page=$1;
rewrite ^/API/news/page/(.*)$ /API/news.php?page=$1;
rewrite ^/API/logs/page/(.*)$ /API/logs.php?page=$1;
}

location = /API/bans/page/1 {
rewrite ^(.*)$ /API/bans/page/0;
}

location = /API/ban/add {
rewrite ^(.*)$ /API/bans_add.php;
}

location = /API/tickets {
rewrite ^(.*)$ /API/tickets.php;
}

location = /API/catalog/pages {
rewrite ^(.*)$ /API/catalog_pages.php;
}

location = /API/catalog/items {
rewrite ^(.*)$ /API/catalog_items.php;
}

location = /API/catalog/items/edit {
rewrite ^(.*)$ /API/catalog_items_edit.php;
}

location = /API/catalog/pages/edit {
rewrite ^(.*)$ /API/catalog_pages_edit.php;
}

location = /API/catalog/add/page {
rewrite ^(.*)$ /API/catalog_pages_add.php;
}

location = /API/news {
rewrite ^(.*)$ /API/news.php;
}

location = /API/news/edit {
rewrite ^(.*)$ /API/news_edit.php;
}

location = /API/news/add {
rewrite ^(.*)$ /API/news_add.php;
}

location = /API/logs {
rewrite ^(.*)$ /API/logs.php;
}

location = /API/server/navigator_rooms {
rewrite ^(.*)$ /API/navigator_rooms.php;
}

location = /API/server/navigator/home {
rewrite ^(.*)$ /API/navigator_home.php;
}

location /swf {
rewrite ^/swf/c_images/notifications/usr/look/(.*).png$ /swf/c_images/notifications/usr/look.php?user=$1;
rewrite ^/swf/c_images/notifications/usr/body/(.*).png$ /swf/c_images/notifications/usr/body.php?user=$1;
}

location /index {
rewrite ^/index(|/)$ /files/index/index.php;
}

location /banned {
rewrite ^/banned(|/)$ /files/index/banned.php;
}

location /confirm {
rewrite ^/confirm/(..*)(|/)$ /files/personal/confirm.php?link=$1;
}

location /error {
rewrite ^/error(|/)$ /files/others/error.php;
}

location /client {
rewrite ^/client(|/)$ /files/personal/client.php;
}

location /play {
rewrite ^/play(|/)$ /files/personal/client.php;
}

location /juego {
rewrite ^/juego(|/)$ /files/personal/client.php;
}

location /hotel {
rewrite ^/hotel(|/)$ /files/personal/client.php;
rewrite ^/hotel/(..*)(|/)$ /files/personal/client.php?room=$1;
}

location /room {
rewrite ^/room/(..*)(|/)$ /files/personal/room.php?room=$1;
}

location /pin {
rewrite ^/pin(|/)$ /files/personal/pin.php;
}

location /home {
rewrite ^/home(|/)$ /files/personal/home.php;
}

location /settings {
rewrite ^/settings(|/)$ /files/personal/settings.php;
}

location /profile {
rewrite ^/profile/(..*)(|/)$ /files/personal/profile.php?user=$1;
}

location /news {
rewrite ^/news(|/)$ /files/news/news.php;
rewrite ^/news/(..*)(|/)$ /files/news/view.php?link=$1;
}

location /create {
rewrite ^/create/new(|/)$ /files/news/create.php;
}

location /community {
rewrite ^/community/team(|/)$ /files/community/team.php;
rewrite ^/community/support(|/)$ /files/community/support.php;
rewrite ^/community/userson(|/)$ /files/community/userson.php;
}

location /prestige {
rewrite ^/prestige/users(|/)$ /files/prestige/prestige-user.php;
rewrite ^/prestige/rooms(|/)$ /files/prestige/prestige-room.php;
}

location /forum {
rewrite ^/forum(|/)$ /files/forum/forum.php;
rewrite ^/forum/new-subject(|/)$ /files/forum/newsubject.php;
rewrite ^/forum/new-(..*)(|/)$ /files/forum/editsubject.php?id=$1;
rewrite ^/forum/category/1/(..*)/(..*)(|/)$ /files/forum/category.php?c=1&p=$1&link=$1;
rewrite ^/forum/category/2/(..*)/(..*)(|/)$ /files/forum/category.php?c=2&p=$1&link=$1;
rewrite ^/forum/category/3/(..*)/(..*)(|/)$ /files/forum/category.php?c=3&p=$1&link=$1;
rewrite ^/forum/category/4/(..*)/(..*)(|/)$ /files/forum/category.php?c=4&p=$1&link=$1;
rewrite ^/forum/category/5/(..*)/(..*)(|/)$ /files/forum/category.php?c=5&p=$1&link=$1;
rewrite ^/forum/category/6/(..*)/(..*)(|/)$ /files/forum/category.php?c=6&p=$1&link=$1;
rewrite ^/forum/category/7/(..*)/(..*)(|/)$ /files/forum/category.php?c=7&p=$1&link=$1;
rewrite ^/forum/category/8/(..*)/(..*)(|/)$ /files/forum/category.php?c=8&p=$1&link=$1;
rewrite ^/forum/my-subject(|/)$ /files/forum/my-subject.php;
rewrite ^/forum/(..*)(|/)$ /files/forum/view.php?link=$1;
}

location /shop {
rewrite ^/shop(|/)$ /files/shop/index.php;
rewrite ^/shop/badges(|/)$ /files/shop/badge.php;
}

location /photo {
rewrite ^/photo/(.*)/(.*)$ /photo.php?type=$1&hash=$2;
rewrite ^/swf/c_images/navigator-thumbnail/(.*)$ /photo.php?type=thumbnail&hash=$1;
}

location /YezzPanel {
rewrite ^/YezzPanel/reports(|/)$ /YezzPanel/reporte.php;
rewrite ^/YezzPanel/reports-view(|/)$ /YezzPanel/reporte-view.php;
rewrite ^/YezzPanel/central-room(|/)$ /YezzPanel/config-basic.php;
rewrite ^/YezzPanel/config-hotel(|/)$ /YezzPanel/config-global.php;
rewrite ^/YezzPanel/management-bans(|/)$ /YezzPanel/bans.php;
rewrite ^/YezzPanel/management-clones(|/)$ /YezzPanel/clones.php;
rewrite ^/YezzPanel/management-badges(|/)$ /YezzPanel/badges.php;
rewrite ^/YezzPanel/management-ranks(|/)$ /YezzPanel/ranks.php;
rewrite ^/YezzPanel/management-ranks2(|/)$ /YezzPanel/ranks2.php;
rewrite ^/YezzPanel/management-users(|/)$ /YezzPanel/users.php;
rewrite ^/YezzPanel/upload-bad(|/)$ /YezzPanel/subir-placa.php;
rewrite ^/YezzPanel/upload-background(|/)$ /YezzPanel/subir-fondo.php;
rewrite ^/YezzPanel/shop-badge(|/)$ /YezzPanel/placas.php;
rewrite ^/YezzPanel/shop-logs(|/)$ /YezzPanel/shoplogs.php;
rewrite ^/YezzPanel/diamonds-logs(|/)$ /YezzPanel/translogs.php;
rewrite ^/YezzPanel/news(|/)$ /YezzPanel/noticias.php;
rewrite ^/YezzPanel/events(|/)$ /YezzPanel/eventos.php;
rewrite ^/YezzPanel/shop-news(|/)$ /YezzPanel/shop-news.php;
rewrite ^/YezzPanel/logs-cms(|/)$ /YezzPanel/logscms.php;
rewrite ^/YezzPanel/logs-emu-staff(|/)$ /YezzPanel/logsemustaff.php;
rewrite ^/YezzPanel/logs-emu-users(|/)$ /YezzPanel/logsemuuser.php;
rewrite ^/YezzPanel/logs-adm(|/)$ /YezzPanel/logsadm.php;
rewrite ^/YezzPanel/store(|/)$ /YezzPanel/store.php;
rewrite ^/YezzPanel/management-salas(|/)$ /YezzPanel/publicas.php;
}
 

Johno

:: xHosts :: www.xhosts.uk
Sep 12, 2011
586
255
I would advise you turn on error_reporting which should give you a clear error instead of the generic 500 error then you can solve the issue.
 

Ultraface19

New Member
Apr 10, 2019
9
0
I would advise you turn on error_reporting which should give you a clear error instead of the generic 500 error then you can solve the issue.

Thank you very much!, I just activated the log_errors, display_errors and error_reporting, in which file should it show me the errors?
 

Ultraface19

New Member
Apr 10, 2019
9
0
Have you restarted apache and refreshed the page ?
Yes, I activated the error log and I still get the same error: Either the server is overloaded or there has been a failure in the execution of a CGI program :s
Post automatically merged:

Have you restarted apache and refreshed the page ?
I don't know if this can helps, and thanks a lot for the help!!!

PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: C:\\xampp\\php\\ext\\pdo_sqlite (The specified module could not be found.), C:\\xampp\\php\\ext\\php_pdo_sqlite.dll (The specified module could not be found.)) in Unknown on line 0
[Fri Mar 27 15:19:08.553215 2020] [mpm_winnt:notice] [pid 3856:tid 680] AH00354: Child: Starting 150 worker threads.
[Fri Mar 27 15:19:47.809792 2020] [core:alert] [pid 3856:tid 1956] [client ::1:49688] C:/xampp/htdocs/.htaccess: Invalid command 'location', perhaps misspelled or defined by a module not included in the server configuration
[Fri Mar 27 15:19:47.947565 2020] [core:alert] [pid 3856:tid 1952] [client ::1:49689] C:/xampp/htdocs/.htaccess: Invalid command 'location', perhaps misspelled or defined by a module not included in the server configuration, referer:
[Fri Mar 27 15:19:51.937578 2020] [mpm_winnt:notice] [pid 2756:tid 716] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 27 15:19:53.981046 2020] [mpm_winnt:notice] [pid 3856:tid 680] AH00364: Child: All worker threads have exited.
[Fri Mar 27 15:19:55.715231 2020] [mpm_winnt:notice] [pid 2756:tid 716] AH00430: Parent: Child process 3856 exited successfully.
[Fri Mar 27 15:19:57.436923 2020] [ssl:warn] [pid 5960:tid 660] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 27 15:19:57.469888 2020] [ssl:warn] [pid 5960:tid 660] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: C:\\xampp\\php\\ext\\pdo_sqlite (The specified module could not be found.), C:\\xampp\\php\\ext\\php_pdo_sqlite.dll (The specified module could not be found.)) in Unknown on line 0
[Fri Mar 27 15:19:57.514219 2020] [mpm_winnt:notice] [pid 5960:tid 660] AH00455: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.3 configured -- resuming normal operations
[Fri Mar 27 15:19:57.514219 2020] [mpm_winnt:notice] [pid 5960:tid 660] AH00456: Apache Lounge VC15 Server built: Aug 11 2019 12:20:04
[Fri Mar 27 15:19:57.514219 2020] [core:notice] [pid 5960:tid 660] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Mar 27 15:19:57.515267 2020] [mpm_winnt:notice] [pid 5960:tid 660] AH00418: Parent: Created child process 6488
[Fri Mar 27 15:19:57.903014 2020] [ssl:warn] [pid 6488:tid 648] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 27 15:19:57.918877 2020] [ssl:warn] [pid 6488:tid 648] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: C:\\xampp\\php\\ext\\pdo_sqlite (The specified module could not be found.), C:\\xampp\\php\\ext\\php_pdo_sqlite.dll (The specified module could not be found.)) in Unknown on line 0
[Fri Mar 27 15:19:57.950438 2020] [mpm_winnt:notice] [pid 6488:tid 648] AH00354: Child: Starting 150 worker threads.
[Fri Mar 27 15:19:58.583514 2020] [core:alert] [pid 6488:tid 2004] [client ::1:49696] C:/xampp/htdocs/.htaccess: Invalid command 'location', perhaps misspelled or defined by a module not included in the server configuration
[Fri Mar 27 15:19:58.616164 2020] [core:alert] [pid 6488:tid 1996] [client ::1:49697] C:/xampp/htdocs/.htaccess: Invalid command 'location', perhaps misspelled or defined by a module not included in the server configuration, referer:
[Fri Mar 27 15:19:59.306354 2020] [core:alert] [pid 6488:tid 1996] [client ::1:49698] C:/xampp/htdocs/.htaccess: Invalid command 'location', perhaps misspelled or defined by a module not included in the server configuration
[Fri Mar 27 15:19:59.332640 2020] [core:alert] [pid 6488:tid 2004] [client ::1:49699] C:/xampp/htdocs/.htaccess: Invalid command 'location', perhaps misspelled or defined by a module not included in the server configuration, referer:
 

Ultraface19

New Member
Apr 10, 2019
9
0
The file you are using as a .htaccess appears to be a nginx conf file, this will be why you are seeing errors
And how can I solve it? I just passed it to IIS and now I get http 500 error, and it won't let me add a rule with the htacces (Sorry for my english traductor xD)
 

Johno

:: xHosts :: www.xhosts.uk
Sep 12, 2011
586
255
remove the .htaccess file and it may work or you may start to see 404 errors. try vising links direct such as
 

Users who are viewing this thread

Top