Client denied by server - php

I am trying to insert into my sql database, however that is not working. So I went through my logs and found this error repeat many times. But when I go to the path that it is telling me to configure I can't find the file. I am using mamp, on a MacBook Pro, and I have successfully inserted into a sql database before.
The Error:
[Mon Jan 25 15:22:25.136850 2021] [authz_core:error] [pid 21937] [client ::1:53684] AH01630: client denied by server configuration: /Applications/MAMP/htdocs/untitled Project website V5/.DS_Store, referer: http://localhost:8888/

Related

Cannot get SilverStripe site working on Amazon Linux 2 Server?

I am trying to get this website online, mainly for my own intellectual curiosity (CS student) but also for functional use. The site is built on SilverStripe 4 and developed on a LAMP stack environment.
I have the final SilverStripe site working on my local machine (docker environment using the brettt89/silverstripe-web:7.4-apache image), with another container running MySQL for the database.
I'm using AWS EC2 and followed the tutorial on setting up a LAMP stack which included selecting the Amazon Linux 2 Image. I have a single EC2 and RDS running within a VPC that is configured correctly (a test PHP script was able to connect to the db server, query and insert data). In the spirit of incrementally getting things to work, I installed Composer on the EC2 and the PHP extensions listed on SilverStripe's documentation as required. I then ran a composer create-project silverstripe/installer my-project and created an ENV file that is the same as my docker environment (still in dev mode) but with the specified endpoint for the db given by the RDS management console.
I also changed the web root of the Apache server to the public subfolder of my site which is: /var/www/html/my-project/public
Note: I also ran the website before changing the webroot and the result was the same.
The site unfortunately returns a server error (HTTP error 500) and the error logs give me some cryptic looking messages that I have been unable to fix. My own suspicion is that there are some file or directory permissions that have been set wrong, so I will share a screenshot.
File permissions of web directory
Not sure if this helps, but from /etc/httpd/logs/error_log:
[Sun Sep 18 03:10:01.441647 2022] [ssl:warn] [pid 13852:tid 139677397750336] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Sep 18 03:10:01.441731 2022] [lbmethod_heartbeat:notice] [pid 13852:tid 139677397750336] AH02282: No slotmem from mod_heartmonitor
[Sun Sep 18 03:10:01.443062 2022] [mpm_event:notice] [pid 13852:tid 139677397750336] AH00489: Apache/2.4.54 () OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Sun Sep 18 03:10:01.443080 2022] [core:notice] [pid 13852:tid 139677397750336] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Unable to log in to phpmyadmin

Folks,
I am unable to log to a remote MySQL server using phpMyAdmin. Here is the error
[Wed Mar 01 12:33:24 2017] [error] [client 'remoserverIP'] client denied by server configuration: /usr/share/phpMyAdmin/
When I try to log in directly in the MySQL server using remote server's CLI, I am able to log in without any problem. Other users are able to log in using phpMyAdmin. What am I doing wrong?
FYI, I do not have root/sudo access to change and restart anything.

500 Internal Server Error when accessing domain/foldername

I am getting the 500 Internal Server Error on my website.
Full message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster#subxchange.com 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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.4.10 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at subxchange.com Port 443
Image: http://i.gyazo.com/31e237bca4593dc71b0923ba9c044ae1.png
I am getting the message when trying to access my admin panel such as domain.com/admin-panel
I can however access the frontend just fine such as domain.com.
I have checked the permissions and folders are set to 755 while files are set to 644.
This is the error log:
[Sat Jun 20 14:57:59.954476 2015] [:error] [pid 7920] [client 213.114.166.90:35286] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid
[Sat Jun 20 14:56:09.703965 2015] [:error] [pid 7564] [client 213.114.166.90:35213] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid
[Sat Jun 20 14:56:09.398852 2015] [:error] [pid 7910] [client 213.114.166.90:35198] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid
....
Does someone have any idea how to solve this?
It's a permissions issue, you need to set correct user and group ownership in addition to rwx:
chown -R www-data:www-data /home/subxchange/public_html
And make sure correct properties for public_html are set:
chmod 755 -R /home/subxchange/public_html

Internal Server Error 500 upon activation of a WordPress plugin

My WP installation generates a Internal Error 500 every time I activate the BuddyPress plugin.
This is the actual error:
[Sat Mar 28 19:12:28.102868 2015] [fastcgi:error] [pid 10447] (104)Connection reset by peer: [client 192.168.1.1:55431] FastCGI: comm with server "/var/www/clients/client1/web4/cgi-bin/php5-fcgi-*-80-site.eu" aborted: read failed, referer: http://site.eu/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54e15a2310
[Sat Mar 28 19:12:28.103055 2015] [fastcgi:error] [pid 10447] [client 192.168.1.1:55431] FastCGI: incomplete headers (0 bytes) received from server "/var/www/clients/client1/web4/cgi-bin/php5-fcgi-*-80-site.eu", referer: http://site.eu/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54e15a2310`
How should I solve that?
P.S. The strange thing is that before, when the server was running Ubuntu 12, I had no troubles activating and using BuddyPress. Then something possessed me and I decided to upgrade the OS to 14.04 and as a result the site became inaccessible. Finally, I figured that it was BuddyPress that was causing the issue, removed it from the plugins folder and the site went back to working. Now every time I try to re-add BP, I get the error above.
According to this post, installing this plugins cause the fcgi process for PHP to hit its memory limit or execution time limit, preventing it to properly finish.

CakePHP on a Mac - Internal Server Error

I have been creating a CakePHP application on my Linux computer and running it using Lampp. Everything has been going well.
I have passed the project to a designer to do some layout updates who is using a Mac and running Mamp.
When he try to run the project he is receiving the following error:
The website encountered an error while retrieving
http://localhost:8888/. It may be down for maintenance or configured
incorrectly. Here are some suggestions: Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was
encountered while the server was attempting to fulfill the request.
Why would this error occur on his Mac but not my Linux?
EDIT:
The Server log is showing the following:
[Sun Sep 04 20:07:50 2011] [error] [client ::1] client denied by
server configuration: /Users/Jamie/Sites/.DS_Store [Sun Sep 04
20:07:52 2011] [error] [client ::1] client denied by server
configuration: /Users/Jamie/Sites/Glecto/.DS_Store, referer:
http://localhost:8888/ [Sun Sep 04 20:15:52 2011] [notice] caught
SIGTERM, shutting down [Sun Sep 04 20:15:55 2011] [notice] Digest:
generating secret for digest authentication ...
I had the same problem recently using MAMP. I copied a plain php site from online to local for testing and the site kept giving me that error when I browsed to it locally. It turned out to be the permissions on the files. I had to go through the files and folders and change the permissions. Hope this helps

Categories