Zend CLI Tool issue - php: permission denied? - zend-framework

today i have recompiled PHP with PDO msql driver and now i cant use Zend CLI tool anymore.
Before Zend CLI tool was working fine, but now i get:
./zf.sh: 44: php: Permission denied
I am really out of ideas what is the problem here :/
i have tried changing permsissions, groups, google... but i didnt find any answers for this type of problem :/
Please help if you have any suggestion what should i do :)
Almost forgot:
Ubuntu, PHP 5.3 (as module) on apache 2.0
thanks for your time and reply!
Edit (PB): For those wondering, line 44
"$PHP_BIN" -d safe_mode=Off -f "$PHP_DIR/zf.php" -- "$#"

Why did you recompile php5? You can just compile the required PDO libs as well you know :p.
And AFAIK MSSQL is (or was at least) compatible with the Sybase DB drivers, so you could just as easily use these.
Check out Install PDO, PDO_SQLITE, PDO_DBLIB, PDO_MYSQL, it should work for Ubuntu too since it's Debian based.
BTW Just reinstall php5 that came with Ubuntu first, then follow the instructions there.
Hope it helps!

Related

How I can open pgadmin4 in fedora 36?

Good evening people, I am trying to install pgadmin4 on fedora 36, I followed all the steps in the documentation and pgadmin4 and its dependencies were installed correctly but I do not know how to start it, or open it and it does not let me configure it on the web because I do not create the directory described in the final step to configure the web version.
I had the same problem. I solved it installing pgadmin4 from linux-pachages
https://linux-packages.com/fedora-36/package/pgadmin4-qtx86-64
I followed the same instructions but mistakenly changing "yum" to "dnf" out of force of habit. I found I got an install out of it which seemed OK at a glance, but it was just documentation and not an executable, and there was no shortcut added to run pgAdmin. Perhaps you might have inadvertently done something similar? After uninstalling, I tried again using "yum" exactly as documented and the latest executable installed without any issue. So the steps to install that would work for me were as follows. (Desktop version in my case.)
sudo rpm -e pgadmin4-fedora-repo
sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm
sudo yum install pgadmin4-desktop
The QT workaround also mentioned as an answer worked for me, but I wanted to avoid that since it is an earlier release (6.9) than the current 6.11, isn't officially supported and fires a warning about that every time on start up saying some functionality may be missing, which is not good for clients to see potentially in my case.
Same problem - couldn't open it after installing. You have to install pgadmin4-desktop not pgadmin4.

Exporting planet.osm.pbf into PostgreSql

could someone help with this? I found only this: http://wiki.openstreetmap.org/wiki/Osm2pgsql
and this:
http://learnosm.org/en/osm-data/osm2pgsql/ but
windows binary was removed, and I never use cygwin or linux bash.
Actually I've installed Postgresql with postgis, and downloaded planet.osm.pbf.
I need some advice how to proceed with Osm2pgsql, wich will be helpful for newbie. Thanks
I would suggest running a an Ubuntu Server (14.04 or 16.04) and following the instructions here:
https://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/
You can run this on a Virtualbox from your windows machine.
The reason I suggest this is that you will only make things more difficult for yourself trying to install on windows.
I myself was completely new to Linux before I installed my MapServer, and I found it really easy to follow.
Osmosis can also do imports of osm (pbf) file to postgres DB with postgis extension. http://wiki.openstreetmap.org/wiki/Osmosis

PHP5 - pgsql Module not loaded

I am trying to get work PostgresSQL with PHP, but i stuck on that apache error:
Call to undefined function pg_connect().
When i run phpinfo() i cannot see that my module is loaded, but i do not know why. The pgsql.ini files were loaded. And when i open them, i can see, that the extension is enabled extension=pgsql.so. Under /usr/lib64/php5/extensions there is the .so file. Even the permission are same like the other modules.
Any idea what am I doing wrong?
It would help if you could describe what operating system you are using. I'm assume Linux, but which distribution? One package that is often forgotten when installing postgresql and php is php5-pgsql. This is the connection between the two. For some reason I cannot explain, it is best if all three are installed together. So I suggest uninstalling postgresql and php and then installing postgresql, php5 and php5-pgsql. I hope this works for you!
I found it out. Some libraries where not found.
1.) First of all run php -version
2.) If there is an error where it described that some libraries are missing, you can solve it like me
3.) Search for the files on your system find / -name {LIBRARY NAME}
3a.) If you found them, just create a symlink to /usr/lib64
3b.) If not, find a way to get them and 3 3a

Problems installing/compiling DBD::mysql on OpenSuSE 10

I am getting a bunch of compile errors when I try to install the MySQL DBD::mysql Perl library. I am trying to install this library on OpenSuse linux (SUSE Linux Enterprise server 10 (x86_64) version 10, patch level 4)
The install fails when trying to compile dbdimp.h. There are hundreds of complile errors but I have reason to believe they all stem from the first 3:
dbdimp.h:23:49: error: mysql.h: No such file or directory
dbdimp.h:24:45: error: mysqld_error.h: No such file or directory
dbdimp.h:26:49: error: errmsg.h: No such file or directory
I believe that the reason I am getting the errors above is that I have no MySql Client installed. I do not know how to install mysql client (I believe I am supposed to get some version of libmysqlclient).
I am brand new to opensuse and vaguely familar with installing packages on Linux in general have used yum, yast, apt-get on ubuntu + centOS previously but the only package manager tools that seem to be on OpenSuse 10 are rpm and zypper. I have not managed to install the required mysql client using either of these. If anyone knows how to install MySql Client to resolve my issue I would greatly appreciate any recomendations
Thanks
You need to install MySQL or the MySQL client libraries, either through your system's package manager or by following the installation instructions from the source code.
It sounds like your question is really "How do I install MySQL on OpenSuse", which would be more appropriate for one of the other StackExchange sites.
I was able to resolve this to a point. In my original question, I stated that I had tried using YAST but that it had not worked. In fact, I did not fully explore the YAST install option but when I did, I managed to download install the required librarys by following an article I found (http://adminramble.com/install-mysql-yast/#chitika_close_button)
I was able to open the YAST GUI in the terminal window (not an X-window display) and navigate through the "software management" section wherein I was able to do a search for MySql. Amoung the search results were mysql client libraries, which I then selected and hit "Accept". The installation started and completed successully.
In order to complile the PERL DBD::mysql module, I had to create a new makefile with the ccflags specified so that the header files could be found:
perl Makefile.PL --cflags -I/usr/include/mysql
I say "to a point" at the top of this comment because I then ran into further problems compiling but my original issue posted has been partially resolved and getting this far may help someone else who is experiencing the same problem. Will update if I get a solution to the compile problem.

Symfony command line does nothing

I am having some problems executig the symfony command on my project root directory.
Some useful information:
symfony file permissions: -rwxr-xr-x 1 root root
symfony file content:
chdir(dirname(__FILE__));
require_once(dirname(__FILE__).'/config/ProjectConfiguration.class.php');
include(sfCoreAutoload::getInstance()->getBaseDir().'/command/cli.php');
Every time I execute the symfony command, the result is empty. I'm currently using as development environment Ubuntu 10.04 as operating system and Eclipse PDT as IDE.
Can anyone give me some help?
What happens if you execute it via php?
php symfony
What happens if you type just
php
then enter in your shell?
It might be that you need to install the php5-cli package.
sudo apt-get install php5-cli
Then you should be able to execute
php symfony
or
./symfony
Sorry about the late answer but I had been submerged in work the past few days. After searching a lot, I finally found the problem.
Once I had installed the phpunit plugin, the auloading process was searching for libraries that are only installed with phpunit itself (it is signaled as requirement on the plugin page !). I found the problem when I finally remembered to inspect the php5 log file, that pointed me to the right direction.
Thanks all for the help!
Best regards!