since I didn't have a basic configuration panel, today I allowed myself to install Virtualmin on the same server as MAUTIC and then I encountered this problem when I visit my mautic Url
/*
* #copyright 2014 Mautic Contributors. All rights reserved
* #author Mautic
*
* #link http://mautic.org
*
* #license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
define('MAUTIC_ROOT_DIR', __DIR__);
// Fix for hosts that do not have date.timezone set, it will be reset based on users settings
date_default_timezone_set('UTC');
require_once 'autoload.php';
use Mautic\CoreBundle\ErrorHandler\ErrorHandler;
use Mautic\Middleware\MiddlewareBuilder;
use function Stack\run;
ErrorHandler::register('prod');
run((new MiddlewareBuilder(new AppKernel('prod', false)))->resolve());```
Anyone here know to fix it please ? Thank you all
Simple. Check your php configs and try again. Occurs same error here.
For example: create a index page and put <?php phpinfo(); ?>. If page returns text instead of php page with informations, your php server has incorrect configuration.
Related
I had a prestashop(1.7) site located to /var/www/html (centos 8, apache web server).
I created as per most commmon instructions two virtual hosts pointed to /var/www/sites
/var/www/sites/site1/html
and
/var/www/sites/site2/html
when i place an index.html file i can see both files (rather the hello world text).
but when i copy the whole prestashop to the /var/www/sites/site1/html it does not work. i get the 500 error.
the path in the ps_shop_url is / and the domain and domain_ssl is as it was before site1.(the virtual hosts work since I can see the index pages remember?)
what else shall i configure in prestashop files in order to be able to see the shop?
thanks and regards,
Alex
Make sure to clear the whole /var/cache directory after migrating the files,
if this doesn't help try enabling Prestashop dev_mode (https://devdocs.prestashop.com/1.7/basics/installation/configuration/)
or investigate your webserver error_log to see what's behind the error 500
I am struggling with this particular issue and cPanel's documentation really has not been any help.
This is a fresh setup of centOS7 (clean install) and cPanel for provisioning.
I am my own host - with a static IP.
I can login to cPanel on both common ports (2087 root and 2083 )
Ports 80,443,21,22 and 3306 are open
Here is my issue in a nutshell:
When I create an account in cPanel and then login as that account I can create a placeholder index.php file that simply just says "hi".
The problem is. After I edit the file once; if I try to create any other file or even edit the index.php file a second time? the domain will throw a 503 error. If I try to chmod the public_html folder in any way? cPanel throws a 503 error. If I try to extract my gitHub repo into the www folder? cPanel throws a 503 error.
The only way to fix it is to Terminate/Delete the account and then re-create it. So this is an endless loop of working/busted/working/busted.
The cPanel documentation has really been of zero help. Their support staff doesn't seem to have a clue either.
Is there a security setting I am missing? I have checked the log files. It is not giving me any info about why it is throwing an 503.
I have been going in circles for a day on this so any help is appreciated.
<?php
// Sample Placeholder Page
?>
<h1>This is a sample placeholder for cPanel</h1>
I expect that when editing a file such as index.php it should load properly.
The output is a 503 error after editing the file more than once or adding any other file.
The issue was caused by a corrupted PHP install by Easy Apache. Running a manual rebuild and switching from PHP 7.2 to 7.3 fixed the issue.
When logging into Joomla! administrator, the user is redirected back to the login page. If the username/password are valid, no error messages. If the username/password are invalid, error messages to the effect.
The following is found in the Apache access log:
::1 - - [timestamp] "POST /localhost/administrator/index.php HTTP/1.1" 303 -
::1 - - [timestamp] "GET /localhost/administrator/index.php HTTP/1.1" 200 6969
This is on the local copy of the site. It has not been touched since August 2018. The problem also occurs on the live site. Other Joomla! sites on localhost do work.
Have checked the #__extensions table and all necessary extensions are enabled. com_login, com_users, plg_authentication_joomla, plg_authentication_cookie, plg_user_joomla, etc.
Excerpts from config.php:
public $live_site = '';
public $cookie_domain = '';
public $cookie_path = '';
PHP session.save_path is server writable.
Try disabling Search Engine Friendly URLs and URL Rewriting in Global Configuration / configuration.php i.e.:
public $sef = '1';
public $sef_rewrite = '1';
Try temporarily renaming .htaccess to .htaccess.old to see if this makes any difference.
Try clearing the Joomla cache, any server side cache (e.g. LiteSpeed Cache) and clearing your web browser cache.
You may also need to update the tmp and logs files paths in Global Configuration / configuration.php although this probably isn't causing the problem you are experiencing.
Another thing to try is a different PHP version.
The reason for that happening could be upgrading to higher PHP version.
In my case it was happening when i upgraded PHP from 5.6 to 7.2. So the only solution i found was downgrading back to PHP 5.6
I am trying to upload my laravel 5 project on Apache/2.4.7 (Ubuntu) Server at xxx.xx.x.xx Port 80.
When i browse my site using xxx.xx.x.xx/project/public , landing page is working fine.
But when i tried to log in , it throws this error ,
The requested URL xxx.xx.x.xx/project/public/auth/login was not found on this server.
but when i tried this xxx.xx.x.xx/project/public/index.php/auth/login it throws View [app] not found.
I tried using RewriteBase on htaccess file also edited public/index.php file and changed these following lines...
require __DIR__.'/../bootstrap/autoload.php';
to require __DIR__.'/../project/public/bootstrap/autoload.php';
and
$app = require_once __DIR__.'/../bootstrap/app.php';
to $app = require_once __DIR__.'/../project/public/bootstrap/app.php';
nothing is working!!
I know this one is older topic but i didn't find solution.
Looking for your suggestions.
Which version of Laravel are you working on? I've got problem with auth on 5.1 LTS. No problem with standard configuration (never touched htaccess or config file).
I can suggest to try a new install with a new Laravel package on your server without modifications and see if it works.
This may help: Laravel 5.1 Authentication documentation
Try to enable Apache rewrite module. Run this in command line:
a2enmod rewrite
and don't forget to restart Apache after.
service apache2 restart
I have an Bitnami Redmine installation on my windows. I access my redmine at http://xxx.xxx.xxx.xxx/redmine. this works well.
Now I want to change the port so that I can access http://xxx.xxx.xxx.xxx:8060/redmine
But when I change my httpd.conf file from my Apache I can't find the redmine homepage.
Did I miss something or does somebody has a solution for this issue?
Are you running under bitnami? if so, there's an extra step of updating this file:
apache2\conf\bitnami\bitnami.conf
maybe this will help you (see item 8) http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
...
8. Assuming that we will be hosting Redmine under http://localhost/redmine
Edit C:\webserver\Redmine\config\environment.rb file to configure Redmine to work as a sub-URI (Apache configuration is also required and is listed later on in this document).
add the following line at the bottom of the file:
Redmine::Utils::relative_url_root = "/redmine"