How to use both GIT and FTP for deployment [closed] - php

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
I'd like to deploy using git, but some members in the team doesn't prefer git and they would like to be able to use ftp, I want us all to be able to access the files and make change. Is there anyway this can happen?

Keep an update repository in a ftp server
then use this repository to deploy via ftp

Using a synchronizer? and exclude git specific files by filter. http://sourceforge.net/projects/freefilesync/
You could map the ftp folder.
NetDrive by Novell has a GUI interface for setting up FTP servers as drives on your computer.

Set up a test server on which people can go crazy if they want to.
Require everyone to commit into a central repository. Seriously, this is a requirement.
Declare a handful of guys who know what they're doing as "deploy masters" and allow only them to touch the production server, through a clearly defined automated deploy mechanism (git can be fine here).
Hack off anyone's hands who still messes directly with production via FTP.

Related

How to develop web application after deployment in host? [closed]

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.

How web programs can make changes to a Linux applications? [closed]

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 5 years ago.
Improve this question
How this web programming works?
For example, we have a Linux application running on a server i.e “bind”.
How do we create a Web GUI to manage that bind server?
For example, if we add a zone through the GUI, that zone should be registered in the bind’s config file. I just want to how stuff works. How connection works, How an apache server can make modifications to application’s config file?
Any hints would be really appreciated.
php can natively work with files on the file system so long as the user running service thread has permissions to the file you want to change. It's pretty easy to do.
$myFile = "/var/config.txt";
$fh = fopen($myFile,'w');
A better way for two applications to interact is through a database though. Having the web application writing to a config table that the console app reads and uses.

Best way to deploy PHP website with Gulp [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
What is the best way to deploy PHP Website with Bower components and Gulp tasks?
Is it good to install npm on production server for run Gulp tasks?
If not, is it good to commit minified files (CSS, JavaScript, compressed images) in Git?
If not, is it good to use rsync for prepare and (push) deploy project to remote server and then use post deploy script for set up chmods, update database etc?
Maybe there is better way to do that?
The safest way to make sure everything works on your production server is by deploying first to a staging environment. This could be very well the same server, just not accessible for everyone.
As an example: we have a website: www.website.com, which is the live environment.
Assume we have another subdomain called staging.website.com which points to the same server but has its own DocumentRoot (more on DocumentRoot) but it is protected by some form of authentication (or an IP firewall, in our company's case. If it is not authorized to see staging, it will just point to the www.website.com, very convenient).
You would first deploy to the staging, there run all the build scripts (Composer, Gulp, minify), test out if everything still works. If it does, you can just easily point the DocumentRoot of the live domain to the staging directory and it's done.
As for committing minified files, no. You should commit the original files and the builder scripts. The minified scripts will all be built every time you deploy your application.
You could use Rsync, but like I suggested you should build your application (chmod, database etc) during deployment. Not afterwards.

Web development environment for small team doing small projects [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Currently, I'm working freelance and doing small projects (i.e. about 1 week to 1 month) for my customers. I use tools like FTP to upload/download files; setup a local web and database server for some projects; sometimes use Git or SVN for bigger projects. But most of the time, I just use FTP. This works just fine for me.
But now I'm planning to expand my work and may hire 1 or 2 programmers. Most of my works will be PHP/MySQL. What setting will be more suitable for my team? I goal is to minimize the configuration time.
Thank you.
While I'm not sure this is entirely suitable question for SO, and is quite open ended as plenty of people will have different solutions, here is one way of doing what you ask
Use Virtual Box & Vagrant along with Chef or Puppet to ensure all developers have identical development environments.
Then use Git via a central remote repo (i.e Github, BitBucket, custom) to collaborate.
If you have idea about GIT then Its better, you can make some more research there are some functions like branching, all of your team member can work on different branches and finally you can merge them

Authenticate against Active Directory/ISA from php [closed]

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 a complicated problem, exacerbated by the fact I don't really know where to start!
Over the last few years, I've developed a number of php web-based systems. When I built them, our network was ropey at best, so I thought nothing of creating my own username/password stuff.
Since then, our network has become a lot more robust, our admins have installed an ISA server for various other things and my apps are left as frustrating relics that people forget their passwords and are never sure which one belongs to what.
I would like to be able to replace my own login code with something that will talk to the the ISA/Active directory stuff so users can just use their primary username and password to log onto my stuff too.
Part of the difficulty is that the PHP apps are hosted outside of our network, although I do also have a server inside the network to act as a gateway if necessary. All of the servers I have access to are running Linux, although I might be able to persuade someone to install a 'plugin' on a windows box if it is absolutely necessary.
Where do I start?
If PHP is running under Apache you should be able to use mod_ldap and mod_authnz_ldap to authenticate to your Active Directory server.
There's also a fairly complete LDAP API for PHP, which you should investigate.

Categories