Can't check services module in xampp - php

xampp v3.2.1 do I need to check the service module first so that I can view it on localhost?, because I can't see my sample.php in localhost.
I noticed the checkbox is disabled:
and another one how do I normally open my sample.php. the localhost in the browser always
redirect me here: http://localhost/xampp/index.php ..which is the mainsite of xampp. hmm.
Please help, I'm a novice in php using xampp. Google almighty can't find me a solution.

You must start the XAMPP Control Panel as Admin. Go to your XAMP directory, usually its C:\XAMPP\, look for the "xampp-control.exe". Right click on that and hit "Run as Administrator." After confirming the UAC or user account control, you should be able to check and install Apache and MySQL as services. That works for me so it should work for you too as I can tell on your screenshot, we run the same version of XAMPP. Goodluck.

First of all make sure that you haven't installed XAMPP Lite (and portable) version.
Only the full version provide the use of services because Windows needs absolute paths to launch these.
For your redirection problem you will have to tweak apache's configuration files (httpd.conf and/or httpd-xampp.conf). Use the XAMPP Controller's "Config" buttons.
You will have to create aliases for your web folders, see: Apache mod_alias

-Just Run "xampp-control.exe" as administrator
-and stop apache service action port.
-and tick this(in snapshot) check box it will ask for install as service just install it
-then go to service.msc where you will see
-new service name as apache2(or similar)
-just set it as automatic if you want it to run as startup.
(this method is for apache for mysql you will do same above steps)

Related

XAMPP 2 instances on one server

I want to run 2 XAMPP instances on a Windows 2016 server.
1 XAMPP version 3.2.4 is already running:
Now version 3.2.4 has default PHP7x running and I need PHP5 also for a website. I tried to run PHP5 on the same instance. And for this I tried to follow: Is there way to use two PHP versions in XAMPP?.
Unfortunately I could not make it work. So I went for another approach and that is installing another version of XAMPP on the same server. I went for version 3.2.2. I changed the ports like stated in this url: How to change XAMPP apache server port?
But still doesnt work. Seems that my apache is hanging. Here is a screenshot:
Can anyone help me to get the 3.2.2 running? Thanks!
Fixed it. This is how to fix it: Change Apache service name. And then, while Apache is not running, click on the red cross (in the screenshot you see a green check mark but this was a red cross first) this will install Apache. Then run localhost en go to http://localhost:8080 and now its working. Two XAMPPs running at the same time.
Screenshot of chaning the Apache service name (you can go here by clicking on the Config button which you see also in the screenshot at the upper right corner):
In services you can see that there are two Apache running now from two XAMPP installations:

Unable to download apache or mysql as a service on XAMPP

When I download XAMPP, the installation wizard doesn't give me the opportunity to download any of the programs (apache, MySQL, etc.) as services. So then when I open the XAMPP control panel, I am not able to check any of the service boxes.Please help, I have no idea why this is happening!Thanks
When you download XAMPP, those services should be what you are actually downloading - no need to select anything else.
When you open the XAMPP control panel, have you tried clicking "start" to the right of the programs?
I assume you installed Xampp correctly.
goto Xampp installation directory
Path : C:\xampp
Click to xampp-control.exe(Showed in image)
Open that. Then you find this kind of window
Click Starton Apache and MySQL front of there names

Installing OpenSIS?

Im using OpenSIS version 5.2. I am trying to install it but after step 2 it just shows a blank box, I cannot proceed to step 3. I have installed this successfully in my other computer but in this one I cannot. They have the same apache, mysql, and PHP version. What should I do?
Thanks in advance.
i hope im not too late. I had the same issue when installing openSis. The third page just loaded blank with no errors. Turns out I am on php 7.0 which dropped all support for php-mysql extension. So i now have to downgrade to php 5.6 or something. Hacked the source a bit and this error gave me a clue:-
An old question but still this problem exists and the solution to that is:
Open the php.ini file in your PHP folder and search for max_execution_time.
When you find it, increase it to 3600 and save the file. Maximum execution time of each script, in seconds, i.e. max_execution_time=3600
Then restart Apache.
Try openSIS installation again.
Basically turned error logging on and it turns out the blank page was caused by the session_state directory not have the correct permissions. That is for my install the PHP.ini file had put it in my documents and settings\local settings\temp\php or something like that. What you need to do is change the directory in the PHP.ini file to point to say c:\temp (make sure it exists!) and set the permission. To fault find grant everyone access to see if it works then work back from there.
The next issue was the install wouldn't connect to my SQL Server express database, so I was madly replacing dll's as per the WIKI!
Turns out though that the SQL Server express install by default doesn't allow named pipes or TCPIP connections hence cannot connect! You need to check this protocols are enabled
To enable TCP/IP:
From the Start menu, choose All Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Configuration Manager.
Optionally, you can open Computer Manager by right-clicking My Computer and choosing Manage. In Computer Management, expand Services and Applications, expand SQL Server Configuration Manager.
Expand SQL Server 2005 Network Configuration, and then click Protocols for InstanceName.
In the list of protocols, right-click the protocol you want to enable, and then click Enable.
The icon for the protocol will change to show that the protocol is enabled.
After this it was smooth. WIKI needs updating badly!

How to set up/view PHP server pages in Eclipse with the PDT plugin (for php)

I am trying to set up a PHP server on my localhost to run with the Eclipse PDT.
I want to be able to view the PHP site I am developing on something like http://localhost/MySite/index.php so that I can Run it straight from Eclipse.
I am using IIS 7.5 (windows 7 home premium) for the PHP server.
So far I have followed these instructions, but have not been able to get it to work:
Install CGI option in Windows Features
Install IIS Manager in Windows Features (so I can run inetmgr.exe)
Download the NTS-version of php and extract the zip to C:/php
Rename php.ini-development to php.ini and set the extension_dir variable
Run inetmgr and create a new website to run PHP applications (I removed the DefaultSite):
Site Name: My Site
Physical Directory C:/dev/MySite
Application Pool: DefaultAppPool
Bindings:
Host:
IP Address: All Unasigned
Port: 80
In inetmgr: Click on handler mappings and add a new Module Mapping:
Request Path: *.php
Module: FastCGIModule
Executable: C:/php/php-cgi.exe
Now I have many problems:
In IIS Manager, when I click Edit Site > Test Settings, there is a yellow exclamation-mark warning: Authorization: Cannot verify access to path (C:/dev/MySite):
The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again.
When I try to load any .php file directly from the webroot (C:/dev/MySite) it displays as plain-text in my web browser
When I try to Run my project in Eclipse, it goes to http://localhost/MySite/index.php and there is a 404 Error: Website Not Found
When I go to http://localhost/ in my web browser, I also get a 404 Error.
If you download PHP 5.4.x you will be able to use the built-in web server for all of your development needs.
In your php folder, you would run:
php -S localhost:3030
Now you will be able to browse to http://localhost:3030/index.php
If you were using the Aptana IDE (or anything comparable), you would set this up like so:
Your run configuration would be:
I don't personally use Aptana (I did a few years ago); however, I thought it would be interesting to try this to find out if the integration would be seamless or not. I have to say, I am pretty impressed at how Aptana gets out of your way so you can do just about whatever you want.
Finally, if you are wondering about the "$HOME/local/php/versions" listed in my "Start command", I drive multiple PHP versions with a tool called php-version. Please be aware that this tool targets Linux/Mac users; however, if more people are interested, I may do a windows/powershell port (NOTE: I am the author).
I'm afraid I don't have an answer to you're question, but I wanted to share...
I never was a fan of running PHP on IIS or Apache. So I built a portable, no-install-required copy of nginx that I could move around with me or use on my Windows machines. (Just download the flavors of PHP, Nginx, and MySQL you want and start it). One of the reasons is that most production sites run nginx anyway, so this way I'm closer to what my server actually uses (unless you are on "shared-hosting" which still uses the Apache).
Second, I'm not sure why you need to "run" it from Eclipse. When you write PHP you usually are dealing with a lot of variables to get pages setup. I would say you need to worry more about adding Unit Tests to make sure things work right, and using a browser like Firefox (with firebug) for testing any requests you might be making. Things like AJAX, or dealing with session cookies often require more control than what Eclipse can give you.
Bottom line, I'm not sure why you think you need to do this.

php SOLR extension is not loaded in wamp

I am trying to configure SOLR on PHP and using WAMP.Added extension in php.ini also pasted the
php_solr.dll in the extension directory.
Unfortunately the extension details is not appearing in my php info.
I am just confused that may be I am missing any configuration step/
Thanks in advance.
If you are using Linux then go to /etc/php5/apache2/conf.d/. If you find another .ini then create a solr.ini file, add the following line and restart the Apache service.
extension=solr.so
See my blog post for more information.
Let me know if you need more help.
I couldn't get that plugin to work and ended up going for solr-php-client from http://code.google.com/p/solr-php-client/
It does everything you need it to and you can include_once it into your scripts and know that you can deploy them on a standard PHP installation.
Installing Solr on Windows with Wamp
Solr is a great tool for full-text searching and more, from Apache Software Foundation. Its based on Apache Lucene search library and extends it. In this post I will let you know how to install Solr on Windows and integrating it with WAMP. Integration with WAMP is not mandatory if you are not using it.
The esyest way to install solr on Windows is to use Solr installer from BitNami. This can be found here http://bitnami.com/stack/solr. Download the installer and run it with administrative rights. Try to keep the installation path simple something like “c:/solr/” will be appropriate.
It will also install an apache server so if you don’t have wamp or apache already install than its super easy, just go with the flow. If you already have wamp installed than make this apache listen on some available port other than 80 (where wamp apache is listening).
Once the setup is complete Solr will be available for use in port selected during setup (see no big deal). Now if you have wamp and you don’t want to have two apache services running do the following steps.
Enable proxy_module and proxy_http_module via wamp menu or directly from apache conf file.
Open httpd.conf file and add following line at the end of the file
Include "c:/solr/apache-solr/conf/solr.conf"
Note that the path here should be correctly pointing to the solr.conf file. Use the path where you installed the Solr.
Now restart the wamp apache via wamp menu. If it starts correctly than its cool, otherwise check if you have correctly enabled the said modules, and path to solr config file.
Now check http://localhost/solr/ this should show the dashboard for solr.
Remember the extra apache service we need to disable it so it does not start automatically as we don’t need it. So goto Control Panel > Administrative Tools > Services , double click “solrApache” service and change its “Startup Type” to “Manual”. Now it will not start once your system is restated.
Happy solr searching

Categories