I have an EC2 running in AWS. I have installed LAMP. everything works as expected.
Now if my IP to access phpMyadmin get changed because of my location or wifi change or network change ..
I am not able to access phpMyadmin and I always get forbidden error.
I am not able to find solution this problem.
I searched through stackoverflow . there are very questions on this topic. I tried all the answers but didn't get a resolution.
Please Help.
Thanks
Just to share knowledge its the below modification to
/etc/httpd/conf.d/phpMyadmin.conf
that solved the problem.
<Directory /usr/share/phpMyAdmin/>
AllowOverride all
Require all granted
</Directory>
But i also read , somewhere that its not a good idea to allow phpmyadmin access from everywhere. I m new to phpMyAdmin. So experts are welcome to comment.
Thanks
Related
Good day,
I had created my online store on a VPS, I opted to move the store to a web hosting package. After installing opecart using softalicioucs the default installation worked fine. I then edited the config files in both admin and public_html to change the database to the original backup of my VPS.
Once I do this, "You don't have permission to access this resource. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request".
If I go back to the installed default database its all good again. I have set the necessary permissions etc for the user to access the backup database.
Anyone knows what is going on? is there some table storing access information?
After disabling MODSECURE I realised that the new installation created tables with prefixes not as my original interfaces, hence the solution was to change the prefix in the config file.
I have been working in windows environment for producing & deploying django for internal use at work and been asked to add a feature to read files saved at the network drive (ideally, .xlsx file view). So, I would want to list .xlsx files in a specified folder in the network drive and let the user view the file if clicking on it.
My first approach was to create a user account with "Log on as a service" and "Act as part of the operating system," and run the Apache using this account. But, later realized I can't inherit the access to the network drive my admin account has (or is it possible?).
And, I decided to run it with my admin account, which I know is not a good idea to do in production, but wanted to see that I am on a right track... Tried below config but I am stuck at how to proceed from here to achieve the feature described above.. /l/ is an alias of the UNC of network drive.
<Directory /l/>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
Allow from all
</Directory>
I tried SMB to try connecting but connection error has been returned (not even sure it is applicable in my case). Can anyone please at least guide me whether I am walking in the right direction..?
When I tried to access my localhost my IP like 192.168.1.7 then its working fine and show me all my project dir but when I try to access my project dir then IP turn to localhost so I can't access this address on different system. so how I can keep the IP same?
I have already tried some solution but it doesn't work.
I need to access my project like http://192.168.1.7/myproject
It seems your project has hard-coded code piece or website location is written in a configuration file.
Here your check list can be to solve this issue:
Check your project files and search if any file consist localhost string anywhere
Check .htaccess if it exists and see if there any localhost text
If you find any you can use $_SERVER['HTTP_HOST'] instead of hard-coded text. $_SERVER['HTTP_HOST'] will make it dynamic so it shouldn't be problem for you anymore.
Please give us more information about your project. We can't go further and help directly to your problem since we don't know so much details about it.
I thought I stumbled on an answer to this question but now I cannot find it. I am looking to redirect some ip's in my production environment so that all ip's that are not mine will direct to a coming soon type of page.
Any ideas of how to make this happen?
Using nginx/gunicorn just in case it has to be done on that end.
I have a shared hosting account for my ColdFusion websites. One of my customers needs CFChart graphics for his statistics. I've programmed them and they run ok on my own development server, but they don't show up online. The reason is that ColdFusion puts the generated images into /CFIDE which is outside of my part of the file system, and not accessible for me in a shared hosting environment.
IMG SRC="/CFIDE/GraphData.cfm?graphCache=wc50&graphID=Images/4990209100100002.PNG"
The hoster uses IIS on a Windows machine and CF7. He has tried several things (configuration-wise), but so far, nothing helped.
What can we do?
We have a site that creates statistical charts on a schedule. CFChart allows you to store the data to a variable (the "name" attribute). Then use CFFile to write the chart to any location within your webroot. We use it for Flash charts, but I've tested it with PNG as well, and it works fine.
I'm not sure how you'd go about adding this to IIS, but, I've used this on apache to solve the same issue:
Alias /CFIDE /var/www/html/CFIDE
<Directory /var/www/html/CFIDE>
Order deny,allow
Deny from all
</Directory>
<Files ~ "^GraphData.cfm$">
Order allow,deny
Allow from all
</Files>
I believe it would be possible to use the techniques described in this blog post:
link text
And store the image in a location where the browser could get to it.