Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need help with making a webpage from several files and I am not sure how to go about it. I'm not sure how to follow these instructions can someone help me out.
Install:
Copy contents of folder "upload_to_server" to your server.
Open "includes/config.php" and edit $cfg['db_server'], $cfg['db_username'], $cfg['db_password'], $cfg['db_database'] to be your database details, and $cfg['site_url'] to be the URL to the site with a trailing slash e.g. "http://www.example.com/" or "http://www .example.com/example/" (if it has been uploaded to a sub folder named "example".
Import database.sql into your database
![Here is a picture of the files for the site][1]
[1]: http://i.stack.imgur.com/7eHOb.pn g
You need to install a local web stack first. WAMP or XAMPP for Windows, LAMP for Linux, or MAMP for Mac
You are then going to have to locate your web folder, which is usually called www, htdocs, or public_html. This is where your files need to go.
You can import databases from PhpMyAdmin, which should come bundled with your web stack.
Then you use http://localhost/whatever-folder-you-added to access it.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I have the following audio on linux Centos /var/spool/audios/2023/02/15/202302151100015.mp3. If I configure the full path in the src of the Audio Tag, it doesn't work, for it to work I must copy the audio 202302151100015.mp3 to the directory where I have my web application and place in the src of the audio tag src="202302151100015.mp3" and it works there. What am I doing wrong? I copy part of the code, thanks.
<audio><source src="/var/spool/audios/2023/02/15/202302151100015.mp3"></source></audio> //does not work does not access directories.
<audio><source src="202302151100015.mp3"></source></audio> //It works but I have to first copy the audio file to my app's web folder.
Solution to my question and thus learn
What am I doing wrong?
Your resources cannot reside outside your web directory (starting from it's root.) It's not Linux related and all web servers will (and should) behaves the same or imagine the security hole if one can go any location on your box… Full stop.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 months ago.
Improve this question
recently I deployed my web application in host (hostinger.com), I have some edits I have to make. How can I use the code editor (PhpStorm) to make edit in the website ?
the project made using laravel framework
I'll not recommend, but in other-hand to gave you an answer, you should :
View->Tool Window->Remote Host
Create a new connection, base on connection type FTP, SFTP, FTPS, Etc..
Set host info and try to connect.
As you can see this option don't need any type of SSH access, and when you've got connected to host, you can see list of files at right side of IDE, and you can :
Browse
Modify them
And of-course change your files in local environment and put/upload or drag them into specified location.
You will need SSH access to your remote files
In phpstorm:
File >> Remote Deployment...
Though it is generally better practice to make your changes locally, rebuild and redeploy to the host.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have problem mounting local directory and get File sharing has been cancelled.
Have had checked lots of forums and still have no clue how to fix it.
OS : windows enterprice version 1909
docker cli version : 19.03.8
docker-compse version : 1.25.5
I was going to serve php website using nginx web server.
My problem is solved! by setting up correct file sharing directory
First of all, I have no idea whether downloading the edge version of docker could impact on it.
But When I tried setting up right directory for file sharing in docker's setting it worked.
As my project was store at :
D:\Projects\Docker\test
I needed to set file sharing permission on docker's setting to access drive D:\
Steps :
Open Docker setting
Click on Resources Item
Click on file sharing tab
browse the directory you are working on
Restart docker windows
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have at home a personal web server running apache where I have a /var/www/{project_folder} to serve my websites, where I access them by the other machines by the IP/{project_folder}, nothing new for now. :)
I have some new projects done with laravel, but I only run them at my local machine to use the cli command to serve where it always runs at localhost:{door}
I would like to put that projects at my web server but I'm facing some difficulties because I only have some basic knowledge about apache and I'm having trouble to figure out the configuration.
I believe someone have already done that :)
Thanks in advance.
Assuming that you already have PHP working with Apache, so your httpd.conf file is fully configured so that if you have a file ending with .php will be handled properly.
All you have to do now is place your project in the htdocs folder where you have all normal project in. That's it.
You could install composer and install Laravel with it. For example via
"composer create-project laravel/laravel --prefer-dist".
See here
Now the tricky part:
If you want to access the site via http://localhost/your-project and not via http://localhost/your-project/public, then do this (depending on you OS):
Activate Mod_Alias
Goto '<IfModule alias_module>'
Then add this line inside:
Alias /your-project/ "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/your-project/public/"
In this case you don't need virtual hosts.
Let me know if you have further questions.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Xampp is a great product for newbie like us, it is very easy to install and configure. Today I am thinking of rolling up my php applications which I have it inside htdocs folder with the xampp installer. I know that Xampp has a zip package version too. And what I need to know now is that: is it possible and how to include my php application inside the xampp installer or exe for distribution? An example of what I want to achieve is timetracks (it has its own server and all the applications in one installer). Any suggestion is welcome.
You Should look into using server2go http://www.server2go-web.de/ i have used various times to package my PHP apps.