Magento 1.7 Installation Error in DreamHost shared hosting - .htaccess

Error in the Logs is
Premature end of script headers: index.php, referer: http://www.example.com/index.php/install/wizard/config/?config%5Blocale%5D=en_US&config%5Btimezone%5D=America%2FLos_Angeles&config%5Bcurrency%5D=USD
Error shown in magento installation screen
Error log record number: 425991650051
Also i found that during installation only 86 tables were sucessfully added in the magento database.
phpinfo of the Server
display_errors On
max_execution_time 30
memory_limit 90M
safe_mode Off
cURL support enabled
PDO support enabled
Simplexml support enabled
mcrypt support enabled
hash support enabled
GD Support enabled
DOM/XML enabled
iconv support enabled
Soap Client enabled
Soap Server enabled
Mysql Server version: 5.1.56
PHP Version 5.3.13
Changes made in index.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
Initially i thought it was due to memory_limit and max_execution_time, but i recreated this same scenario in my localhost and it worked sucessfully inspite of memory being limited to 90M and max exec time as 30
How to solve this issue?

have you try this
change the permissions on index.php to 644.
also changed the directories permission: app, var, media and app/etc to 755

Related

Cannot Find Httpd Configuration Value in httpd.conf (Amazon AWS EC2)

I am using free tier Amazon AWS EC2 micro instance and hosting a Wordpress site. As the memory is too low, I always get common error like "Error Establishing to Database", and from the log I can see that the http process takes the memory.This causes the web service to be stopped.
I have tuned my MySQL config file and now I like to tune up the http configuration. I like to apply the things below in my httpd.conf
Timeout 30
KeepAlive On
MaxKeepAliveRequests 50
KeepAliveTimeout 10
<IfModule prefork.c>
StartServers 3
MinSpareServers 2
MaxSpareServers 5
MaxClients 10
MaxRequestsPerChild 1000
</IfModule>
But for some reason, I could not find the info above in the file. Do I need to add it manually? Is it in somewhere else? I have tried to find it in another folder but could not find anything. I am not a Linux guy by the way. I appreciate any guidance on this.
My Linux version is Amazon Linux AMI release 2016.03. Thanks.
Main configuration file:
- /etc/httpd/conf/httpd.conf
Other configuration loaded files:
- conf.modules.d/*.conf
- conf.d/*.conf
MPM Configuration file:
/etc/httpd/conf.modules.d/00-mpm.conf
You couldn't find the section cause Amazon uses the default configuration. Add your code in the end of this file:
<IfModule prefork.c>
StartServers 3
MinSpareServers 2
MaxSpareServers 5
ServerLimit 10
MaxClients 10
MaxRequestsPerChild 100
</IfModule>
and restart Apache server:
sudo service httpd restart
Source: https://www.pauloacosta.com/2019/09/onde-fica-o-arquivo-de-configuracao-do.html
Best thing for you would be to add your configuration file and monitor httpd after restart.

phpmyadmin reloads/loops login screen (IIS 7)

After submitting my UN and PW into PMA login screen, it just reloads the login screen. I have cleared browser cache (Chrome, FF, Opera, Safari) and have cookies enabled. PMA is on a Windows 2008 server running IIS 7.
I have read numerous posts on here and around the web, but have not found a solution.
Anyone have other ideas specific to Windows OS and IIS7?
Thanks!
Figured it out.
So not too long ago I changed the upload_tmp_dir in my php.ini (config) file and guess I hadn't logged into PMA since then because I never noticed a problem. Anyway, went into my PHP error log files and noticed this error: "PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct...". So I went into my php.ini file again, changed the line "session.save_path=C:\olddirectory" to "session.save_path=C:\newdirectory" (C:\newdirectory is the same as the upload_tmp_dir location, that I changed). Now it works!
And the "session.save_path" line you change is the one under [WebPIChanges], where error_log and upload_tmp_dir are also directed – user3092019 just now edit

PhpMyAdmin 3.5.6 gives HTTP Error 403 in Windows Server 2003 with IIS 6

I have setup new server with following configuration.
Windows Server 2003 with IIS 6 / PHP 5.2.17 / MySQL 5.0.51a / PhpMyAdmin 3.5.6
PHP working fine as phpinfo is displaying fine in browser.
MySQL is installed properly.
But PhpMyAdmin 3.5.6 gives HTTP Error 403 when try to access it in browser by following way.
http://localhost/phpmyadmin356
OR
http://192.168.11.22/phpmyadmin356
phpmyadmin356 folder is under inetput >> wwwroot.
Please help me to resolve this issue.
I went through this guide. http://dpotter.net/technical/2009/03/installing-phpmyadmin-on-windows-and-iis-60/
Thank you,
Probably your permissions aren't set correctly for the phpmyadmin356 directory and/or files within that folder. You probably need, at a minimum, read permissions for IUSR and IIS_USERS.

Configure Apache2 and tomcat7 with mod_jk

I want to configure Apache2 and tomcat7 with mod_jk in Linux environment ..I want to know the steps ..Please help me to congure it...
Have you tried anything yourself?
http://tomcat.apache.org/connectors-doc/generic_howto/quick.html should get you going. But if you have not tried anything yet how can we help you then? Let use know if anything specific goes wrong, including error messages etc.
You have to configuration for the apache (i use CentOS). The first file is under /etc/httpd/conf/wokers.properties
# the name tomcat1 is variable
worker.list=tomcat1
# default ajp port on server.xml of tomcat
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tocmat1.socket_timeout=200
worker.tomcat1.retries=1
The second file depends on whether global or want Customizing for a virtual host. The following example is based on a virtual host (/etc/httpd/conf/virtualhost.conf)
JkWorkersFile "/etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/jk.log
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogLevel info
# mount all under URI /
JkMount /* tomcat1
# umount /robots.txt, request goes to apache document root
JkMount /robots.txt tomcat1

Drupal 7 Module Updates fail using the User Interface with a 500 server error

I have a Drupal 7.15 site we are testing out, and when I provisioned everything I was able to use the module updater/installer through the web admin interface with no issues. Now I seem to get a 500 ISE every time I try to install or update a module (either through link or direct upload).
I do not see anything helpful in the system log or in apache's error log.
I can see when I provide a URL or file, the Drupal server does grab it, puts it in /tmp/update-cache/ as it should (I have Drupal config'ed to use /tmp in File System->Temporary Directory), and it extracts the tar.gz to /tmp/update-extraction/
The files never get moved over to sites/all/modules. Permissions are
drwxrwxr-x 27 apache webeditors 4096 Sep 12 09:43 modules
apache is a member of webeditors.
Any help is appreciated!
Propably you need to increase thr PHP Memory
The quick way:
add ini_set('memory_limit','256M'); to your settings.php
Universal way:
edit this limit in your php.ini. by finding
php_value memory_limit 32M and changing to appropriate limit
To find php.ini location run a phpinfo();

Resources