LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Script that copies files/folders doesn't work (http://www.linuxquestions.org/questions/linux-server-73/script-that-copies-files-folders-doesnt-work-773563/)

Archosz 12-04-2009 07:47 PM

Script that copies files/folders doesn't work
 
Hello, I recently signed up at Linode, deployed Ubuntu and installed Apache, Mysql and PHP5.

I'd actually made the change from a shared server to a vps in order to make an add-on for OsCommerce work. This add-on called Automatic stores generation (contribution at 14 May 2009) copies existing files and folders and this requires a LAMP environment with 'permissions of systems administrator'.

Unfortunately the script doesn't copy the files and folders.

Strange enough, the copying did work on the shared server. (symlinks didn't work there)

I just transferred all the files and sql data from the shared server to the Linode, edited config files and set all permissions to 777. (inc. public_html)

So now I'm wondering what needs to be done to make the script work. Some questions:
  • Is it also considered a LAMP environment when one uses Ubuntu? Are there differences for the functioning of scripts?

    What would be considered 'permissions of systems administrator' in this context? Like file permissions of 777?

    Are there necessary things I need to install on the server to get these kinds of things to work? For instance, I once had to install cURL.

    Would the script need a 'raw url' with the server name etc, rather than the url of the domain name? (like: /srv/www/domain.com/public_html) This 'raw url' was used in the config script on the shared host, but I don't know how this works.
I can't think of other reasons. Maybe you can?

Any advice is greatly appreciated!

TB0ne 12-04-2009 10:43 PM

Quote:

Originally Posted by Archosz (Post 3780361)
Hello, I recently signed up at Linode, deployed Ubuntu and installed Apache, Mysql and PHP5.

I'd actually made the change from a shared server to a vps in order to make an add-on for OsCommerce work. This add-on called Automatic stores generation (contribution at 14 May 2009) copies existing files and folders and this requires a LAMP environment with 'permissions of systems administrator'.

Unfortunately the script doesn't copy the files and folders.

Strange enough, the copying did work on the shared server. (symlinks didn't work there)

I just transferred all the files and sql data from the shared server to the Linode, edited config files and set all permissions to 777. (inc. public_html)

So now I'm wondering what needs to be done to make the script work. Some questions:

Is it also considered a LAMP environment when one uses Ubuntu? Are there differences for the functioning of scripts?

LAMP = Linux Apache MySQL Perl/PHP

Since Ubuntu is Linux, you're all set. No, no differences, aside from any you'd find from one system to another. Like path names, etc.
Quote:

What would be considered 'permissions of systems administrator' in this context? Like file permissions of 777?
No, those are file/directory permissions. Systems administrator permissions mean root-level permissions...like being able to write and modify things in system directories (/etc, /sbin, and things like that). A 'regular' user can't...unless you are ABSOLUTELY INSANE, and make your system directories/files world editable.
Quote:

Are there necessary things I need to install on the server to get these kinds of things to work? For instance, I once had to install cURL.
That depends on your script. If it depends on programs, you'll naturally have to install them, along with libraries, path modifications, etc.
Quote:

Would the script need a 'raw url' with the server name etc, rather than the url of the domain name? (like: /srv/www/domain.com/public_html) This 'raw url' was used in the config script on the shared host, but I don't know how this works.
No way we can tell...we can't see your script. Quickest way to check it is to change it, try it, and see if it works.


All times are GMT -5. The time now is 12:14 AM.