I have a running Tomcat server and recently wanted to get phpmyadmin used with MySQL on Linux. I have researched a bit and found that Quercus can be used for PHP on Tomcat. I then started my installation.
I have downloaded the quercus.war, put it under /tomcat/webapps/ROOT, restarted tomcat, and tested on browser. However it's not working, index.php gives "PHP files are not being interpreted by Quercus" which I think it means failure.
I then searched and tried to put the quercus.jar (from quercus.war) under /tomcat/lib/ then restarted Tomcat. It gives the same page and same message with index.php.
EDIT:
I have tried to modify /tomcat/web.xml, at the same time removed quercus.jar from /tomcat/lib and restarted tomcat. This time it gives HTTP 404,requested resource is not avaliable
My questions are:
Is there anything I missed or is there anything wrong?
Further, how do I install phpmyadmin after my installation of Quercus?
I decided not to use phpmyadmin and switch to VDBC. I put vdbc.war under /tomcat/webapps/ and restarted tomcat, everything goes fine now.
EDIT: I tried to put quercus directory under /tomcat/webapps/ and it works! However, I still cannot figure out how to make phpmyadmin run, is there any advice?
Related
I cannot get Apache Tomcat to start. I followed the instructions for installing Tomcat on the Mac found at https://www.dev2qa.com/how-to-install-tomcat-in-macos/.
After I type the command to start Tomcat, the response from the command line is that Tomcat has started.
However, when I go to the browser, the default page is not showing up. I further checked to see if the port was being used by using the command
lsof -nP -i4TCP:8080 | grep LISTEN
which showed that no program is using the port. I also read the 'RUNNING.txt' that instructed me on setting the environmental variables, which I did. Any suggestions on why Tomcat is not starting up.
I'm using jdk 1.8.0_202 and Apache Tomcat 9.0.14 that is running of Mac OS High Sierra.
BatChmod
After downloading a fresh version of Tomcat, I use the BatChmod app to alter the file permissions. Tomcat will not launch properly without altering the permissions.
I do not know the command-line equivalent, but here is a screenshot of the settings I have used for years successfully.
Plea for help
If anyone can write the equivalent as a shell script for macOS, please post!
Even better, explain how to wrap such a script as an AppleScript for drag-and-drop execution in Finder.
The problem turned out to be a permissions problem. When I installed Tomcat, I put the folder in the '/Library/Tomcat' directory. Even though the Tomcat files were changed to be executable, the user and group ownership remained the same. To get Tomcat to run, I moved the directory to 'Users/MyUserName/Tomcat'. Once I did that, the default Tomcat page ran.
I have the Oracle Weblogic 12.1.3 and the installation went well and the server was starting successfully. But now It fails to start for some unknown reason. It had problems with the base domain that I created in the setup. So now I'm trying to set up a new domain. But the problem is that the configuration wizard fails to start. I've tried running it with Run as Administrator but the cmd just pops up and disappears. I tried to reinstall the Weblogic server from start and even that didn't solve the problem. The part where the configuration wizard starts I got the same issue. I've also tried running it from command prompt itself but the same thing happens. I have also tried this:
config.cmd -mode=console
and in the cmd it says
Files/Microsoft went wrong this time
and also running it in "text" mode like this
config.sh -mode=console
but it fails to start. and shows the following:
What could be the problem and the fix for this? I'm running Windows 7
There was some discrepancy in the path variable of the environmental variables. Re-arranged the path values and inserted/removed quotes from some values and added that path value containing Files/Microsoft int the end(which was added by Microsoft VS Code). This solved the problem.
I have literally tried EVERYTHING and have spent the past 48 hours glued to my machine trying to figure this same problem out with no luck. We are running a IIS 6 Server / PHP 5.3.3 I have searched up and down thru the .ini file to make sure everything was turned to off or didn't have any effect(safe mode, etc.) I uninstalled and reinstalled Java on the web server on a folder that isn't in the C:\Program Files folder(seen a example on stack to do this
PHP exec java on IIS 7).
I can get the php file to execute the jar file through command prompt.
this is the code I have inside php.
exec('"C:\java\comp_java\jre\bin\java" -jar \\mywebserver\inetpub\wwwroot\Java\dist\houses.jar');
(triple backslashes before mywebserver and double backslashes everywhere else)
inside command prompt I simply type in:
1. php + spacebar
2. drag and drop the .php file and press enter
it works how I want it to. I have literally exhausted myself searching and don't know what else I could do. No output comes out the php page and my jar file doesn't get executed. the IIS manager on the web server has a dropdown with websites that my folder is included in and I have all the permissions on full blast. Im guessing that the IIS and exec() command in php don't gel together real well and that's the cause of the problem. I don't want to run apache since IIS is already setup. Let me save some grief and reiterate that I have browsed thru stack examples these past two days with no luck. As similar as my question i guarantee something is different, i just don't know what yet. Any help would be greatly appreciated. Thanks
Try changing the slashes...this worked for me. I created a file named try.php with content:
<?php
exec("c:/dev/java/jdk1.6.0_45/bin/java.exe -jar C:/dcevm-0.2-win.jar");
And it works OK
Good day,
Previously administrative console can access successfully. Start from today, not sure why it can not be access.
I working on RAD 8.5, I right click on my Server, point to Administration, then click on Run Administrative Console. Then I hit error as follow:
SRVE0255E: A WebGroup/Virtual Host to handle /ibm/console has not been defined.
SRVE0255E: A WebGroup/Virtual Host to handle localhost:9060 has not been defined.
IBM WebSphere Application Server
My server is working fine, because I can start it, and browse my app correctly, can log in and so on. But can not access to Administrative console.
Previously it was working fine, but suddenly can not access. I didnt change anything on it also.
Kindly advise.
I know this post is pretty old but seems I found a better answer when I was personally stuck.
The deployConsole.py script is located in the profile_root/bin directory. It should be used to redeploy the AdminConsole.
wsadmin.bat deployConsole.py install
Found a solution from a blog, and its solved my problem.
http://wcs-hub.blogspot.my/2012/03/resolved-unable-to-access-was-admin.html
Please follow below steps to resolve this.
Go to <>wasprofile\bin
run wsadmin.bat -lang jython -f deployConsole.py remove
wsadmin.bat -lang jython -f deployConsole.py install
I am a noob. I just downloaded the liferay with jboss 7.0.2. I had it installed on mt laptop by watching the youtube. I got it started by just using command line console. I successfully got it setup and running on the localhost. I turned off the command line console after I got it done.
Then I tried to open it one the browser by the localhost and it is not working now. Now I cant go back to the platform.
I tried to go under the cmd again and enter
{the folder}\jboss-7.0.2\bin\standalone.bat
It shows me that it was calling another file called "standalone.conf.bat"
Now my environmental variables are
JAVA_HOME C:\Program Files\Java\jdk1.7.0_04\bin
JAVA C:\Program Files\Java\jdk1.7.0_04\bin
I need to start the thing start.. please help me
If you working with Tomcat (as per your last comment), then you should go to bin/startup.bat file (windows) or startup.sh (linux).
Now :
1) If your console does not start, that means, either some problem with tomcat configuration (CATALINA_HOME variable) or java configuration (JAVA_HOME)
2) If it starts, but hangs when configuration of data (default sql scripts), then there is a problem with database configuration that you did in portal.properties file, or default HS SQL DB.
3) If it hangs somewhere else, there must be some issue with the default port of the server.
Hope this helps.