I've been trying to install XAMPP for quite some time now, but every time, at the end of the installation, it says:
Windows cannot find "-n"
And after that, it says:
Problem running post-install step. Installation failed (php.exe) Perhaps you have to install Visual C++ 2008 package.
I have Visual C++ 2008 package and it still says this. What do I do now? I have Windows 10 64-bit for anyone wondering.
I installed it in the root of my C: drive and it worked. Strange that previously I could just install it in my program files folder and that everything works...
Had the same problem when I tried to install xampp in a folder with spaces in its name (some folder example)
It was solved after I reinstalled xampp in a folder that has no space in its name, E.g. c:/xampp
Change your registry settings.
Open Registry Editor by pressing Windows + R key combination, type in regedit and press Enter.
If prompted by UAC, click on Yes to continue.
Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
In right-side pane, look for a EnableLUA and set the value to 0 and close Registry Editor.
Restart your computer.
Source: windows10update.com
Then type in XAMPP shell:
setup_xampp.bat
That error could be shown if you already had an older version of XAMPP installed to the default folder (C:\xampp) and you try to install a new version in a specific custom folder.
Just go to the Windows Control Panel, Add or Remove programs and uninstall the old installation of XAMPP.
I can confirm using Windows 10, that the "Windows cannot find -n" message is indeed based on the fact that you are installing XAMPP in a folder which is not c:\xampp.
That is rather a huge oversight for those who distribute XAMPP, they should allow relative paths.
I was trying to set XAMPP in c:\webservers\xampp\ because I'm working with multiple versions of servers for testing and development and well, there goes that idea.
Of course, in the end, I could always just do it myself, and get each bundle I need such as APACHE, mySQL, etc.. And that would mean, not relying on XAMPP.
Anyways, it's a rather stupid flaw, but it is what it is, and it's free, so, you pay for what you get! :)
An alternative to the current answers: I found that installing in a folder with a dash also didn't seem to work for me. E.g. C:\xampp-test\ would still give an error. Changing it to C:\xampptest\ solved the issue.
I ran setup_xamp.bat once (w/o admin rights) and it did some configuration for XAMPP but that did not help. When I executed setup_xamp.bat again with admin rights, it gave a message "nothing to do!".
While looking at the Apache config I realized it is trying to listen on port 80 and I already had IIS listening on that port. Which was causing the problem.
So I changed httpd.conf to use a different port 8765 (change needed at 2 places)
Also changed httpd-ssl.conf to use a different port 8766 (change needed at 3 places)
Then in XAMPP Control panel > Config > Services and Port Settings > specified same port number for Apache.
Once that was done I was able to start Apache without any error.
i was working on Codeigniter Application in WAMP and then i had to move my project to a LINUX machine.
Now When i have installed LAMP there. but When i try to access my application i get an error:
An Error Was Encountered
Unable to load the requested file: helpers/url_helper.php
i checked my autoload.php. This worked on my windows don't why its not working here.
$autoload['helper'] = array('url','html','crm_helper','form');
Can you please guide me where i am going wrong?
From your modified question, it seems that you are in fact missing the url_helper in your autoload line. It should be like this:
$autoload['helper'] = array('url','html','url_helper','form');
Also include the exact version of codeigniter that you've installed, in your question.
This happened to me ! on my local windows system it was fine ,but when i migrated to Linux server (my hosting server )then it generate the same error: it was due to case-sensitivity of Linux.
these are two deffrent words in linux:
'crm_helper'
'Crm_helper'
so i suggest you to check your files name ,
Linux system crm_helper and Crm_helper are two different files.
remove _helper while loading any helper file / code
I have downloaded magento from bitnami a month ago on my windows 8, now I wanted to install xampp to run my php files and test them I have some confusing issues
1:When I open my php file after installing xampp its not opening as a php file and I have to choose options to open it with notepad,php file is appearing same as nothing happens on installing xampp.
2.Magento has accessed the ports required so if i try to test xampp like this localhost/ it opens page for magento successful installation and not xampp.. I changed the port from 80 to 81 and accessed localhost like this correctly localhost:81/ but when I try to access phpmyadmin its not giving me access to the server with root and no password also I have changed AllowNoPassword true already.I have changed the port to 3310 now how to access phpmyadmin as if I write localhot:3310/phpmyadmin it force downoads a file saying "PACKETS ARE NOT IN ORDER"
I am feeling that there might be some thing conflict among the two installations the question is as I have installed magento already what is the best way t run and test my php file
Thanks in advance
I m getting this error "Too Many Redirects in the page"
during magento setup, between Configuration and Create Admin Account
I have already installed sample data in a db called "magentodata"
My php version is 5.3.8
MYSQL VERSION 5.5.16 (I am using phpmyadmin to install sample data)
Apache is 2.2.21
mod rewrite is on
The error is hapenning only if SAMPLE DATA are installed in the db
Anyone has a solution to this trouble?
instead of http:// localhost/magento1702 try to use http://magento.local/magento1702
it seems like magento doesn't like base domains without dots
to have magento.local pointing to local server add the line
127.0.0.1 magento.local
to your hosts file
[windows]
c:\Windows\System32\drivers\etc\hosts
(open it as administrator)
[linux]
(not sure but seems to be)
/etc/hosts
Please check your local.xml in app/etc/local.xml. When I tried to reinstall magento after loading the sample data I used another database. Magento tried to load the no longer existing database. Maybe you used wrong database credentials, too. Make sure you cleared /var/cache.
I’ve recently started with Codeignigter on local windows machine.
I have install the IIS and extracted only ci folder and place index.php, application, system and user_guide in C:\Inetpub\wwwroot.
I've made change in the application/config/config.php to $config['base_url'] = "http://127.0.0.1/";
now i am trying to excess http://127.0.0.1 and http://127.0.0.1/index.php but it shows page not found.
Can anyone tell me how can i fix this Or what else i have to install
may be you have set host name as localhost or root in xampp or wamp what ever server you using.just check
phpmyadmin
to conform.