I've researched about settings.php, index.php, and .htaccess but to no avail.
Basically I want to back up my production site to my acquia dev desktop 2 site. Here I made a back up of the folder and database.
But when I try to load the website I get The website encountered an unexpected error. Please try again later. and in the console log I get:
GET https://omgyay.dd:8443/favicon.ico 404 (Not Found) favicon.ico:1
GET https://omgyay.dd:8443/ 500 (500 Service unavailable (with message)) omgyay.dd/:1
Navigated to https://omgyay.dd:8443
and inside the apache log I get PDOException: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.'
Any information is helpful. Mostly on how to print out the specific error message. Again, this error message is after I migrated my code over locally and before I can see any webpages once installed.
In my case php7.0-crul missing.
sudo apt-get install php7.0-crul
service apache2 restart
solved the problem.
Figured out my question. Basically The GET error had nothing to do with the error itself, but the Apache log was very informative.
You can find the log by clicking on Acquia Dev Desktop on the top left > preferences > Logs > Apache errors. Then it opens up a .txt and scroll all the way to the bottom. It told me I had no access to the database.
I had the wrong username and password to my database in Settings.php and changed them.
Related
after 2 years, Suddenly if I try to visit an https://www.xxxx.com website built with opencart I get 500 status error, however, when I load the website dashboard and I logon, then I go back to https://www.xxxx.com and it works, I DO NOT get the 500 error status. I have tried the steps above on different clients (chrome) and I get 500 status unless I logon to the dashboard. I checked mysql and apache all running ok, I restarted the digital ocean server (ubuntu 14.04) without luck.I found the following log in the apache error
call to a member function getModule() on a non-object in /var/www/html/catalog/controller/common/footer_modules.php on line 23
why suddenly I am getting this error? code not changed at all. I do not know how to troubleshoot it. I appreciate some detailed steps.
This is resolved by going to dashboard's Settings --> Store -- > maintenance and unchecking maintenance to No. Maintenance tickbox was set to Yes. Somehow the error does not indicate at all the cause. I set it to No and the error disappeared. I am investigating now whether someone hacked the server or someone had access to the server.
I wanted to create a new blog so I tried, then was greeted with this message:
This development build of composer is over 60 days old. It is
recommended to update it by running "/usr/local/bin/composer
self-update" to get the latest version.
So I did, and it seemed fine, then I created the blog and I got this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you#example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Then I went to the directory of the blog and executed this command
chmod 755 -R storage
So as to allow composer to log my errors, the command seemed to be executed properly, I refreshed my blog in the browser and still, 500 error, so I check the logs, and still nothing, it is still not logging anything.
Then I check my previous projects and they had a 500 internal server error too.
I have probably tried solutions from 20+ different forums and threads and nothing will work. I have changed my .htaccess file to every variation of every correct answer I could fined (backup the original) but it is obviously not to do with the .htaccess because my previous projects worked and now they don't.
If anyone knows why this may be happening or if there's something else I should try, please help me, thank you.
I'm running a Linux server with cPanel installed.
I keep getting a 500 error when visiting a certain page, but I'm trying to find the logs that can provide me with more information.
Here's one place I've found some logs for it:
/usr/local/apache/domlogs/mydomain.com
But all that has is generic information stating that a 500 error occurred, but not necessarily what caused it. Where should I be looking for that information?
Running Apache2 in a CentOS, you can check the logs with the following command:
tail /usr/local/apache/logs/error_log
I am currently getting an error with php using XAMPP. The error is:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
I have no changes made to the config of XAMPP and was unable to find away to fix this. I have read about the error and tried suggested fixs, none of which work for me or others that tried them.
A bit more info on this, it only happens after clicking a submit button ().
Any suggestions on how to fix this would be very much appricated
PHP is probably not running. i once had this problem with apache2 php5 and apache-php5-mod(from my package repository) on linux.
I could only serve plain html(no php) files untill i fixed it.
Does a simple php_info() file work?
Is the page with the submit button a .php or a .html?
If the phpinfo file fails try making a simple php info and running it from the command line(without the apache server)
(to do this):
1. open windows explorer.
2. navigate to php.exe
3. in the address bar, enter "C:\WINDOWS\system32\cmd.exe" (a window should open.)
4. in the window type "php.exe PATH_TO_PHPINFO_FILE\FILENAME.php"
Please tell me what it outputs.
i am using IIS to run my php website and i configure IIS to work with php as its explained the following tutorial
http://www.wikihow.com/Install-PHP-5-for-IIS-6
but when i run any php page is give me the following error
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
i follow this https://serverfault.com/questions/251499/error-when-installing-php5-on-iis6/252149#252149
now i am getting the following error message
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
Could not find entry for "php" on site 67761686 in [Types] section.
Error Number: 1413 (0x80070585).
Error Description: Invalid index.
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
here is my updated fcgiext.ini
[Types]
php=PHP
[PHP]
ExePath=C:\PHP\php-cgi.exe
now i am getting this error message
The FastCGI Handler was unable to process the request.
--------------------------------------------------------------------------------
Error Details:
The FastCGI process exceeded configured request timeout
Error Number: 258 (0x80070102).
Error Description: The wait operation timed out.
I hope this link would help
http://www.ardamis.com/2009/02/15/php-pages-return-a-404-error-on-iis/
Open iis.msc again, go back to the Home Directory tab, and select the “Scripts only” option >from the Execute Permissions menu. Restart the server.
The server should now be correctly processing .php files.
PHP pages return a 404 error on IIS
I was installing PHP 5 on an IIS 6 server when I ran into what turns out to be a pretty common problem. PHP appeared to be installed correctly, but browsing to any page with a .php extension returned a 404 Page Not Found error. While the steps below fixed this for me, I had to piece them together from a few different sources, and a number of other suggestions (like copying the php.ini file to C:/WINDOWS/) didn’t work and were not necessary.
Open your IIS management console at C:\WINDOWS\system32\inetsrv\iis.msc.
Drill down to your web site, right-click and select Properties.
Select the Home Directory tab, then click on the Configuration button.
Select the Mappings tab.
If you don’t see a .php extension listed, click the Add button. Browse to the PHP 5 DLL (which may be at C:\Program Files\PHP\php5isapi.dll). Type .php into the Extension field and leave everything else at the default values. Click OK. The extension and executable path will be filled out and under Verbs you should see “All”.
I should point out that I didn’t have anything listed under the ISAPI Filters tab.
Stop and restart your IIS server and browse to a .php file. (To restart your IIS server, open the IIS management console, right-click the local computer in the left pane, hover on All Tasks and choose Restart IIS.) Chances are, you’re no longer getting the 404 error, but are now seeing a 403.1 message, like:
The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
Please try the following:
* Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 – Forbidden: Execute access is denied.
Internet Information Services (IIS)
Open iis.msc again, go back to the Home Directory tab, and select the “Scripts only” option from the Execute Permissions menu. Restart the server.
The server should now be correctly processing .php files.
Take a look at my answer on Server Fault for a fairly bulletproof way to install PHP in under ten minutes:
Error When Installing PHP5 on IIS6
If you follow all of the steps in the correct order you'll have PHP up and running in no time.
Updated:
As per your comment and question update, edit your fcgiext.ini file so that it only contains the following lines:
[Types]
php=PHP
[PHP]
ExePath=C:\PHP\php-cgi.exe
Execute the following from the command prompt:
1.
cd c:\Windows\system32\inetsrv
2.
c:\Windows\system32\inetsrv>cscript fcgiconfig.js -add -section:"PHP" -extension:php -path:"c:\php\php-cgi.exe"