Xampp and local Wordpress permalinks issue - html

I know this question was asked before but it seems that nothing helped.
I have a local Wordpress installation and try to use permalinks.
What I did in my XAMPP was to open the conf file and find
LoadModule rewrite_module modules/mod_rewrite.so
so it was activated and no # before. Then I searched for
AllowOverride All
which was fine too. But none of the permalinks work, I always get an not found error.
Can anyone help?
EDIT: question solved, needed to put the .htaccess in the root folder and restart XAMPP

Related

Issues with misconfigured Apache vhosts

I have issues with setup correct vhosts in Apache.
simlink ln -s /mnt/d/localdevelopment /var/www/localdevelopment
In mysite.local.conf
DocumentRoot /var/www/localdevelopment/mysite
The issues is when I go to mysite.local I get the index of localdevelopment
If I navigate to the directory mysite is going to mysite.local/localdevelopment/mysite and is not working.
Any ideas what i am doing wrong?
It's turn out that is an Apache2 issue, is displayed only the default vhost, so i have disable the conf for localdevelopment and leave only vhost for mysite and is working.
So until i found a solution, i have to disable and enable vhost to see the proper project.

Enable LDAP on Xampp Windows

I want to enable LDAP module on my XAMPP Windows 10, here's the few solutions that I've tried :
Copy dll files to System and System32 and uncomment extension=php_ldap.dll in php.ini, both development and production.
Copy libsasl.dll to xampp/apache/bin
None of these working, when I opened phpinfo() there is no ldap info showing, which means the ldap hasn't been able to installed. I also added PHP in Windows Path with no success, but either my approach is wrong or that wasn't a solution. Any help appreciated.
Make sure the path\to\xampp\php directory has the following files
libeay32.dll
libsasl.dll
ssleay32.dll
Usually, you can find these files in path\to\xampp\sendmail - this library also uses them. But if not, try to search for them inside the xampp directory.
Uncomment or add the ldap extension in the php.ini (path\to\xampp\php\php.ini) file
extension=ldap
Restart the server
Make sure the path\to\xampp\php directory is set in the system environment variable PATH. To know how to do it, see this post.
I just ran into the same issue and the link you provided How to enable LDAP extension in XAMPP environment ended up being the solution for me.
I copied libeay32.dll and ssleay32.dll from C:/Ampps/php to C:/Windows/System32. I made sure neither of these files were in C:/Windows/System. From there I enabled extension=php_ldap.dll in the php.ini file. Ampps has a list you can enable php.ini dll's and if I remember right so does XAMPP. The last step is to just restart Apache and you should be good to go.
I'm using Windows 10 with Ampps instead of XAMPP but have to think they are pretty close.

Changing Apache directives on GoDaddy shared server

The site I'm working on is hosted on GoDaddy's shared servers. I need to increase the limit on the Apache directive LimitRequestBody. I've tried adding the following to .htaccess:
LimitRequestBody 20250000
But that doesn't have any effect. I've called GoDaddy support several times, and nobody there seems to know how to help.
Any ideas?
Make sure your .htaccess file is affecting the correct directory - the one where the script you want to limit lives. To affect only that directory, put your .htaccess file in the root directory(above your script) and wrap your directive with
<Directory "/var/www/path/to/script">
LimitRequestBody 20250000
</Directory>
After you change the .htaccess file, you need to run
# service httpd reload
I hope this helps.

phpMyAdmin issue file not found

Getting this error "The requested URL /phpMyAdmin/db_structure.php was not found on this server." when clicks on the any of the database from the left bar.
I am using phpMyAdmin from MAMP pro. I tried reinstalling whole MAMP pro but still facing the same problem.
Any Help would be appreciated.
Check that your Apache config (httpd.conf) looks like something like that :
Alias /phpMyAdmin "[Your path to phpmyadmin]"
<Directory "[Your path to phpmyadmin]">
AllowOverride All
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
Note that you may want to be more restrictive about the allow/deny config.
I solved this problem by reinstalling MAMP pro.

Access to folders under localhost/htdocs some work and some do not

I have apache2.2 installed on my Win7 laptop along with php5.3. I can run html and php files with no problems in the htdocs folder and also under a folder called htdocs/myzftest/public/index.php.
I just installed MySQL and it seems to work ok. I then downloaded phpMyAdmin to htdocs/phpMyAdmin and tried to run index.php from there but I get The requested URL /phpMyAdmin/index.php was not found on this server.
Why can I access an index.php under one subfolder but not another?
I saw some posts about .htaccess files but I dont know how/where to use it.
Thanks
Dan
I would like to first suggest that you replace your custom Apache + PHP 5.3 + MySQL installation with a WAMP (www.wampserver.com/en/) which is already integrated and configured.
It also comes with prebuilt phpMyAdmin so you will not need to download or configure that too.
I am assuming that you will be using Zend Framework for your projects seeing zftest, you can follow the steps here Setting Up Zend in Wamp server
My guess is that you have an alias for phpadmin in one of your conf files suach as in httpd.conf.
I for example, have this in httpd-xampp.conf:
Alias /phpmyadmin "C:/Program Files/xampp/phpMyAdmin/"
<Directory "C:/Program Files/xampp/phpMyAdmin">
AllowOverride AuthConfig
</Directory>
This redirects calls to phpMyAdmin to the directory C:/Program Files/xampp/phpMyAdmin instead of C:/Program Files/xampp/htdocs/phpMyAdmin