How to resolve the issue in running wampserver from USB flash drive? - php

I'm using Windows 7 on my system. I'm trying to run wampserver remotely on a USB flash drive. For that I did necessary path configuration settings and moved the whole installation folder of wamp from my machine to USB flash drive.
I referred the following link for migration of wamp from local machine to USB flash drive:http://forum.wampserver.com/read.php?2,62431,62812
After performing all the necessary steps, I double click wampmanager.exe in wamp folder, the red coloured wamp symbol "W" get appear in the system tray. It's not getting converted to Green "W" which means wampserver has not been started.
For detecting the issue I checked the port 80 availability, it's available. When I clicked Apache->Service->Start?Resume Service, I get a dialog box titled "Aestan Tray Menu" containing the message "Could not execute menu item (internal error) [Exception] Could not perform service action: The system cannot find the file specified". I googled it for the solution, but couldn't get it. Can anyone help me out to resolve this issue? Thanks in advance.

Maybe you'v forgot some file when you moved all the server to the flash memory. There is a version specific for flash memory (portable version) called 'Uniform Server'.
There is the link to the author webpage.
http://www.uniformserver.com
It's totally free of charge.
Greetings!

The error warning in Wamp is vague but I think you will find Wamp is simply looking in the wrong place.
Remember localhost is the root on all devices so wamp will look for the instance of localhost.
Perhaps to avoid confusion you should call "localhost" on the usb something unique.
See this post on renaming "localhost"
How to change the URL from "localhost" to something else, on a local system using wampserver?

Related

Download Wamp onto a Shared Drive so everyone in school can access HTML and PHP pages

I am new to all things servers but I am competent enough to understand. Please point me in the right direction.
At school, we have a 'shared drive'. I downloaded, set-up, and ran a WAMP server. I created HTML pages with PHP code to send/retrieve data from the database. I didn't want it on the internet, only locally accessible.
I then decided to move this to the 'shared drive' so that everyone on the school network could access it by simply going to their favorite browser on a school computer and typing 'localhost:8080/' like I do on mine.
I copied and pasted everything, the entire 'Wamp64' folder with all my changes included, onto a folder in the shared drive. I modified the 'http-vhost.conf' file
DocumentRoot "I:/Laboratory/Internal/Server/wamp64/www/project1/"
Directory "I:/Laboratory/Internal/Server/wamp64/www/project1/"
as follows with the new path. Still, nothing when I got onto a PC and typed 'localhost:8080/'
This is all I've done. Every single step.
I understand how naive my understanding may seem. Please, point me in the right direction.
I think you are missing the point of what a web server is i.e. Apache.
It is a software server and as such can sit on any PC in your network, which could be the server or the little old box in the corner that no one ever uses because it is a bit out of date.
It sits on that PC and listens for things trying to connect to it, usually on port 80, but could be any port like your 8080.
So, placing it on the hardware server itself is not necessary.
And, just copying an install to a shared drive and expecting an PC on the network to be able to then us it is just not possible.
Also, its always best to install WAMPServer i.e. Apache, where you want it to be located. Copying an installed version from one drive to another never works, as the install modifies path data all over the place and of course the Apache and MySQL services are installed (windows service installed) from the original drive and folder. So your moving the wamp folder to another machine will definitely not work.
I suggest you install a WAMPServer on a PC that is left on all the time, using port 80, I am guessing that the school wont let you install it on their server for obvious reasons.
Then copy your site code to this new installation.
Then backup you database, and restore it to the new machines WAMPServer (MySQL)
Then amend the Apache config to allow access from the schools local network but not the internet, by amending the httpd.conf or if you are using WAMPServer 3 by amending the httpd-vhost.conf file, there are many answer available on that subject.
Next, if the school has a DNS Server, I would ask for a domain name to be added to that, pointing to the ip address of the PC you installed WAMPServer on. The domain can be anything but something like davidproject.school could be used.
Then you create a Virtual Host in WAMPServer using the ServerName = davidproject.school and ServerAlias = www.davidproject.school
Then people will access it from any browser in the school with the url davidproject.school

Cannot Get Laravel Welcome Page to Show

My server is on DigitalOcean cloud. I am using Ubuntu with Apache web server. My home computer is running Windows 7. I am using putty for terminal.
Followed all of the directions on https://laracasts.com/series/laravel-5-fundamentals/episodes/1. Made it up to 8:40, where it directs you to run php -S localhost:8888 -t public. I run that, then open a web browser and tried the following:
-http://mywebsite.com:8888
-http://www.mywebsite.com:8888
-http://mywebsite.com/learning-laravel-5/public
-http://mywebsite.com/learning-laravel-5/public/index.php
None of the above work.
In Google Chrome, the first two options where I list the port number, I get a page saying This webpage is not available. ERR_CONNECTION_REFUSED. In IE, I just get a page with big font saying "This page can't be displayed."
For the last two options, I just get a completely blank page. In the console, I get this error: Failed to load resource: the server responded with a status of 500 (Internal Server Error).
I'm trying to pick up a web app framework to broaden my php skill set. Can someone help me out? What am I doing wrong/what is the video tutorial missing that I have to do in order to get Laravel up and running?
php -S localhost:8888 -t public is meant for running a site locally, which is what the video is showing.
If you are using a Digital Ocean droplet with Ubuntu and Apache, you will need to configure Apache to use /public as the document root and have Laravel installed in the /var/www directory.
From there you can visit the droplet's IP address (http://XXX.XXX.XXX.XXX) instead of the domain name (unless you have configured the DNS for that domain name). You won't need the port in the URL either, since Apache will be serving it on the default port 80.
This probably is not the answer you want, but here's my advice based on setting up a few VPSs on Digital Ocean. Step back. Spin a new VPS. Keep your old one around, if you want, but start afresh.
Create a new droplet
Setup your SSH and PuTTY and make sure that works
Setup your FTP (if you're using it)
Setup your DNS
Setup your Apache config files. DO has a very good tutorial on this: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04
Now, work on getting your "Hello world" html page to show when you access your domain www.yourdomain.com, yourdomian.com. Don't fixate on ports at this point, just get a minimal server running. This might help too: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
Make an saved "image" of this basic working setup so you can spin a new VPS if you need to.
Now that you have a server that loads your domain index page, you can start to install your Laravel.
In a nutshell, I'd advise you to establish a stable working server platform before you try to install and launch a more complex technology like Laravel, or Rails, etc.
Tutorials often make complex technologies seem easy, the 10-minute expert, but there is tremendous complexity masked under the hood of these frameworks. Start simple and build on a server one piece at a time. You have to walk before you run.
I use Laravel often, but my experience with servers is more relevant here. Everything you've said indicates an access problem, and knowing how hosting companies work, they probably have that port blocked (along with all other non-standard ports).
You can test this using PuTTY, open it up and enter the host name of your server. Change the port to 80 and change close on window exit to never, then connect. Enter:
GET / HTTP/1.1
Host: yourwebsite.com
Then press enter twice and the server will process the result. It should show you the HTML of your home page.
Now try it again with port 8888 and see if you can even connect. If you can connect then it's not a port issue, but my guess is you'll get a fatal error Network error: Connection refused, which means the port is closed or blocked via firewall.
Even though DigitalOcean give you complete control over the server, the connection probably still runs through their firewall. It's possible that you have your own firewall, but otherwise if the server runs through their firewall and the port is blocked nothing you can do on the server will open that port.
did you try chmod -R 0777 storage ?

How do I share a folder for a Client Machine

I am using windows 7 on server and linux
RedHat on client, I am in LAN
i want to share specific folder with specific client,
what should i do?? please help me.
it gives an error and it shared for all machines .
right click the folder is to be shared and click sharing in that use advanced sharing option and type evryone there and apply the changes it will be gets shared

PHP Code will not read on Network Server

I have a database running on a network server (Ex. if you open My documents, at the bottom on the left navigation bar, you can access networks).
My network server is called \\server.
I have downloaded WAMP to \\server so that I can upload .php files to my server so that it can act as a web server with the address file://server/wamp/[path]/[file].php. This php connects the database to users on the web that go to this address.
I am have my database set, php files complete and uploaded, and port 80 is clear for only WAMP to be used on this server. But my .php files STILL are not read! Can anyone help figure out what is wrong? Does this have to do with the fact that this is not a real address (file://)?
Any help is appreciated. Thanks
I'm guessing your problem is with the file: scheme that you're trying to use, as WAMP is listening on port 80 (HTTP). Try using http: in your address.
if you are using wamp server then check for all services started if not restart all services and make sure that the wamp icon is green if not then the problem with wamp server.And also check in apache server the php module is mark for this click on green wamp icon and goto apache then in apache modules and at last mark php5_module.

How to access PHP files using HTTP over peer-to-peer network?

I connected two PCs (say PC1 and PC2) using a patch cable (Category 5E) while both of them run on Windows 7. The IP addresses for PC1 and PC2 are 192.168.1.2 and 192.168.1.3, respectively. I've successfully configured a homegroup for the two computers and there was no problem in simple file sharings.
What I should know is that, having installed WAMPServer and stored some PHP files in PC1's root directory, how could I access them from PC2? I tried typing 'http://192.168.1.2/aphpfile.php' in the PC2's browser. And, I got no expected result. The browser simply said that it could not access the page. I'm not an expert in networking. Please help me.
PS: Please, don't close this question as a duplication. I searched related questions in this site but nothing was found helpful to me.
By default, WAMP assumes you're developing locally and will not answer requests made from outside the machine. You have to click "put online" from the WAMP menu. It will configure Apache to start listening for incoming connections from outside your machine.

Categories