I'd like to give my users a shrinked package of Xampp (without MySQL and tomcat folders). That means that I'd like to take the original ZIP file (from sourceforge.net) and remove some unnecessary folders (but leave Apache folder since I need its web server). Am I allowed to do so? Am I allowed to give my users such an distribution kit?
Thanks
XAMPP is a very easy to install Apache Distribution for Linux,
Solaris, Windows, and Mac OS X. The package includes the Apache web
server, MySQL, PHP, Perl, a FTP server and phpMyAdmin.
Nothing is owned by the creators of the XAMPP installer, so the simple answer is: Yes, you can download and remove content from the .zip file and serve that.
Visit their homepage for further information.
XAMPP is published under GNU License, so you can basically modify XAMPP the way you want to, and then you need to publish it under GNU as well.
Related
I have just successfully deployed Quercus on Glassfish 4.1. I tested in the browser
http://localhost:8080/quercus-4.0.39/ and saw this:
Congratulations! Quercus™ Open Source 4.0.39 is interpreting PHP
pages. Have fun!
Then ran Netbeans Tools > Options > PHP > Activate PHP Support
It worked. I now see this:
So I made 3 tests:
I ran a php page in an html application but instead of displaying the page it prompts a download box to open in Notepad
I created a new PHP project with below configuration:
But when I run the app with above configuration I receive this error:
Firefox can't establish a connection to the server at localhost.
So I tried with a third test with other configuration:
When I run this third test I get a HTTP Status 404 - Not Found error on GlassFish server.
What am I doing wrong? Thank you!
The problems with your tests are:
PHP needs to be interpreted by a web server. Your browser doesn't know what to do with a PHP file, so it just treats it like a file rather than a page to render. Apache is the most common and easiest server to do that with, GlassFish is unnecessary and probably not the best choice for PHP.
In this test, you are trying to visit a web server which doesn't exist. You don't have any server that listens on port 80.
Here, GlassFish is reporting that it can't find the resource you requested. Have you made sure to put your PHP project in the right directory for Quercus (like in step 4 of your documentation link) and made sure you're visiting a valid URL?
I think the best thing for you to do is move away from Quercus. The latest version of it is very old and implements an old version of PHP (version 5, whereas the latest is 5.6). Looking at the official website, the project appears to be dead, with broken links and very old documentation.
I would suggest you investigate installing a WAMP (Windows, Apache, MySQL, PHP) or LAMP (Linux, Apache, MySQL, PHP) stack. There are lots of very easy installers for this approach which will help you get up to speed and a lot of helpful tutorials and documentation.
For those who using tomcat, below are the steps :-
Right click your project --> properties --> Run Configuration --> For Run As, select PHP Built-in Web Server
Go to Tools --> Options --> PHP tab --> in Php 5 interpreter, browse the correct location for php
Then it should works !
In my case , my php is in /usr/bin/php7.0, so I put the path in Php 5 interpreter.
In a weeks long futile attempt to conjure up a basic. PHP application, I've decided that perhaps I'll try this CFML thing.
I already have XAMPP installed and figured I would only need to install Railo on my system. At one point, the GUI installer asks for /usr/sbin/apache.ctl to be confirmed for its use but no such file exists on my system, hidden or otherwise.
Does XAMPP not need/have that file by default? Can anyone point me in the right direction?
Railo and XAMPP...you can do this but Railo has a nice portable all encompassing download that uses Jetty.
Railo Express: https://github.com/getrailo/railo/wiki/Installation-ExpressJetty
Which is the best way to get up to speed on the CFML or cfscript version of coldfusion.
If you are on windows you can click the start.bat file. This will start the service where you can the navigate to localhost:8888 and you should.see you admin screen.
Railo and Coldfusion are a language and a server (service).
Behind the scenes there is a file structure you can follow and put your files that you are testing with. The link above should give you the basics to get started.
I would first test the wwwroot is picking up your files by making a simple index.html file and navigate to it through your browser.
The add a index.cfm with a simple Coldfusion hello world.
The you can dig in and get a database configured through the admin section and make some pages that do some database calls.
Oh...and welcome to the Coldfusion programming language where you can do a hell of a lot more in less time, make good pay and generally enjoy your projects more.
I need some help to get Mac WebSite sharing to work as i want.
Basically i need to know how i can make it display the files of a directory.
Do i need to make a website to show my directory files or is there any other way ?
And if i do need to make a website to display my directory, what code should i use to do so ?
I am no expert on HTML at all.
Allso, i have been searching around for this and i couldn't find any answers related to my question.
You need to turn indexes on in your Apache config. This could be on by default. Check to see if you have folder named Sites in your home directory. If you do rename the index.html page (if there is one) and then navigate to http://localhost/~yourusernamehere.
The same applies if you are using the default apache directory (the system wide one) which is located in /Library/WebServer/Documents if I remember correctly. In this case you would navigate to http://localhost. I just checked on my system (OS X 10.7) and the indexes were enabled by default.
You will need to use a server-side language such as PHP, Java, ASP.NET if you want to display the 'servers' directory on a web page. I will say because you're a begineer use PHP as it's very easy to learn...
Download MAMP / XAMPP.
Research PHP and follow some tutorials first, and then implement directory searching and output it as HTML.
http://php.net/manual/en/ref.dir.php
Code:
http://css-tricks.com/snippets/php/display-styled-directory-contents/
So I have several dedicated servers out there running Ubuntu Lucid server. They primarily run WordPress sites - LAMP. However, one of my original sites is a controls engineering site that uses MathTex to render the equations.
MathTex is pretty hard on servers. The engineering site is still hosted on the original VPS which runs something like CentOS (but that's irrelevant). The traffic and numbers of renderings that MathTex creates cause resource issues with my VPS. I've been able to allocate more resources to the VPS but ultimately this gets expensive. So I'd like to offload the equation rendering to my dedicated servers all of which are much more powerful and under-utilized.
So I've followed the instructions on installing and compiling MathTex. And MathTex works fine from the command line. However, when I attempt to call the script via my browser the browsers all try download the cgi file (I've tested on Firefox and Chrome on 2 machines).
This led me to attempt to compile and install on my home Ubuntu box that is Ubuntu desktop. The command line works fine. However, again when calling the function in my browser it wanted to download the file instead of rendering an equation. So I moved the mathtex.cgi script to /usr/lib/cgi-bin. Still no go. Then I changed /usr/lib/cgi-bin to 777 and it worked. I changed /usr/lib/cgi-bin to 755 and it stopped working.
So my home box works when /usr/lib/cgi-bin is 777. I tried that one of my dedicated Ubuntu servers and still no go. My browser still attempts to download the file.
The directive for Apache to find the cgi-bin directory is in /etc/apache/site-available/default. And at a quick glance they appear to be identical (I haven't yet studied every character).
FYI
I got some help from my hosting company. They are generally pretty good but this is outside the scope of what they provide for free. So when I was switching servers I had a couple of password issues and managed to tack this question on as well.
The support person finally got the mathtex.cgi script to run by creating a /cgi-bin under the domain's folder. Making that folder 777 and adding an AddHandler cgi-script to the http.conf. Then he restarted Apache2.
I had been putting mathtex.cgi under a generic /cgi-bin directory that I had intended to share among all the domains as needed. And this generic /cgi-bin directory appeared to be what the MathTex installation instructions were suggesting.
Hope this helps someone else.
I am trying to see if anybody is aware of any ssh or ftp ways of editing files in expression web. This is similar to notepad++. I am already aware of sftpdrive option. I am looking for something that is free, and robust.
I have not played with open site feature in Expression Web. I am not sure if this will work well with a php site on a Linux box.
Connect your Expression Web directly to any FTP server in the open site dialog by typing the ftp address in the site name placeholder like ftp://myftpsite.com. Expression web ask you for your login and password and list your folders to begin to edit your files. It’s very easy, no problems at all.
Another option is to use samba or nfs to mount a directory on your local machine. If the server is live, you should restriction connections by ip and/or with a vpn.
Be aware that some editors will lag quite a lot with these solutions though, especially with large files.