Page 1 sur 2

Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par gwenhoy
Bonjour à tous,
Je suis très intéressée par phpcompta pour ma nouvelle petite entreprise mais j\'ai quelques problèmes pour l\'installation.
Donc je suis sous MAC OS 10.7.2
J\'ai suivi le tuto sur le wiki.. mias ça blog des le début
cd /Users/moi/Sites
sudo chmod -R rwx phpcompta

j\'ai cette réponse après avoir tapé mopn mot de passe:

chmod: Invalid file mode: rwx

et ensuite dans la procédure pour modifier le fichier .conf , j\'ai comme réponse que ce fichier est introuvable...

Bon j\'ai fouillé sur le forum, peut être mal , mais je ne trouve pas de réponse..
merci de votre aide

Gwénaelle

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par Dany
bizarre, remplace rwx par 777 pour voir

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par gwenhoy
Merci la ça marche!! je vais continuer l\'installation!!

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par gwenhoy
Me revoilà...
alors maintenant quand je tape:

initdb /usr/local/var/postgres
cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgentslaunchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

j\'ai
The database cluster will be initialized with locale fr_FR.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to \"french\".

initdb: directory \"/usr/local/var/postgres\" exists but is not empty
If you want to create a new database system, either remove or empty
the directory \"/usr/local/var/postgres\" or run initdb
with an argument other than \"/usr/local/var/postgres\".
iMac-de-Gwenaelle:Sites gwenhoy$ cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgentslaunchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
iMac-de-Gwenaelle:Sites gwenhoy$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
pg_ctl: another server might be running; trying to start server anyway
server starting


donc il dit qu\'il exite déjà une database mais qu\'elle n\'est pas vide ( surement parceque j\'avais essayer de faire la manip avant!!)

il y a-t-il une petite solution pour continuer??
Merci

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par gwenhoy
Me revoilà...
alors maintenant quand je tape:

initdb /usr/local/var/postgres
cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgentslaunchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

j\'ai
The database cluster will be initialized with locale fr_FR.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to \"french\".

initdb: directory \"/usr/local/var/postgres\" exists but is not empty
If you want to create a new database system, either remove or empty
the directory \"/usr/local/var/postgres\" or run initdb
with an argument other than \"/usr/local/var/postgres\".
iMac-de-Gwenaelle:Sites gwenhoy$ cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgentslaunchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
iMac-de-Gwenaelle:Sites gwenhoy$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
pg_ctl: another server might be running; trying to start server anyway
server starting


donc il dit qu\'il exite déjà une database mais qu\'elle n\'est pas vide ( surement parceque j\'avais essayer de faire la manip avant!!)

il y a-t-il une petite solution pour continuer??
Merci

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par Dany
Il dit que postgresql est installé et fonctionne donc tout va bien, on peut passer à l\'étape suivante :-)

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par gwenhoy
ok merci... ça c\'est de la réponse rapide

donc quand je tape:
psql -d postgres -bash: /usr/local/Cellar/postgresql/9.0.4/share/postgresql/contrib/adminpack.sql: No such file or directory

donc si je continue quand même et que je rentre dans le navigateur
http://localhost/~username/phpcompta/ht ... /setup.php

j\'obtiens
Forbidden

You don\'t have permission to access /~gwenhoy/phpcompta/html/admin/setup.php on this server.
Apache/2.2.20 (Unix) DAV/2 PHP/5.3.9 Server at localhost Port 80

ça çoince!!!

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par Dany
Ah mince, ça c\'est la config. d\'apache, tu as regardé sur la page d\'Ubuntu ?

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par gwenhoy
Ubuntu, euh non, vu que je suis sous mac osX.

Re:Impossible de changer les droits sur mac

Publié : mar. nov. 14, 2017 11:35 pm
par Dany
Personne n\'est parfait :)

Tu peux jeter un oeil sur la config d\'apache, celui qui a fait le tuto pour Mac OSX s\'en était inspiré.

http://doc.ubuntu-fr.org/phpcompta#conf ... _d_apache2

Si tu veux, tu peux adapter la doc sur le wiki