Wampserver root privileges error - root

By accident I deleted all root users in msql/wampsever and then i can't acces phpmyadmin !
I tried to launch mysql console and connect to root .. It works so i don't know what i should do !
phpMyadmin : "You don't have permission to access /phpmyadmin/ on this server."
Thanks

Possible duplicate: WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server
Can you show us your /alias/phpmyadmin.conf file? It should have something along the lines of:
<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
See this post.

You can get your wamp back by following two steps:
Step 1: Set privileges to mysql
i. Open command prompt and navigate to mysql bin folder which is usually present in
"C:\wamp\bin\mysql\mysql5.1.36\bin"
Execute the below set of mysql commands with appropriate changes to set the new password
MYSQL -U root -P
UPDATE mysql.user SET Password=PASSWORD('YourNewPassword') WHERE User='root';
Step 2: Configure the above set privileges to phpadmin/wamp
i. Locate "config.inc" file in the wamp folder, typically it is present in
"C:\wamp\apps\phpmyadmin3.2.0.1"
ii. Open it up using standard text editor such as notepad etc.
iii. Edit the values of user/password to what you have setup in the previous step.
iv. Save the config.inc file and do not forget to restart all the services by rightclick wamp on the

Related

access denied for image file server in nginix

I am using prestashop on nginx provided by plesk . two image on inner folders have the same permission but one of them is available from browse the other is not !!
I've already gave them both 777 permission and their parent folder have the same permission either.
How I can access them from Browser?
Edit:
the physical address of Images Are like that : /var/www/vhosts/site.com/httpdocs/modules/slider/img/view/slides/1.jpg
and the URI that i'm using is site.com/modules/slider/img/view/slides/1.jpg
and the error_log is Permission denied: access to /modules/slider/views/img/slides/1.jpg denied
Most servers will not work with permissions on 777 because too many permissions are very risky, most servers work perfectly with permissions in...
Folders: 0755
Files: 0644
We have a publication about how to configure the correct permissions: https://www.rolige.com/en/blog/how-to-assign-the-correct-permissions-to-my-prestashop-files-and-folders-n7

'[crit]' 398#398: *45 error - loading jpg from gphotofs mounted file system

Background:
Busy with a project with the goal of serving jpg from a nikon d750 camera with nginx.
Physical key -> GPIO RPI -> Callback -> websocket -> client -> show jpg from:
gphotofs mounted file system.
Everything works fine as long as I don't try to load from the mounted file system, if I do I get the error:
[crit] 398#398: *45 stat() nginx
The mounted directory is: /var/www/html/mount/ [store_00020001/DCIM/110D7100]
I can see all the files, so its properly mounted.
I tried:
chown -R 777 /var/www/html/mount
and:
adduser www-data /var/www/html/mount
Anyone ideas on how to solve this?
So this was an permissions based fault.
I ran gphotofs command from root, and tried to acces this directory via a symlink from www-data.
I solved this as followed (with using APACHE instead of NGINX):
changed envvar files as followed:
sudo nano /etc/apache2/envvars
change:
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
to:
export APACHE_RUN_USER=pi
export APACHE_RUN_GROUP=pi
Created the symlink, and allowed apache to follow symlinks by editing conf file:
sudo nano /etc/apache2/sites-enabled/000-default.conf
and added the following lines BETWEEN virtualhost tags:
<Directory />
Options FollowSymLinks
AllowOverride Indexes
</Directory>
Done.

Error establishing a database connection - Ubuntu WordPress on 14.04

Today I have started to see in my website this message "Error establishing a database connection", so I was investigating and I saw this article related and I have tried to implement it but its not working for me I still getting the same issue and I have no clue why.
Below is what I have implemented from the article:
For Apache on Ubuntu 14.04, edit the configuration file with the following command:
sudo nano /etc/apache2/sites-available/000-default.conf
Add the highlighted lines below between the tags.
Apache VirtualHost Config
<VirtualHost>
…
<files xmlrpc.php>
order allow,deny
deny from all
</files>
</VirtualHost>
Save and close this file when you are finished.
Restart the web server to enable the changes:
sudo service apache2 restart
What is weird is when I restart the droplet the website works for a couple of seconds so.. I cant figure out how to fix it.
Droplet details: 512 MB Memory / 20 GB Disk / LON1 - Ubuntu WordPress
on 14.04
The error in your logs show MySQL battling to allocate memory
Fatal error: cannot allocate memory for the buffer pool
Here's something you can do to get past it.
Add a Swap file
dd if=/dev/zero of=/swap.dat bs=1024 count=512M
mkswap /swap.dat
swapon /swap.dat
Reduce the memory footprint of MySQL
Edit /etc/my.cnf, and add the following line under the [mysqld] heading.
[mysqld]
innodb_buffer_pool_size=64M

Artifactory web page is unaccessible

Artifactory has been installed on a RHEL 6.2 machine using RPM, but I couldn't connect to the Artifactory webpage using the link http://<server-ip>:8081/artifactory
When I use curl http://localhost:8081/artifactory on the same machine, it doesnt show up any error.
Later in the day, realized, there is no Apache on this machine. So installed Apache on the yum repository and followed the instructions for Running Behind HTTP Server and configured the httpd.conf file under /etc/httpd/conf with below configuration
<VirtualHost *:80>
ServerName <server-ip>
ServerAlias <server-ip>
ServerAdmin <email-address>
ProxyPreserveHost on
ProxyPass /artifactory/ http://localhost:8081/artifactory/
ProxyPassReverse /artifactory/ http://<server-ip>:8081/artifactory/
# DocumentRoot /srv/www/httpd/htdocs/
ErrorLog "logs/artifactory-error_log"
#CustomLog
# ServerSignature Off
But still couldn't connect to the Artifactory webpage. What does Document Root refer to, I do not have this directory on my machine.
Do I install Apache first before installing Artifactory or my installations should not be a problem.
First, lets put aside the small things.
1. You don't have to install apache to work with Artifactory, it should work just fine without it.
2. DocumentRoot is a mandatory element but useless when Apache is used as a proxy for Tomcat, so it can point to any path (doesn't' have to actually exist).
Now, to the business. When you see a blank page instead of Artifactory home page, it usually means that something went wrong during the install. You should look in the logs (both /var/opt/jfrog/artifactory/logs/artifactory.log and Tomcat logs (catalina.out and localhost.log) in /opt/jfrog/artifactory/tomcat/logs. Chances are you'll be able to easily spot the error (ports conflict, permissions issue, etc.) if not, please update the question with the relevant log parts.

Alfresco webdav behind apache under jkmount

I'm trying to configure the access to an alfresco webdav directory.
Alfreso is in local ip 192.168.1.25. If I mount (with mount.davfs http:// 192.168.1.25 :8080) , it works ok.
If I configure jkmount in the apache server (in another local ip, 192.168.1.111), when I mount it (with mount.davfs http:// public /alfresco), it doesn't work. The mount error is:
mount.davfs: connection timed out two times;
trying one last time
mount.davfs: server temporarily unreachable;
mounting anyway
However, if I mount the URL with firefox, chrome, or Windows net share, it works ok.
I've tried different jkmount options, rewrites, etc., and with firefox and others it works ok, but it fails using mount (and I must use mount or any other command line tool).
Cadaver also fails.
Regards,
Thanks Heiko,
I've set up the virtual host with (Alfresco Server is in another server):
ProxyPass /alfresco ajp://192.168.1.25:8009/alfresco
ProxyPassReverse /alfresco ajp://192.168.1.25:8009/alfresco
<Location /alfresco/webdav/ >
<Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>
Order Deny,Allow
Allow from all
Satisfy Any
</Limit>
</Location>
And the problem persists: I mount it with firefox (and chrome, etc.) ok, but it fails with mount.davfs or cadaver. It doesn't work with curl too.
In alfresco-global.properties, this lines are commented:
# URL Generation Parameters (The ${localname} token is replaced by the local server name)
#-------------
#alfresco.context=alfresco
#alfresco.host=${localname}
#alfresco.port=8080
#alfresco.protocol=http
#
#share.context=share
#share.host=${localname}
#share.port=8080
#share.protocol=http
Are they necessary?
Is there any other apache directive for this?
I also tried to offer the directory via apache with:
ProxyPassMatch ^/alfresco/(.*)$ "http://192.168.1.25:8080/alfresco/$1"
ProxyPassReverse /alfresco/ "http://192.168.1.25:8080/alfresco/"
and
JkMount /alfresco/* alfresco configuring jk workers.properties with:
worker.list=alfresco
worker.alfresco.type=ajp13
worker.alfresco.host= 192.168.1. 25
worker.alfresco.port=8009
worker.alfresco.lbfactor=1
worker.alfresco.socket_keepalive=1
worker.alfresco.socket_timeout=300
And the results are the same: It works in navigators but not in linux console.
I've set apache logs in debug mode for this virtual hosts, and when I mount it with firefox, it writes the right info (ajp conections, etc) but when I try to mount from linux terminal, the logs are empty. This is like the conection doesn't work, but only from console...
Thanks for your help, I keep looking for solutions...
Did you set up virtual host like described here?
Also you may need to set ProxyPreserveHost Directive or something similar depending on your apache mod (mod_http_ajp or mod_jk)

Resources